• We were trying to add a Google Analytics tracker to the functions.php file of the blog.mawi.co.uk wordpress blog, obviously there was some mistake as now we are unable to log in to the wp admin panel or view the blog. The following error message shows – Parse error: syntax error, unexpected ‘}’ in /homepages/21/d127406775/htdocs/wordpress/wp-content/themes/mawi-2010/functions.php on line 222

    We would like to go back into the file and remove the code that we entered but how do we do this since we can’t log in to the admin panel?

    I contacted 1and1 out web host and they said they are unable to help with a wordpress issue. Please help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Download the theme’s functions.php from wp-content/themes/mawi-2010 using FTP, delete the code you added and re-upload the file.

    Thread Starter sarara

    (@sarara)

    Thanks so much for your help! I’m able to view the blog now, however I’m still not able to log in to wp admin panel. The error showing up is as follows, I’m not sure why since I just deleted the google analytics tracker and nothing else?

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/21/d127406775/htdocs/wordpress/wp-content/themes/mawi-2010/functions.php:1) in /homepages/21/d127406775/htdocs/wordpress/wp-login.php on line 349

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/21/d127406775/htdocs/wordpress/wp-content/themes/mawi-2010/functions.php:1) in /homepages/21/d127406775/htdocs/wordpress/wp-login.php on line 361

    Thread Starter sarara

    (@sarara)

    Thanks. I followed the instructions on there but now I’m back to this problem..
    Parse error: syntax error, unexpected ‘}’ in /homepages/21/d127406775/htdocs/wordpress/wp-content/themes/mawi-2010/functions.php on line 204

    Re-upload a fresh copy of the theme to wp-content/themes using FTP.

    Thread Starter sarara

    (@sarara)

    Thanks. Where do I find a copy of the theme?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Help! Unable to login to admin panel – Parse error: syntax error’ is closed to new replies.