Title: Parse error: syntax error, unexpected
Last modified: August 19, 2016

---

# Parse error: syntax error, unexpected

 *  [solesirius](https://wordpress.org/support/users/solesirius/)
 * (@solesirius)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-17/)
 * I’m thinking my site was hacked, i replaced both the wp-includes and admin folders
   but am having no luck figuring out whats wrong.
 * Any help would be appreciated

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-17/#post-1679660)
 * Remain calm and carefully follow [this guide](http://codex.wordpress.org/FAQ_My_site_was_hacked).
   When you’re done, you may want to implement some (if not all) of [the recommended security measures](http://codex.wordpress.org/Hardening_WordPress).
 *  Thread Starter [solesirius](https://wordpress.org/support/users/solesirius/)
 * (@solesirius)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-17/#post-1679669)
 * the error keeps changing, now im getting this one
 * Fatal error: Call to undefined function is_multisite() in
 * Anyone know anything?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-17/#post-1679670)
 * If you think you were hacked, follow the links I posted above. If not, try [downloading WordPress](http://wordpress.org/download/)
   again and delete then replace your copies of everything **except** the `wp-config.
   php` file and the `/wp-content/` directory with fresh copies from the download.
 *  Thread Starter [solesirius](https://wordpress.org/support/users/solesirius/)
 * (@solesirius)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-17/#post-1679967)
 * Sorry for the delayed response. I had done what you said MacManX and got the 
   site working. Now i’ve gotten the same initial error again. Along with this error
   here: Fatal error: Call to undefined function wp() in /home/content/s/o/l/solesirius/
   html/wp-blog-header.php on line 14.
 * All my information is visible when you visit my [site](http://www.solesirius.com).
 * I’ve again replaced both my wp-includes and wp-admin folder along with any other
   file with the exception of wp-config.php and wp-content directory.
 * P.S since the first fix, i’ve updated to the latest version of wordpress
 *  Thread Starter [solesirius](https://wordpress.org/support/users/solesirius/)
 * (@solesirius)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-17/#post-1679968)
 * Ok. just got another error
 * Parse error: syntax error, unexpected T_STRING in /home/content/s/o/l/solesirius/
   html/wp-config.php on line 22

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [solesirius](https://wordpress.org/support/users/solesirius/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-17/#post-1679968)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
