• Resolved KevinMcK

    (@kevinmck)


    My entire site is basically down because of some error. It states:

    “Parse error: syntax error, unexpected ‘<‘ in /home/content/28/10435528/html/wp-content/themes/dinky/inc/theme-options.php on line 68”

    Yet I can’t find this errant “<” and can’t even get into any of the editors to change it if I could.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Kevin, could you please post the contents of ‘theme-options.php’ in a pastie and then post that here on the forum? That will give us a starting point on finding the issue!

    You can use FTP or Cpanel access to deactivate the theme – which should let you login again – change the name on the theme’s folder here:

    wp-content
        themes
            dinky.HOLD

    Thread Starter KevinMcK

    (@kevinmck)

    I’m afraid I don’t know how to get to FTP or Cpanel.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Your hosting company will be able to help you that information.

    Thread Starter KevinMcK

    (@kevinmck)

    Never mind, found FTP.

    Thread Starter KevinMcK

    (@kevinmck)

    I’ve put the hold on Dinky, which has allowed me to get back into my admin panel so thank you for that. Should I just delete Dinky then and reinstall since it’s still messed up?

    Once you have control in FTP, try navigating to the file that you mentioned (theme-options.php) and download it. Then copy the contents into a pastie as mentioned above and you’ll be set!

    Thread Starter KevinMcK

    (@kevinmck)

    https://pastie.org/8268260

    There’s the pastie but I see the problem now. I tried to put an image in the wrong place and, though I deleted the code, it messed up the theme enough that I couldn’t edit it out after I put it in.

    Kevin, glad you managed to find the problem! You are correct, it does appear to be the div with an image that is causing the issue. Basically what happened is you placed that in a php script which didn’t know what to do with the div or the image it contained! If you remove line 68 and re-upload, that should send you in the right direction.

    Thread Starter KevinMcK

    (@kevinmck)

    Thanks a lot to Ivan and WPyogi, you guys saved me from my own stupidity. ??

    You’re very welcome! Everyone makes mistakes, no big deal!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Syntax Error’ is closed to new replies.