There will be times when you will face serious downtime on your WordPress website due to a plugin causing an issue or the active theme preventing the site to load. You might be getting the below error.

Now how do you debug this? If only there was an exact error, you would have been able to resolve it.

No need to panic, Softaculoushas got you covered!You can now enable the Debug Mode through Softaculous WordPress Manager, just follow the steps given below.

Step 1: Login to your Control panel (e.g. cPanel).

Step 2: Look for the Softaculous icon and Clickon that icon to go to the Softaculous page.Navigate to softaculous by clicking the icon

Step 3: On the top-right icons section, you can find the WordPress Managericon. Clickon this icon and the WordPress Managerwizard will appear.Go to wordpress manager

Step 4: Look for your website in the below list in which you are facing this critical error and clickon the down arrow icon at the end of the line, this will expand the installation with more details.Expand wordpress manager details

Step 5:You will have multiple options there, look for the Debug Mode option. It is set to disabled by default, selectthe enabled option and this shall enable the debug mode in your WordPress website.Enable debug mode in wordpress manager

Once done you will receive a success message on the bottom-right corner of the screen.
Info saved successfully

Now go back and reload your website, the generic error message will now be replaced with an exact error message pointing you to the file which is causing the error.Fatal error: cannot redeclare add_action()

You can now resolve this error you are facing and your site will be up and running. Generally the issue is with some plugin or theme not working with the latest version of WordPress. There are two possibilities :

  1. You are using an outdated version of the plugin or theme which is not compatible with the WordPress version which you are using. The solution for this is to check the latest version available of the plugin or theme you find in the error message and upgrade to the latest version. (Make sure you take a backup of your site before doing this, just in case the latest version does not work).
  2. The plugin or theme in question has not been updated by the vendor and no longer works with the WordPress version which you are using. In this case the solution would be to disable the plugin by renaming the plugin folder to .bak from the File Manager and then look for another plugin/theme that can replace the existing one.

NOTE:Do not forget to disable Debug Mode once your site is working. It is not a good idea to leave debugging mode enabled on a production website.

More Information

Avatar of editorial staff

Editorial Staff

Rad Web Hosting is a leading provider of web hosting, Cloud VPS, and Dedicated Servers in Dallas, TX.

Leave a Reply