'There has been a critical error on this website. Please check your site admin email inbox for instructions is not fixing

My WordPress website https://poaa.ca/ is not loading and I'm facing a critical error issue for the last two days. I tried many tricks to fix the issue like disabled plugins, themes, and show errors. I added this code to my config file, but still errors not showing. What can I do? Your help will be appreciated.

define( 'WP_DEBUG', true )
define( 'WP_DEBUG_LOG', true )
define( 'WP_DEBUG_DISPLAY', false )
@ini_set( 'display_errors', 0 )


Solution 1:[1]

  1. Did you try to Revert to a Default Theme. Remove theme and upload WordPress Twenty Twenty theme.

  2. Increase PHP memory limit up to 128M - 1G.

  3. Update PHP version.

One of these options will solve your problem.

Solution 2:[2]

You should visit this community if you want to troubleshoot WP related issues, as it comes handy and have most recent information about this topic.

https://wordpress.stackexchange.com/questions/352723/how-to-fix-there-has-been-a-critical-error-on-your-website-please-check-your-s

Solution 3:[3]

To fix the issue,

  1. Open your website Cpanel - File Manager

  2. Inserted this code in your wp-config.php file to create a Debug Log.

`// Enable WP_DEBUG mode

define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file

define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings

define( 'WP_DEBUG_DISPLAY', false );

@ini_set( 'display_errors', 0 );`

it will log all errors, notices, and warnings to a file called debug.log in the wp-content directory. It will also hide the errors so they do not interrupt page generation.

  1. Go to the Debug Log file, download, and open the file using a code editor.

  2. If the error is from the post file, download this post file

  3. Replace the file in the directory as shown in your Debug Log file.

  4. Refresh your website, and enjoy.

  5. Don't forget to go back to step and remove the code you added to Wp_config file

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 The Mask
Solution 2 Dharman
Solution 3 Samuel Osita