Tag Archive: Parse error: syntax error unexpected T_STRING expecting

Mar 27

resolving php mess ups

Parse error: syntax error, unexpected T_STRING, expecting 

This is the error you might have come across while visiting my website a few days back. But its solved now and a pretty simple way to solve it. Here’s how it goes

1. first download a file of the theme you are currently using . for e.g. if you are using theme graphene then download its zip file from wordpress.org

2. It contains the respective files you tried editing, e.g. If you tried editing the theme-functions.php file then the same might be available.

3. Using file zilla, access the root folder of your site. Replace the existing file with the new one.

That is it. and yes, if you want to edit the theme-functions.php file for inserting some widgets in your posts or so, please edit the functions.php file and not the theme-functions.php file followed by the index.php file.

invalid email address