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 )
2
Answers
Did you try to Revert to a Default Theme. Remove theme and upload WordPress Twenty Twenty theme.
Increase PHP memory limit up to 128M – 1G.
Update PHP version.
One of these options will solve your problem.
To fix the issue,
Open your website Cpanel – File Manager
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.
Go to the Debug Log file, download, and open the file using a code editor.
If the error is from the post file, download this post file
Replace the file in the directory as shown in your Debug Log file.
Refresh your website, and enjoy.
Don’t forget to go back to step and remove the code you added to Wp_config file