• 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)
  • That line is not from a wp file.
    Where is it from ?

    Thread Starter Lauren

    (@xxlauren)

    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

    (@xxlauren)

    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 to see.

    Moderator James Huff

    (@macmanx)

    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: https://codex.www.ads-software.com/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: https://dev.wp-plugins.org/browser/theme-switcher/trunk/

    Thread Starter Lauren

    (@xxlauren)

    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

    (@xxlauren)

    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

    (@xxlauren)

    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.