Special Launch Offer: Free Domain & SSL with all Annual Web Hosting Plans. Claim Now →
Web Hosting Domains Web Agency Blog Contact
Client Login Get Started
SkyHost247 Blog

"There Has Been a Critical Error on This Website": How to Fix It (Step by Step)

← Back to all articles

Seeing the message "There has been a critical error on this website" on your WordPress site? Do not panic. This is one of the most common WordPress errors, and in most cases your website data is completely safe. WordPress is simply unable to load one part of your site. This guide explains why the WordPress critical error happens and how to fix it step by step.

Why This Error Happens

WordPress shows this message when a piece of PHP code fails. The most common causes are:

  • A plugin that was recently installed, updated, or is not compatible with your WordPress or PHP version
  • A theme update or a theme with a coding problem
  • A recent code change in a theme or plugin file
  • A PHP version that is too old or too new for one of your plugins
  • A memory limit that is too low for your website's needs

WordPress also sends an email to the site admin with a special recovery link. Always check your admin email inbox first, it can save you a lot of time.

How to Fix It, Step by Step

Step 1: Use the WordPress recovery mode link. Open the email WordPress sent to the admin email address and click the recovery mode link. This lets you log in safely and shows you exactly which plugin or theme caused the error.

Step 2: Deactivate the plugin you changed last. In most cases the error starts right after a plugin update or install. In recovery mode (or from your hosting control panel's file manager), deactivate the most recently changed plugin. If the site comes back, you found the cause. Update it, replace it, or keep it off until a fixed version is released.

Step 3: Switch to a default theme (only for testing). If no plugin is responsible, temporarily activate a default WordPress theme such as Twenty Twenty-Four. If the site loads, the problem is inside your theme and your developer should review its latest changes.

Step 4: Check your PHP version. In your hosting control panel (cPanel, MultiPHP Manager or Select PHP Version), confirm your site is running a supported PHP version such as PHP 8.1 or 8.2. Very old versions (7.x) and brand-new versions can both break older plugins. Change it, test the site, and you can change it back any time.

Step 5: Raise the WordPress memory limit. If the error appears during heavy tasks (updates, imports, backups), your site may need more memory. Your hosting support can raise the PHP memory limit for your account. On SkyHost247 this is a quick support request.

Step 6: Turn on debugging (for developers). Developers can enable WP_DEBUG in the wp-config.php file to see the exact file and line causing the error, fix the code, and then turn debugging off again. Never leave debugging on for visitors to see.

FAQ

Is my website data lost when this error shows? No. This error means a code problem stopped the page from loading. Your posts, pages, images and database are still there.

Can this error come from hosting? The error message itself is generated by WordPress code, a plugin, theme or PHP setting. Your hosting support can still help by checking PHP versions, memory limits and error logs with you.

How long does it take to fix? If it is a plugin issue, usually a few minutes. A theme code problem may need your developer to review the last changes they made.

Need Help With Your Website?

If your website is showing this error and you want it checked properly, SkyHost247's support team can review your hosting, PHP settings and error logs with you. Our hosting starts at Rs 2,500/year with a free domain, free SSL, and real human support on WhatsApp: +92 320 8284498, or visit skyhost247.com to see our packages.