Parse error: syntax error
-
Hello everyone! I’m fairly new to WordPress. Newbie if you will. Just trying to learn along the way. Can anyone help me in understanding why I’m getting this error on this line, and how to fix it?
Parse error: syntax error, unexpected T_NEW in /home/domainname/public_html/wp-settings.php on line 520
The value is $wp_the_query new WP_Query();
Originally it was $wp_the_query =& new WP_Query(); but it was giving me a
Deprecated: Assigning the return value of new by reference is deprecated in /home/domainname/public_html/wp-settings.php on line 520
So I browsed through the forum and found out that I have to remove the “=&” which got rid of the error but then created a new one. Any help would be appreciated.
Thanks!
The topic ‘Parse error: syntax error’ is closed to new replies.