Title: Parse error: syntax error
Last modified: August 22, 2016

---

# Parse error: syntax error

 *  [whipworks](https://wordpress.org/support/users/whipworks/)
 * (@whipworks)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-95/)
 * 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](https://wordpress.org/support/users/cloudspacehostingcom/)
 * (@cloudspacehostingcom)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-95/#post-5475373)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Ryan](https://wordpress.org/support/users/cloudspacehostingcom/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-95/#post-5475373)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
