My WordPress theme corrupted after the host updated their php engine. Now, I can still view my site but I cannot log into the admin page. When I try to login to admin page, I only get an empty page.
server log shows:
Call to a member function data() on a non-object
//here is the line that causes problem, in helpers/system.php
add_object_page(”, $name->data(), 8, ‘warp’, false, $icon);
Now my only hope is ssh to the server and change the theme there by changing some config files. But I’m not sure how. In this post, the solution was to delete the current theme and WordPress will automatically fallback to the default them. However, I’ve renamed my current name folder in wp-content/themes/ to another folder, but it didn’t work. I got empty page after doing that.
Can someone please help? How can I swap theme manually without going to admin page?
- The topic ‘How to change theme manually in SSH’ is closed to new replies.