Title: Unexplained Parse Error
Last modified: August 18, 2016

---

# Unexplained Parse Error

 *  [loden](https://wordpress.org/support/users/loden/)
 * (@loden)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/unexplained-parse-error/)
 * I’m running 1.2, and I get the following error when I try to load my index page:
   
   Parse error: parse error, unexpected $ in /home/.fairy/loden/lodenocity.com/index.
   php on line 141 I checked line 141 in index.php, and it contains nothing more
   than my /html tag. I checked the default index file that ships with WP in case
   there was some sort of extra closing tag I needed, but I didn’t see anything.
   I know I can just reload everything as last resort, but I’d really rather not
   do that.

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

 *  [serendipity](https://wordpress.org/support/users/serendipity/)
 * (@serendipity)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-81861)
 * Loden, I’d probably be the wrong person to give you advice anyway, not being 
   a php buff (on the other hand, I’ve fixed a fair number of parse errors in my
   own template, all induced by typos or errors on my part). But are you aware that
   you’re making it impossible for everyone to help you?
    No? Well, look at it from
   a forum member’s side: How are we supposed to have a look at your template if
   you don’t save it without the php extension (ideally, as a .phps file) and provide
   a link? In any case, even though your post makes it sound a bit like it, the 
   problem is not in the original index.php, which has the `</html>` tag on line
   114 or thereabouts.
 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-81862)
 * Loden,
    Have you done some re-design work on index.php or is it still the default
   file? You could just upload a fresh copy of index.php and see if that works.
 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-81863)
 * Serendipity,
    It’s quite possible that Loden is unaware that one can simply change
   the extension of a PHP file to .phps and provide a link to that file. Doing this
   prevents the server from processing the PHP code, and simply shows the PHP code
   itself as the content.
 *  Thread Starter [loden](https://wordpress.org/support/users/loden/)
 * (@loden)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-81868)
 * Sorry about that. Page is here: [http://www.lodenocity.com/index.phps](http://www.lodenocity.com/index.phps)
   
   I’ve done some pretty heavy redesigning (so my closing html tag actually is in
   the 141st line). I don’t think I left out anything vital, but I could be mistaken.
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-81873)
 * *scratches head* I don’t get any error when I view your page….. ????
    TG
 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-81874)
 * TG,
    I just visited the site a few minutes ago and got the same parse error.
 *  Thread Starter [loden](https://wordpress.org/support/users/loden/)
 * (@loden)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-81875)
 * TechGnome- try [http://www.lodenocity.com/index.php](http://www.lodenocity.com/index.php)
   
   Some browsers display old nonexistant index.* pages when [http://www.lodenocity.com](http://www.lodenocity.com)
   is loaded.
 *  Thread Starter [loden](https://wordpress.org/support/users/loden/)
 * (@loden)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-81877)
 * Turns out I was missing something after all. Problem fixed- thanks for your help!
 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-81879)
 * Loden,
    What was it that you were missing so that we can know for the future 
   if this situation repeats itself for another person?
 *  Thread Starter [loden](https://wordpress.org/support/users/loden/)
 * (@loden)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-82290)
 * I believe this was it:
    <?php if ($posts) : foreach ($posts as $post) : start_wp();?
   >
 *  [siribarr](https://wordpress.org/support/users/siribarr/)
 * (@siribarr)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-82291)
 * I’ve got the same bug!!
    This is my “procedure” – First, download with wget -
   c kubrick125.zip – Unzip with unzip. – Edit the index.php My site is [http://www.iribarren.cl](http://www.iribarren.cl)
   I’ve paste on [http://www.pastebin.com/103626](http://www.pastebin.com/103626)
   the code. I follow the Loden’s tip but aniway i’ve got this problem. Anybody 
   help me? Note : I think that this code is very involved! (but pretty a lot!) 
   Simon
 *  [siribarr](https://wordpress.org/support/users/siribarr/)
 * (@siribarr)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-82292)
 * The last line only has a
    </html> TAG

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 5 participants
 * Last reply from: [siribarr](https://wordpress.org/support/users/siribarr/)
 * Last activity: [21 years, 7 months ago](https://wordpress.org/support/topic/unexplained-parse-error/#post-82292)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
