Title: Parse Error when uploading new theme
Last modified: August 19, 2016

---

# Parse Error when uploading new theme

 *  [sparklogix](https://wordpress.org/support/users/mybenson/)
 * (@mybenson)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/parse-error-when-uploading-new-theme/)
 * I just created my first custom template and when I go to preview it on WP, I 
   get the following error:
 * > Parse error: syntax error, unexpected $end in D:\Hosting\2542608\html\bensonreport\
   > wordpress\wp-content\themes\BensonReport\header.php on line 25
 * The last few lines of the code in that file are:
 *     ```
       <?php wp_head(); ?>
       </head>
       <body>
       <div id="background">
        	<div id="header">
        		<div id="posts">
       ```
   
 * What does this mean and how can I fix it?

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

 *  [sweetangst](https://wordpress.org/support/users/sweetangst/)
 * (@sweetangst)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/parse-error-when-uploading-new-theme/#post-1153967)
 * What is on line 25 of your header?
 * Open it with something like Notepad++ if you don’t already have a way to find
   the line number.
 * > A missed end brace “}”, bracket “]”, or parenthesis “)” can also cause
   >  the
   > unexpected $end in a script as well. [(link)](http://bytes.com/groups/php/477932-parse-error-syntax-error-unexpected-end-question-suggestion)
 * Other [google joy](http://www.4homepages.de/forum/index.php?topic=23072.0)
 *  Thread Starter [sparklogix](https://wordpress.org/support/users/mybenson/)
 * (@mybenson)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/parse-error-when-uploading-new-theme/#post-1153970)
 * The last line of the header.php file is what I posted in the code above.
 * > <div id=”posts”>
 * That’s how the php file ends. I was modifying this from a different theme that
   works perfectly and ends the same way.
 *  [sweetangst](https://wordpress.org/support/users/sweetangst/)
 * (@sweetangst)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/parse-error-when-uploading-new-theme/#post-1154049)
 * I didn’t ask how the file ended.
 * I asked what was on line 25.
 * **In this case “$end” does NOT mean “end of your page.”**
 * In this case, _if you had read any of the links I provided you with_, “$end” 
   error means… *drumroll*
 * > A missed end brace “}”, bracket “]”, or parenthesis “)” can also cause
   >  the
   > unexpected $end in a script as well. [(link)](http://bytes.com/groups/php/477932-parse-error-syntax-error-unexpected-end-question-suggestion)
 * So go make sure you didn’t accidentally delete one of your curly brackets or 
   parentheses from the theme.

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

The topic ‘Parse Error when uploading new theme’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [sweetangst](https://wordpress.org/support/users/sweetangst/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/parse-error-when-uploading-new-theme/#post-1154049)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
