• Resolved elizwood-1

    (@elizwood-1)


    I tried adding content to the theme’s function.php file. Got this error:

    Parse error: syntax error, unexpected T_VARIABLE in /home/jessfeed/public_html/wordpress/wp-content/themes/BuilderChild-Heat-Wave/functions.php on line 245

    I copied original function.php from the theme (untouched original) and uploaded to site. Still get the same error. The original function.php file is only 54 lines!

    I removed the function.php, cleared my browser cache and I still get the same error.

    What am I missing and how to I get my site back?

Viewing 13 replies - 1 through 13 (of 13 total)
  • If you did not make any other change to theme functions.php file then try deleting and then upload original

    Thread Starter elizwood-1

    (@elizwood-1)

    I copied original function.php from the theme (untouched original) and uploaded to site. Still get the same error. The original function.php file is only 54 lines!

    Try re-uploading the whole theme.

    Thread Starter elizwood-1

    (@elizwood-1)

    I tried again to take the functions.php file from the downloaded and unzipped theme. Same error. Could it be a database error? I was adding images to a page and went into the functions.php from the dashboard editor. I added code and then got the error. I hit back and went back to the editor and removed the code. Same error.

    I even deleted the functions.php from the child theme and still got the same error. I reloaded the original theme functions.php several different times and still have the error. I cannot get into the site at all.

    I am using Dreamweaver to access the files and edit them now. Is there a way to change the theme without being able to launch WordPress?

    Try re-uploading the whole theme to wp-content/themes using FTP.

    Thread Starter elizwood-1

    (@elizwood-1)

    I renamed the theme and uploaded it again with Dreamweaver. Same error message.

    Use a ftp filezilla and upload whole theme in theme folder

    Are you running any caching plugins? Are you sure you are uploading an fresh copy of the right theme?

    You can also try re-naming the theme folder temporarily (say from /yourthemee to /yourtheme-broken or similar) which will force WordPress to look for the default theme, like Twenty Eleven or Twenty Ten, depending on what you have uploaded.

    This will get you back into the dashboard, at least.

    Thread Starter elizwood-1

    (@elizwood-1)

    THANK YOU everyone for your support and clear thoughts. When I went to use Filezilla, I realized I was uploading to my local server and not the online server. Operator error. I cleaned up the functions.php and uploaded it and guess what? It worked. Thank you all once again.

    Thread Starter elizwood-1

    (@elizwood-1)

    JerrySarcastic – Thanks for this suggestion. It may come in handy in the future.

    I have heard I do not know if is true that Dreamweaver adds some other characters when you edit with it and php files are delicate specially functions.php file as even dot makes the difference and breaks the theme.

    That is why we asked you use filezilla.

    Thread Starter elizwood-1

    (@elizwood-1)

    govepatel – Good advice. I am still learning and I appreciate every helping on this forum.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘function.php error prevents login’ is closed to new replies.