Support » Themes and Templates » Syntax error after editing functions.php file

  • Resolved thestealthyfox

    (@thestealthyfox)


    I’m in the middle of designing a new blog and I tried to edit the footer in the functions.php file.

    I’ve just had the error:

    Parse error: syntax error, unexpected T_STRING in /home/herglass/public_html/wp-content/themes/codium-extend/functions.php on line 443

    So I checked line 443 and everything looks fine. Can someone double check the coding please? I’m tearing my hair out!

    $textfooter = __('Proudly powered by <a href="http://www.wordpress.org">WordPress</a> and designed by ', 'codium_extend' );

    Thanks 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi thestealthyfox

    It’s hard to say without seeing the entire file. Could you post the contents of the functions.php file at the pastebin and post the link here so we can have a look?

    Thread Starter thestealthyfox

    (@thestealthyfox)

    file here

    Hope this works! I only posted that line, as that’s the one with the unknown T_STRING.

    Thanks.

    You know, I just installed that theme on a test site and loaded the file you posted at the pastebin with no errors. Out of curiosity what version of PHP are you running?

    Thread Starter thestealthyfox

    (@thestealthyfox)

    I know, it worked perfectly before I tried to edit it.

    I’ve just gone in to the file through the ftp – seems it wasn’t updating which is why I kept getting the error message.
    Looks like it’s fixed now! Thanks 🙂

    D’oh! Of course you gave me the unedited version because you can’t get into your site. 🙂

    Using FTP rename the theme folder. You should then be able to log in and switch to a different theme for the time being.

    Once you get in, post the contents of the edited version of the functions.php file at the pastebin – that’s the one I want to see. 🙂

    Okay disregard what I said. I didn’t read your reply carefully enough. It’s way too early. 🙂

    Thread Starter thestealthyfox

    (@thestealthyfox)

    Thanks for your help! 🙂

    You’re welcome.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Syntax error after editing functions.php file’ is closed to new replies.