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

---

# Parse error: syntax error, unexpected '

 *  [goodstuff](https://wordpress.org/support/users/goodstuff/)
 * (@goodstuff)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/)
 * I have several blogs setup that have been working fine for weeks. I’ve recently
   noticed that I’m getting this error on the main page of my blogs:
 * Parse error: syntax error, unexpected ‘<‘ in /home/myusername/public_html/beerandwinemaking.
   net/wp-config.php on line 77
 * Line 77 is very long. I have checked it closely and don’t see any unclosed < 
   tags. There are a few if( x > y) statements on this line but no unclosed tags.
   Can someone please help?
 * Thanks!

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

 *  [Chinmoy](https://wordpress.org/support/users/chinmoy/)
 * (@chinmoy)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/#post-1626369)
 * perhaps your site is hacked. Attacked by virus.
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/#post-1626390)
 * That doesn’t sound like a normal wp-config.php file. Post it in [WordPress Pastebin](http://wordpress.pastebin.com/)
   so people can take a look.
 *  Thread Starter [goodstuff](https://wordpress.org/support/users/goodstuff/)
 * (@goodstuff)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/#post-1626420)
 * Thanks for the reply. Here is the file:
 * [code moderated - follow instructions about using pastebin from now on]
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/#post-1626422)
 * Not here. We don’t need huge chunks of code in the forums.
 * And yes, you’ve been hacked. See See [FAQ: My site was hacked « WordPress Codex](http://codex.wordpress.org/FAQ_My_site_was_hacked)
   and [How to completely clean your hacked wordpress installation](http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/)
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/#post-1626423)
 * Yes – Looks hacked to me. Everything from `<script>` onwards shouldn’t be there
 * You need to change your db password at once – you definitely should not have 
   posted that onto a public forum.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/#post-1626424)
 * I just removed the hack from the above `.htaccess` that was posted
    my AVG was
   giving a javascript exploit warning for this topic and in the backend not getting
   the warning now
 * so yes you have been hacked
 * note – we may need to crack down on code being posted here
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/#post-1626425)
 * @Cubecolor: Right, as well. Didn’t see that.
 * [@goodstuff](https://wordpress.org/support/users/goodstuff/), and change your
   DB password at your host, too, as part of the hack cleanup.
 *  Thread Starter [goodstuff](https://wordpress.org/support/users/goodstuff/)
 * (@goodstuff)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/#post-1626426)
 * How do I change the password?
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/#post-1626427)
 * In your hosting control panel, but that’s in addition to cleaning the hack, re:
   the links I posted above.
 *  Thread Starter [goodstuff](https://wordpress.org/support/users/goodstuff/)
 * (@goodstuff)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/#post-1626428)
 * Sorry about that. I didn’t notice that songdogtech said to post it in the Pastebin.
   Thanks for removing the post. I’m kinda new at this stuff.
 * Thanks for the help!!
 *  [Chinmoy](https://wordpress.org/support/users/chinmoy/)
 * (@chinmoy)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-15/#post-1626477)
 * change all access details(ftp, database, control panel). Re-upload the fresh 
   WP instance and your theme. Change the files permission(404 for php file and (
   555 for html,image and js files)).
 * Thanks
    chinmoy

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

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

## Tags

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

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
