Title: Parse error: parse error, unexpected $
Last modified: August 18, 2016

---

# Parse error: parse error, unexpected $

 *  [Lauren](https://wordpress.org/support/users/xxlauren/)
 * (@xxlauren)
 * [21 years ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected/)
 * Error:
 * `Parse error: parse error, unexpected $ in /home/stpink/public_html/wordpress/
   index.php on line 30`
 * Line 30:
 * `<? include ($footervar.$extension); ?>`
 * The problem: I don’t know… I’ve tried deleting and re-uploading all files. I’ve
   even re-downloaded the zip and uploaded those files incase the others were bad…
   Have I not editted a file I need to, or something? I’m very confused at what 
   exactly is wrong. The loop, something in my index?
 * Anyway, thanks for any help!

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected/#post-220224)
 * That line is not from a wp file.
    Where is it from ?
 *  Thread Starter [Lauren](https://wordpress.org/support/users/xxlauren/)
 * (@xxlauren)
 * [21 years ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected/#post-220226)
 * I added it. It worked in the last wp version, ‘m not sure that it will work with
   this version?
 * It controls my latout basically… I have themes on my blog, so that people can
   change the look of it if they want. That just calls in the footer for the layout…
 *  Thread Starter [Lauren](https://wordpress.org/support/users/xxlauren/)
 * (@xxlauren)
 * [21 years ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected/#post-220228)
 * Lets see: additional info that could help…
 * Dashboard: It says click below links for information and al, but has nothing 
   below that.
 * When I first viewed my wordpress index before editting it, it was completely 
   blank. Nothing was there. (But yes, when logged in it has all my entries and 
   ocmments etc.)
 * I’ve just put my index file [HERE](http://paste.uni.cc/7257) to see.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected/#post-220233)
 * Yep, that’s going to conflict with quite a few things. The main index.php file
   should not be altered like that. You may not be aware that WordPress now uses
   multiple themes. See: [http://codex.wordpress.org/Using_Themes](http://codex.wordpress.org/Using_Themes)
 * Also, if you want to allow your visitors to change themes, you should use WordPress
   themes (as linked to above) and this plugin: [http://dev.wp-plugins.org/browser/theme-switcher/trunk/](http://dev.wp-plugins.org/browser/theme-switcher/trunk/)
 *  Thread Starter [Lauren](https://wordpress.org/support/users/xxlauren/)
 * (@xxlauren)
 * [21 years ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected/#post-220235)
 * Okay, so I should take that out, then change the themes back from false to true.
   Then take out the loop? After that It’ll just be back to those 4 lines or so 
   right, and it should work? Later on I can add my themes back in….? 😀
 *  Thread Starter [Lauren](https://wordpress.org/support/users/xxlauren/)
 * (@xxlauren)
 * [21 years ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected/#post-220240)
 * Hmm, problem. I have a blank page and that’s it. I’ve tried both themes, and 
   they both come up with a blank index. Hmm?
 *  Thread Starter [Lauren](https://wordpress.org/support/users/xxlauren/)
 * (@xxlauren)
 * [21 years ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected/#post-220242)
 * Okay, I’ve got it up. I guess i’ll start working on the themes and adding them.
   Thanks for that!

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

The topic ‘Parse error: parse error, unexpected $’ is closed to new replies.

 * 7 replies
 * 3 participants
 * Last reply from: [Lauren](https://wordpress.org/support/users/xxlauren/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/parse-error-parse-error-unexpected/#post-220242)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
