• 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!

Viewing 1 replies (of 1 total)
  • Ryan

    (@cloudspacehostingcom)

    I would suggest upgrading your word press install. Just make sure to backup the appropriate folders or download the setting.php config and copy your database connection info or use beyond compare and see what you’re might be missing.

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error’ is closed to new replies.