If you’re seeing the dreaded message “There has been a critical error on your website” on your WordPress site hosted with Prabhu Host, don’t panic. This common issue typically stems from plugin or theme conflicts, outdated software, or PHP version mismatches. In this guide, we’ll walk you through a systematic approach to troubleshoot and resolve the error.
Step 1: Enable WordPress Debug Mode
To identify the root cause:
-
Open your
wp-config.phpfile via cPanel > File Manager. -
Locate this line:
- Change it to:
define('WP_DEBUG', true);
This will display detailed error messages directly on your site, helping pinpoint the source of the issue. Remember to disable it afterward by setting it back to false.
If you see messages like "Deprecated function" or "Fatal error", it likely means there’s a version conflict between your PHP, theme, plugin, or WordPress version.
Step 2: Create a Full Backup
Before making any changes, back up your site completely (files and database). Prabhu Host provides easy backup tools within cPanel, allowing you to create or download backups with just a few clicks.
Step 3: Deactivate Plugins and Themes
-
Deactivate all plugins via cPanel > File Manager or phpMyAdmin (by renaming the
/pluginsfolder). -
If the issue is resolved, reactivate plugins one at a time to identify the problematic one.
-
Switch to a default theme like Twenty Twenty-Four to check for theme-related issues.
Step 4: Update Core Files and Plugins
Outdated plugins, themes, or WordPress core files can trigger compatibility errors.
-
Log in to the WordPress dashboard (if accessible) or use Softaculous in cPanel to update.
-
Make sure everything is running the latest stable version.
Step 5: Check and Adjust PHP Version
Ensure your PHP version is compatible with your current WordPress and plugin requirements. Prabhu Host allows you to change the PHP version directly via cPanel > Select PHP Version. Recommended: PHP 8.0 or 8.1 for modern WordPress installations.
Step 6: Reinstall WordPress Core
If core files are corrupted:
-
Download the latest WordPress from wordpress.org.
-
Replace everything except
wp-content/andwp-config.phpusing FTP or File Manager. -
This keeps your site content and settings intact while refreshing the system files.
Step 7: Clear Cache and Optimize Database
-
Clear any website cache using caching plugins or LiteSpeed Cache (if enabled).
-
Use phpMyAdmin to repair and optimize your WordPress database.
Step 8: Contact Prabhu Host Support
If the problem persists, reach out to Prabhu Host's support team. Provide any error logs, debug messages, or a description of what triggered the issue. Our experienced technicians are ready to assist and restore your site.
Conclusion
While a critical error message can feel alarming, it’s often easy to fix with the right approach. With Prabhu Host's powerful hosting tools and support team behind you, you can resolve these issues and make your WordPress site stronger and more stable than before.