Title: Parse Error; Syntax Error
Last modified: August 20, 2016

---

# Parse Error; Syntax Error

 *  [foodomania100](https://wordpress.org/support/users/foodomania100/)
 * (@foodomania100)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-42/)
 * Hi everyone!!
 * I tried customizing a theme. And when I uploaded it and tried to activate, the
   error message reads –
    -  **Parse error: syntax error, unexpected T_FUNCTION, expecting ‘{‘ in /home/
      public_html/wp-content/themes/NewsTrend/functions.php on line 98**
 * Now, I realize I have to edit that and I did too. But when I try to upload it
   again, the same error shows up. Even my admin Dashboard is not opening now! 🙁
   I try to go “Back” and upload another theme, but the same error message shows.
 * I’m really worried what to do? Should I uninstall the WordPress software for 
   my website & reinstall again?
 * Please help!!

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

 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-42/#post-2898085)
 * You can switch back to default theme using ftp browse to wp-content/themes folder
   in there you will find your theme folder rename or delete the folder and then
   try to open your wordpress.
    This will switch you back to default theme.
 *  [rabsal](https://wordpress.org/support/users/rabsal/)
 * (@rabsal)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-42/#post-2898254)
 * Similar problem except for the line number. That is 45 in my case.
 * This is, what I get when installing.
    The file is wp-config.php. I edited the
   wp-config-sample.php as directed. Inserted database details and copied the keys.
   I used the editor of Windows. But cannot identify the line 45 mentioned. Editor
   does not give line numbers. How can I go on from here? Thanks for any suggestion!
 * MacBook Pro, Mac OS X, WordPress 3.4.1,
 * `<strong>Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /
   homepages/15/d246579546/htdocs/georgeshomepage/wp-config.php on line 45</strong
   >`
 *  Thread Starter [foodomania100](https://wordpress.org/support/users/foodomania100/)
 * (@foodomania100)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-42/#post-2898256)
 * I resolved the issue. I had a self hosted blog. so I went to the control panel.
   Deleted the wordpress installed and re-installeg again
 *  [rabsal](https://wordpress.org/support/users/rabsal/)
 * (@rabsal)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-42/#post-2898259)
 * [@foodomania100](https://wordpress.org/support/users/foodomania100/)
    Thanks 
   for the speedy reply. Will follow your advise. Have a nice day! rabsal

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

The topic ‘Parse Error; Syntax Error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [rabsal](https://wordpress.org/support/users/rabsal/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-42/#post-2898259)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
