• Resolved JJedi00

    (@jjedi00)


    I tried installing the Google Analytics code on someone else’s site. The site is using a Genesis-Agency Child theme. The code was not working in Gensis-Theme Settings so I put it into the functions.php code (as found in a forum).

    As soon as I did that, I got the following error message: Parse error: syntax error, unexpected ‘<‘ in /home/admin12/public_html/wp-content/themes/agency/functions.php on line 77

    Now I cannot log into wp-admin and this same message pops up when you go the website (https://www.weloveyourtaxes.com/)

    Once I receive access to CPanel (the password given is not working), what can I do to fix this? Can I load a back-up from yesterday on CPanel or do I just need to copy functions.php?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You need to undo the changes you made ??

    The error is telling you exactly where it is. You need to use cPanel to browse to public_html/wp-content/themes/agency/functions.php. Open the file for editing using cPanel and scroll down to about line 77 and remove the code you inserted. For Future reference always add comments in your code when you edit it so you know what to remove if you break the site.

    Thread Starter JJedi00

    (@jjedi00)

    Thanks, Keith Driscoll, for the response. My big issue was just getting into cPanel and locating the functions.php file in File Manager. Even though it was deleted from WordPress, it was still in the original php in cPanel. Back and up and running.

    Keith THANKS So much I am new to wordpress and your fix saved me. I immediately saw the extra space I wasn’t seeing in the wordpress edit. Thanks for the help I was freaking with a deadline looming over me and my last few edits creating what seemed like a crash.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse error: syntax error, unexpected '’ is closed to new replies.