Ever had that moment of terror when you make an update to your website and suddenly it’s gone? I’ve done that to myself a few times and it’s terrifying.
Today’s heart attack had to do with a plugin error after I uploaded a new template that locked me completely out of my site admin and prevented me from accessing my live site. I was unable to access any part of my site admin and therefore couldn’t remove the offending plugin. In case you’re curious, the error I received was “Fatal error: Cannot redeclare class rise_action in /home/emilylyonmoore17/public_html/emilylyonmoore.com/wp-content/plugins/rise_widgets/inc/widget-mt-cta.php.”
I did a lot of Googling as I often do when I encounter an unknown error and I learned that I could get into my site from my hosting cPanel (I use GoDaddy) or through FTP and deactivate the plugins or themes. Here’s how I did it through cPanel:
- Log into your cPanel
- From the cPanel home page, scroll to “Database” and clicked phpMyAdmin
- From there I clicked on the top database option from the left sidebar and clicked “wp_options”
- From here I went to the second page where I could find “active_plugins”
- I clicked “edit” on “active_plugins” and copied all the text in the large text box and saved it (this is a list of all the active plugins on my site in case I wanted to go back and see what was active at that time)
- Note: this isn’t deleting the plugins from your site, it is deactivating them. You will still be able to see and activate all your plugins once you have site access back.
- Delete the list of active plugins in the large box and click “Go” under the “autoload” line
After this, I was able to log into my admin panel and change my site theme (I had deleted that earlier through FTP). This brought my site back!! Yay for happy endings!