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

---

# Parse error: syntax error

 *  [swc2603](https://wordpress.org/support/users/swc2603/)
 * (@swc2603)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-65/)
 * I am having trouble installing wordpress on my site. I have 4 different sites
   and have never had this problem before.
 * Parse error: syntax error, unexpected $end in /home/dif77925/public_html/wp-includes/
   query.php on line 2566
 * I have tried re downloading wordpress to the latest version, transferring across
   the includes file again, re uploading the wp-config file. Nothing has resolving
   the problem.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Amanda Rush](https://wordpress.org/support/users/arush/)
 * (@arush)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-65/#post-3702432)
 * Hi swc2603
    Try redownloading the WordPress package from [](http://wordpress.org/latest.zip)
   and reuploading everything except the wp-content directory (in case you’ve made
   changes to themes and plugins). You’ve mentioned that you redownloaded the wordPress
   files, but have you replaced only the wp-includes/query.php or have you replaced
   all of the file and are still getting this error?
 *  Thread Starter [swc2603](https://wordpress.org/support/users/swc2603/)
 * (@swc2603)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-65/#post-3702453)
 * I have downloaded the latest version and I have re uploaded all of the files.
   I am still getting this error
 *  [nisarg7575](https://wordpress.org/support/users/nisarg7575/)
 * (@nisarg7575)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-65/#post-3702575)
 * I think there is some mistake in theme code which is conflict with wp-includes/
   query.php code. try active other theme in our site.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-65/#post-3702576)
 * Try re-uploading all files & folders from a **fresh** download of WordPress. 
   This time, make sure that you delete the old copies of files & folder before 
   uploading the new ones.
 *  Thread Starter [swc2603](https://wordpress.org/support/users/swc2603/)
 * (@swc2603)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-65/#post-3702627)
 * I did a fresh download, deleted all the files on the server and re uploaded. 
   I then received a difference syntax error
 * Parse error: syntax error, unexpected $end, expecting T_STRING or T_VARIABLE 
   or ‘$’ in /home/dif77925/public_html/wp-includes/query.php on line 2558
 *  Thread Starter [swc2603](https://wordpress.org/support/users/swc2603/)
 * (@swc2603)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-65/#post-3702628)
 * I tried deleting the wp-includes folder and re uploading it.
 * I have now received this error
 * Fatal error: fatal flex scanner internal error–end of buffer missed in /home/
   dif77925/public_html/wp-includes/taxonomy.php on line 1988
 *  [nisarg7575](https://wordpress.org/support/users/nisarg7575/)
 * (@nisarg7575)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-65/#post-3702630)
 * Try to active other theme first.
 *  Thread Starter [swc2603](https://wordpress.org/support/users/swc2603/)
 * (@swc2603)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-65/#post-3702633)
 * Nisarg, unless I am confused I do not know how to activate another theme first
   as I cannot install wordpress correctly to even look at changing themes.
 * More suggestions?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-65/#post-3702634)
 * All of the errors you’re seeing suggest that there’s some corruption of the WordPress
   core files on your server but, to rule out the theme, try switching to the default
   theme by renaming your current theme’s folder inside wp-content/themes and adding“-
   old” to the end of the folder name using [FTP](http://codex.wordpress.org/FTP_Clients)
   or whatever file management application your host provides.

Viewing 9 replies - 1 through 9 (of 9 total)

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

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)
 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 9 replies
 * 4 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-65/#post-3702634)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
