• 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)
  • 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.

    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.

    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

    (@loden)

    Sorry about that. Page is here: 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.

    *scratches head* I don’t get any error when I view your page….. ????
    TG

    TG,
    I just visited the site a few minutes ago and got the same parse error.

    Thread Starter loden

    (@loden)

    TechGnome- try http://www.lodenocity.com/index.php
    Some browsers display old nonexistant index.* pages when http://www.lodenocity.com is loaded.

    Thread Starter loden

    (@loden)

    Turns out I was missing something after all. Problem fixed- thanks for your help!

    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

    (@loden)

    I believe this was it:
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

    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
    I’ve paste on 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

    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.