• Hi guys,

    I hope somebody can help…

    I’m getting the following error on my site, featuredcontentonline.com

    Parse error: syntax error, unexpected ‘}’ in /home4/lordkhom/public_html/FeaturedContentOnline.com/wp-content/themes/wp-genius/functions.php on line 2

    this is the file text..

    [code moderated - follow the forum guidelines for posting code - http://codex.wordpress.org/Forum_Welcome#Posting_Code - and use the http://pastebin.com/%5D

    Another issue I have is that when I copy the file to my local PC it all appears on one line in notepad++.

    Thanks in advance for any help you guys can offer.

    Norm

Viewing 4 replies - 1 through 4 (of 4 total)
  • there is possibly just a { missing at the end of the first line;

    example:

    <?php if ( function_exists('register_sidebar') ) {

    however, your code got corrupted by the forum editor and is un-readable.

    please post the code again using the pastebin which would also show line numbers – http://codex.wordpress.org/Forum_Welcome#Posting_Code

    also, try to replace the functions.php with an unedtited version; or contact the theme’s developer for support.

    Thread Starter lordkhomar

    (@lordkhomar)

    Thanks for your reply.

    Here’s the pastebin http://pastebin.com/k8GT81FJ

    It looks like the error is on line 38.

    the whole file seem to be broken – with no line breaks in large parts.

    have you tried to replace the functions.php with one from the original unedited theme?

    what were you trying to change when the problem started?

    make sure to use only text editors to edit the files; http://codex.wordpress.org/Editing_Files

    what is the reply of the theme’s developer?

    Thread Starter lordkhomar

    (@lordkhomar)

    Hi again, I haven’t heard back from the developer yet, solostream.

    I was trying to reset my password in order to login to my site. I added one line of code, then removed it. That’s when the file broke.

    I think I almost have it fixed now, there’s still an issue with the file, I think a missing ‘}’ somewhere around line 74. You can see what the problem is on my site, featuredcontentonline.com

    Here’s a new pastebin.. http://pastebin.com/yGr9xsEA

    Thanks again for your help. It’s been a long time since I’ve looked at this stuff.

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

The topic ‘functions.php error’ is closed to new replies.