Home › Knowledgebase › KB-1222

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.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

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

  1. Check your email for a WordPress recovery message containing a special login link.
  2. Attempt to access your site via a private or incognito browser window.
  3. Clear your browser cache and website cookies.
  4. 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.

  1. Connect to your hosting account using an FTP client or the File Manager in your hosting control panel.
  2. Navigate to the root directory of your WordPress installation.
  3. Locate and open the wp-config.php file for editing.
  4. Find the line define( 'WP_DEBUG', false ); and change it to define( 'WP_DEBUG', true );.
  5. Add the following lines directly below the WP_DEBUG line:
  6. define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
  7. Save the wp-config.php file and upload it back to the server if using FTP.
  8. Refresh your website in the browser to trigger the error.
  9. Navigate to the /wp-content/ folder and open the debug.log file 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.

  1. Open the File Manager in your hosting control panel or connect via FTP.
  2. Go to /wp-content/.
  3. Right-click the plugins folder and select Rename.
  4. Change the folder name to plugins_old.
  5. Attempt to log in to your WordPress admin area.
  6. If the site loads, rename the folder back to plugins.
  7. Go to Plugins > Installed Plugins in your WordPress dashboard.
  8. 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.

  1. Access your site files via File Manager or FTP.
  2. Navigate to /wp-content/themes/.
  3. Rename your current active theme's folder (for example, change my-theme to my-theme_old).
  4. WordPress will automatically revert to a default theme such as Twenty Twenty-Four.
  5. 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.

  1. Log in to your hosting control panel.
  2. Locate the PHP Version or Select PHP Version tool.
  3. Review the current PHP version assigned to your domain.
  4. Update the version to match the requirements of your WordPress installation and installed plugins.
  5. 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.

Failed Automated Updates

A failed WordPress core update can leave your site in maintenance mode or trigger a critical error.

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?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket