WordPress.org

Ready to get started?Download WordPress

Forums

How to change theme manually in SSH (2 posts)

  1. chepukha
    Member
    Posted 8 months ago #

    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?

    Thanks,

  2. Dave Naylor
    Member
    Posted 8 months ago #

    Did you try visiting http://<your-site>/wp-admin/

    By renaming the folder for the theme that you were using you may now find that you are able to reach your admin.

Reply

You must log in to post.

About this Topic