Sometimes when you try to access WordPress admin but are unable to access it due to the message “There has been a critical error on your website”. In this article we will show you how to fix this wordpress error in easy manner.
What Does “There Has Been a Critical Error on Your Website” Mean?
When you get the message, “There has been a critical error on this website. Please check your site admin email inbox for instructions.”
It means that there is a PHP fatal error on the WordPress site. In this case, WordPress sends the email about the error to the site admin email. If you have not received the email or want to know about the actual reason for this error, you can know by debugging.
For it, Open the wp-config.php file and change the following line.
define( 'WP_DEBUG', false );
to
define( 'WP_DEBUG', true );
Now reload the page where you got the critical error message. You will see the respective file where the error occurred.
Now you can easily fix the error by editing the file.