Title: Parse Error: syntax error
Last modified: August 20, 2016

---

# Parse Error: syntax error

 *  [daily.matters](https://wordpress.org/support/users/dailymatters/)
 * (@dailymatters)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-47/)
 * This morning i got an email from a client saying that my website was down. I 
   haven’t made any change to it, yesterday it was ok. this morning when i tried
   to access the site i got this error:
 * Parse error: syntax error, unexpected T_ENDWHILE in /htdocs/public/www/wp-content/
   themes/folioway/folioway/index.php on line 22
 * Have i been hacked or something? How can i solve this problem?

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

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-47/#post-3073176)
 * The best way to find out is to inspect the code in your theme’s index.php
 * Since you can’t access your site through normal means, it would mean using a 
   file manager if your host offers one, or FTP
    [http://codex.wordpress.org/FTP_Clients](http://codex.wordpress.org/FTP_Clients)
 * If you aren’t all that familiar with code, you can delete the theme through FTP
   and reinstall it
 *  Thread Starter [daily.matters](https://wordpress.org/support/users/dailymatters/)
 * (@dailymatters)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-47/#post-3073178)
 * I’m familiar with code. You are saying that reinstall the theme would probably
   solve my problem ?
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-47/#post-3073196)
 * I would first, inspect the code
 * Has something been changed? If it has, it could be a hack – in which case we 
   would need to do more to solve the problem.
 * After inspecting the issue, replacing the theme could be a quick way to get back
   up and running.
 * Ultimately we need to figure out what the problem is – it doesn’t sound like 
   the theme has a coding problem since it worked for you – so code inspection is
   the best first step here

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

The topic ‘Parse Error: syntax error’ 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/)
 * 3 replies
 * 2 participants
 * Last reply from: [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-47/#post-3073196)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
