• Resolved usbmp06

    (@usbmp06)


    So…. No clue what just happened???? When trying to go to either my website or my wp-admin site, I get this:

    “Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/usbmp06/public_html/wp-content/themes/mywebsite/inc/theme-options.php on line 81”

    Please help ??

    I’m really contemplating just building the site in nothing but HTML… So much less of a head ache. Ofc, updating the content will be a serious pain >.<

    Btw, website is here:

    https://www.freebrowsergamelist.com

Viewing 14 replies - 1 through 14 (of 14 total)
  • What version of WordPress are you using?

    Thread Starter usbmp06

    (@usbmp06)

    Newest… 3.4.1 or something.

    Try re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

    Thread Starter usbmp06

    (@usbmp06)

    btw, this is what is on line 81:

    return ‘edit_theme_options’;

    Thread Starter usbmp06

    (@usbmp06)

    It doesn’t have to do with WordPress… It’s the theme I’ve been working on.

    Then re-upload a fresh, unedited, copy of that theme.

    Thread Starter usbmp06

    (@usbmp06)

    I’ll see if I can figure out what’s wrong… Am actually trying to make my own theme, sort of a challenge to myself to see if I can. Lol

    Thanks anyway though ??

    popper

    (@julialasarte)

    Then you just have a syntax error. Open the file theme-options.php, go to the line 81 and look for an unescaped string, missing semicolon, etc. If you open the file with an editor with syntax highlighting you’ll spot the issue right away.

    Thread Starter usbmp06

    (@usbmp06)

    Do you know of any good free editors that include that??

    popper

    (@julialasarte)

    Sure! Notepadd++ is pretty decent, and free. Sublime Text 2 is not free, but it includes and unlimited trial. There are a lot more, but it depends on your platform.

    Thread Starter usbmp06

    (@usbmp06)

    Sorry, but how do you enable syntax highlighting with notepad++??? Haha, I’m pretty much a noob when it comes to this stuff.

    Thread Starter usbmp06

    (@usbmp06)

    Also, once I took out the functions.php, the website is working again. Sooooooo… Hmm >.<

    Headache.

    Thread Starter usbmp06

    (@usbmp06)

    WOOT! Found it… There was a command in functions that was requiring theme options… Basically required the theme to be customizable, but since I don’t need that I took it out and it works fine.. SWEET

    popper

    (@julialasarte)

    Glad you solved it!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Parse error… Please help’ is closed to new replies.