All the themes and plugins are up to date and the site is running fine, as well as the rest of the Wordpress backend which also runs just fine.
When I change the theme the problem persists.
Can anyone help me?
When I change the theme the problem persists.
Can anyone help me?
The error message you’re seeing — “There has been a critical error on this website” — is a generic WordPress error that typically means something is wrong at the PHP level, even if the site otherwise seems to be functioning. Since:
The issue is likely tied to either:
functions.php
,Edit your wp-config.php
file and add or change the following lines:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Then reproduce the error and check the log at /wp-content/debug.log
.
functions.php
Sometimes minor PHP syntax errors or undefined functions in functions.php
can cause critical errors — even with default themes.
Steps:
/wp-content/themes/your-active-theme/functions.php
.mu-plugins
(If Present)If you’re using Must-Use Plugins (in /wp-content/mu-plugins
), try renaming the folder temporarily to disable them. These aren’t affected when changing themes or toggling regular plugins.
Make sure your host is running a PHP version compatible with your WordPress and theme/plugins. WordPress 6.x prefers PHP 8.0+ but some older plugins/themes can break with PHP 8.1 or 8.2.
If you can access other admin areas, install the Health Check & Troubleshooting plugin:
Would you like help analyzing the debug.log
file if you enable it and upload it here? That would provide very specific clues. The error message you’re seeing — “There has been a critical error on this website” — is a generic WordPress error that typically means something is wrong at the PHP level, even if the site otherwise seems to be functioning. Since:
The issue is likely tied to either:
functions.php
,Edit your wp-config.php
file and add or change the following lines:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Then reproduce the error and check the log at /wp-content/debug.log
.
functions.php
Sometimes minor PHP syntax errors or undefined functions in functions.php
can cause critical errors — even with default themes.
Steps:
/wp-content/themes/your-active-theme/functions.php
.mu-plugins
(If Present)If you’re using Must-Use Plugins (in /wp-content/mu-plugins
), try renaming the folder temporarily to disable them. These aren’t affected when changing themes or toggling regular plugins.
Make sure your host is running a PHP version compatible with your WordPress and theme/plugins. WordPress 6.x prefers PHP 8.0+ but some older plugins/themes can break with PHP 8.1 or 8.2.
If you can access other admin areas, install the Health Check & Troubleshooting plugin:
Would you like help analyzing the debug.log
file if you enable it and upload it here? That would provide very specific clues.