There is a critical error on your site

hengzens

Newbie
Joined
Jan 22, 2025
Messages
29
Reaction score
6
Hello everyone, I know why, but since I transferred the code from the old hosting to the new hosting, the domain I use is also cloudflare, every time I access for the first time, this error message appears, and I F5 again and it goes back to normal. I have tried almost all different IPs but the situation still has this error, the functions have not changed.
"There is a critical error on your site.
Learn more about debugging in WordPress."
 
If you're getting the error only after migrating to a new hosting, it's most likely due to some misconfiguration,
It could be the PHP version (old/new) not supporting one of the plugins/themes/scripts functions/codes,
The PHP memory limit is too low (can't handle certain functions once again),
You didn't migrate the website correctly, etc...

Double-check that everything was moved properly, save the permalinks, restart the server/php/LiteSpeed (or OLS), flush the website cache,
If none of these helps, try enabling the debugging and displaying the errors to check what's specifically causing the problem,
Add the following to wp-config.php (right before the stop editing line):
Code:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', true );
define( 'WP_DEBUG_LOG', true );
define( 'SCRIPT_DEBUG', true );
 
Back
Top