Wordpress critical error instead of homepage
Summary
This guide helps you troubleshoot and resolve: Wordpress critical error instead of homepage. Follow the steps below to fix the issue.
Common Causes
WordPress critical errors typically appear as a white screen with a simple message stating there has been a critical error on your website. This prevents visitors from accessing your homepage and blocks you from logging into the WordPress admin dashboard. These errors are usually caused by a conflict between plugins, an incompatible theme, a failed update, or a mismatch between your site's code and the server's PHP version.
Quick Fix Steps
- Check your email for a WordPress recovery message containing a special login link.
- Attempt to access your site via a private or incognito browser window.
- Clear your browser cache and website cookies.
- Verify that your domain name and hosting services are active and not expired.
Detailed Instructions
Enable WordPress Debug Logging
Debug logging helps you identify the specific file or plugin causing the crash by recording detailed error messages.
- Connect to your hosting account using an FTP client or the File Manager in your hosting control panel.
- Navigate to the root directory of your WordPress installation.
- Locate and open the
wp-config.phpfile for editing. - Find the line
define( 'WP_DEBUG', false );and change it todefine( 'WP_DEBUG', true );. - Add the following lines directly below the WP_DEBUG line:
define( 'WP_DEBUG_LOG', true );define( 'WP_DEBUG_DISPLAY', false );- Save the
wp-config.phpfile and upload it back to the server if using FTP. - Refresh your website in the browser to trigger the error.
- Navigate to the
/wp-content/folder and open thedebug.logfile to view the specific error details.
Deactivate Plugins via File Manager
If a plugin conflict is causing the critical error, renaming the plugins folder will deactivate all plugins at once, allowing you to regain access to your dashboard.
- Open the File Manager in your hosting control panel or connect via FTP.
- Go to
/wp-content/. - Right-click the
pluginsfolder and select Rename. - Change the folder name to
plugins_old. - Attempt to log in to your WordPress admin area.
- If the site loads, rename the folder back to
plugins. - Go to Plugins > Installed Plugins in your WordPress dashboard.
- Activate plugins one by one, refreshing the site after each activation to identify the faulty plugin.
Switch to a Default Theme
Theme incompatibility, especially after an update, can trigger a critical error. Switching to a default theme isolates the issue.
- Access your site files via File Manager or FTP.
- Navigate to
/wp-content/themes/. - Rename your current active theme's folder (for example, change
my-themetomy-theme_old). - WordPress will automatically revert to a default theme such as Twenty Twenty-Four.
- Check if the homepage now loads correctly.
Check PHP Version Compatibility
WordPress requires a specific PHP version to function correctly. An outdated or incompatible version can cause site crashes.
- Log in to your hosting control panel.
- Locate the PHP Version or Select PHP Version tool.
- Review the current PHP version assigned to your domain.
- Update the version to match the requirements of your WordPress installation and installed plugins.
- Save the changes and refresh your website.
Troubleshooting
Database Connection Errors
If the critical error mentions a database connection issue, your site cannot communicate with its database.
- Verify that the database name, username, and password in
wp-config.phpare correct. - Check if your database server is responding via your hosting control panel.
- Repair the database by adding
define( 'WP_ALLOW_REPAIR', true );towp-config.phpand visitingyourdomain.com/wp-admin/maint/repair.php.
Failed Automated Updates
A failed WordPress core update can leave your site in maintenance mode or trigger a critical error.
- Look for a file named
.maintenancein your WordPress root directory. - Delete the
.maintenancefile via File Manager or FTP. - Refresh your website to see if it returns to normal.
Always create a full backup of your website files and database before making changes to core files or updating plugins and themes.
Avoid editing the wp-config.php file unless you are comfortable with code. Incorrect syntax can prevent your site from loading entirely.
Remember — If you host with us, you don't need to do this yourself — just Open a Ticket and our Brisbane team will get it sorted.
Still Having Issues?
💻 Open a Ticket