أهم النقاط
- A PHP fatal error stopped WordPress; the message hides the details.
- Check the admin email for a recovery-mode link first.
- Renaming the faulty plugin's folder restores the site immediately.
Since version 5.2, WordPress catches fatal PHP errors and shows There has been a critical error on this website instead of a blank page. The real error is hidden from visitors, but it’s easy to find.
1. Use recovery mode
WordPress emails the site’s admin address with the subject Your Site is Experiencing a Technical Issue. It names the plugin or theme that failed and includes a special login link. Follow it, then deactivate or update the named plugin.
2. Read the error
If there’s no email, turn on logging in wp-config.php:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Reload the page, then open wp-content/debug.log. The last PHP Fatal error line shows the file path — the folder name after plugins/ or themes/ tells you what’s at fault.
3. Disable the culprit
In cPanel’s File Manager, rename the plugin’s folder, for example wp-content/plugins/some-plugin to some-plugin.off. The site loads again without it.
4. Fix it properly
- Update the plugin or theme, or roll back to the previous version.
- Check its PHP requirements against your PHP version (cPanel → MultiPHP Manager).
- When you’re done, set
WP_DEBUGback tofalse.
الأسئلة الشائعة
I didn't get the recovery email. What now?
Check spam, then enable WP_DEBUG_LOG to find the failing file, or rename wp-content/plugins to disable all plugins at once.
Will disabling a plugin delete its settings?
No. Deactivating or renaming a plugin folder keeps its settings in the database. They're used again when you reactivate it.