WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Syntax error after editing functions.php file (9 posts)

  1. thestealthyfox
    Member
    Posted 2 years ago #

    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 :)

  2. Len
    Member
    Posted 2 years ago #

    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?

  3. thestealthyfox
    Member
    Posted 2 years ago #

    file here

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

    Thanks.

  4. Len
    Member
    Posted 2 years ago #

    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?

  5. thestealthyfox
    Member
    Posted 2 years ago #

    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 :)

  6. Len
    Member
    Posted 2 years ago #

    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. :)

  7. Len
    Member
    Posted 2 years ago #

    Okay disregard what I said. I didn't read your reply carefully enough. It's way too early. :)

  8. thestealthyfox
    Member
    Posted 2 years ago #

    Thanks for your help! :)

  9. Len
    Member
    Posted 2 years ago #

    You're welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic