How to Fix WordPress error “There has been a critical error on your website”

Step::1 First of all login to your cPanel and go to File Manager

Step::2 Go inside public_html and then open your WordPress installation directory i.e public_html/Wordpress

Step::3 Now find wp-config.php file and right click over the file and choose the Edit option

Step::4 Copy the code given below and paste it in the wp-config.php file
define( 'WP_DEBUG',true);
define( 'WP_DEBUG_LOG',true);

 Click on Save Changes

Now go to “wp-content” folder and open debug.log file to check the error log and solve it accordingly.

Was this answer helpful?

Related Articles

How to display Related Pages in WordPress?

Step::1 Login to your WordPress admin dashboard Step::2 Go to Plugins and click on Add...

How To Fix ‘413 Request Entity Too Large’ WordPress Error using .htaccess?

This error occurs generally when a user tries to upload a large size file and media in the...

How To Force Logout All Users In WordPress At Once?

How To Force Logout All Users In WordPress At Once? Step::1 Let’s start by logging into the...

How to Add Google Analytics to your WordPress website?

In this article, we will share how you can easily install Google Analytics in your WordPress...

How to Add WhatsApp live chat to your WordPress site?

Step::1 Login to your WordPress dashboardStep::2 Go to the Plugins section and click on Add...