[resolved] Site unloadable after editing functions.php file (2 posts)

  1. thirdreviewer
    Posted 5 years ago #

    I tried to make a small edit in my functions.php file, using the theme editor. I introduced a syntax error (doh! missing comma), got an error "T_CONSTANT_ENCAPSED_STRING " etc in relevant line of functions.php.

    Ok, no sweat. I edit it back to the original. Nope, still have the same T_CONSTANT error. Clearly I have borked my install. So I go to my file manager from my host and upload the saved functions.php file from my computer to replace it. But now I just get a new error!:
    Parse error: syntax error, unexpected T_STRING in /home/thirdr6/public_html/wp-content/themes/suffusion/functions.php on line 15

    I'm using the suffusion theme, site is http://thirdreviewer.com Anyone know how I can get out of this? I can't access any wordpress functions--the whole site is just that error message. I don't have backups of files besides the functions.php because I'm an idiot (ie didn't think anything else would be affected.) I did just backup the mysql db though...

    Thanks in advance.

  2. thirdreviewer
    Posted 5 years ago #

    Ok, found this very helpful detailed description:

    and can now get into my site to re-install. I'm still surprised that the uploading of the old functions.php file didn't solve the problem in the first place--it must have borked something it called to? but in any case it's resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic