Support » Fixing WordPress » Deleted PHP ‘template’ and ‘stylesheet’ tables – need to add in

  • Resolved jlr1

    (@jlr1)


    I had a fatal error due to an attempted new theme installation. Having been advised to delete the theme as it should then revert to the original one, I did so but in phpmyadmin, rather than the theme directory in my file manager (where I have now deleted the new theme). This means I deleted 2 lines in wp_options, the template & stylesheet ones showing the theme. I now have 2 missing lines & a totally blank website – http://www.bookbabblers.co.uk. What do I do now to reinstall the Artsavius theme that I had before? I see the insert tab at the top of the screen where it’s all listed, but I don’t know what I’m inserting! And, most importantly, is this what I need to be doing? I don’t suppose there’s a handy reinstall option??

    Thanks for any help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    can you login here: http://bookbabblers.co.uk/wp-login.php

    if you can login, change the theme to twentyten and put this in that theme’s functions.php:

    update_option( 'template', 'twentyten' );
    update_option( 'stylesheet', 'twentyten' );

    If you cannot log in, switch to the default (twentyten) theme by renaming your current theme’s folder in wp-content/themes using FTP or whatever file management (not phpmyadmin) application your host provides.

    Thread Starter jlr1

    (@jlr1)

    All’s fixed, thanks. I managed to log in and reactivate the old theme, so all’s sorted.

    Thanks again

    Moderator keesiemeijer

    (@keesiemeijer)

    No problem, glad you got it resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deleted PHP ‘template’ and ‘stylesheet’ tables – need to add in’ is closed to new replies.