How to fix error: Call to undefined function wp_get_theme() on Wordpress
Posted in Blog Webssite issues | 10th August, 2017
Tags.
It can be a nightmare when you are in the middle of a theme upload or after a theme activation, something happens and you end up with the following error:
1 |
Call to undefined function wp_get_theme() |
The most frustrating thing is that any link that you click on in your blog will give you same error. If this error is not addressed, you might have to re-install your website and run the risk of losing all your content.
If you are a little bit technical, the easiest way to fix this issue is at the database level.If you need help with this, contact us to assist you.
If your web host has a control panel, you can Login to the database access tool : PHPmyadmin to connect to your database; Otherwise, use any other database tool to connect to your database.
Open the query box and run the following script:
1 2 3 |
UPDATE wp_options SET option_value = ‘default’ WHERE option_name = 'template';
UPDATE wp_options SET option_value = ‘default’ WHERE option_name = 'stylesheet';
UPDATE wp_options SET option_value = ‘twentyeleven’ WHERE option_name = 'current_theme';
|
Post a comment