• Resolved valkyri

    (@valkyri)


    Downloaded a new theme, activated it and got

    Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting ‘(‘ in /home/sites/timspain.com/public_html/blogs/wp-content/themes/producer/functions.php on line 11

    now totally locked out and can’t do anything????????

    I tried deleting the theme, and I end up with just a blank page.

    Thanks…

Viewing 5 replies - 1 through 5 (of 5 total)
  • Ftp into your site and rename the wp-content/themes/producer folder.

    Thread Starter valkyri

    (@valkyri)

    Deleting it or renaming it doesn’t work. All I end up with is a blank page.

    http://www.valkyri.org

    Thread Starter valkyri

    (@valkyri)

    As it was a new install anyway, there was one post and I hadn’t done much, I just blew away the database and started over again.

    Heres a quick & easy little trick / solution i found which you could do. I got locked out due to a parse error after activating a new theme;

    Step 1; Login into your hosting Cpanel.

    Step 2; Click on phpMyAdmin under the “Databases” header or section.

    Step 3; Click on your wordpress database on the left hand side.
    (If there is more than one database & you aren’t sure which database to select, check your wp-config.php file in the root location of your WordPress installation via your ftp or file borwaser or you will have to go through them 1 by 1 in phpMyAdmin just click on the first one & browse the data tables usually the “wp_users” table will give away which site the database belongs to otherwsie browse the inside of others perhaps posts to see a post from which ever blog the database belongs to.)

    Step 4; Once the correct Database is selected browse the “wp_options” table – you will probably have to goto page 2 & you are looking for “template” & “stylesheet” under the “option_name” header.

    Step 5; Click Edit for the template option_name & in the option_value text field you will see your troublesome theme name just type over it default or classic which will change it to the default or classic theme or you can choose another if you know it by name – then just click on the “go” button.

    Step 6; As in step 5 click edit for the stylesheet option_name & type the same theme name in say default or classic – then click the “go” button.

    You should see your changes under the option_value section to both these options – you should now be able to close phpMyAdmin & refresh your wordpress blog page – it will load with what ever theme you chose & you should then be able to login to your worpress admin & change theme to something else – but proby try the one that 1st messed you up unless you get another copy or an update of some kind.

    Hope this helps someone.

    Jobay, you are the man! thank you for the post it worked perfectly.

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

The topic ‘Parse error’ is closed to new replies.