STEP 1: Enable Debug Mode (MOST IMPORTANT)
You need to see the real error behind the message.
Contents
- STEP 1: Enable Debug Mode (MOST IMPORTANT)
- โ STEP 2: Disable All Plugins (Most Common Cause)
- โ STEP 3: Switch to Default Theme
- โ STEP 4: Check .htaccess File
- โ STEP 5: Increase PHP Memory Limit
- โ STEP 6: Reinstall WordPress Core Files
- โ STEP 7: Check Error Log (Very Powerful)
- โ STEP 8: Check PHP Version
- ๐จ BONUS: Based on Your Previous Error
- โ QUICK DIAGNOSIS FLOW
- ๐ฏ If You Still Have Issues
๐ Do this:
- Go to your website files (via cPanel File Manager or FTP)
- Open:
public_html/wp-config.php - Find this line:
define('WP_DEBUG', false);
- Replace with:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);
- Save the file
๐ Now reload your website โ you should see the actual error message
โ STEP 2: Disable All Plugins (Most Common Cause)
๐ Method 1 (File Manager)
- Go to:
wp-content/ - Rename folder:
pluginsโplugins_old
๐ Reload your site
- If the site works โ a plugin is the problem
- Rename back to
plugins, then disable one-by-one in wp-admin
โ STEP 3: Switch to Default Theme
Sometimes your theme is broken.
๐ Do this:
- Go to:
wp-content/themes/ - Rename your active theme folder
(e.g.mythemeโmytheme_old)
๐ WordPress will automatically switch to a default theme like:
- twentytwentyfour
โ STEP 4: Check .htaccess File
๐ Do this:
- Go to
public_html/ - Find
.htaccess - Rename it:
.htaccessโ.htaccess_old - Then create a new
.htaccessfile and paste:
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
โ STEP 5: Increase PHP Memory Limit
Low memory can crash your site.
๐ Add this to wp-config.php:
define('WP_MEMORY_LIMIT', '256M');
โ STEP 6: Reinstall WordPress Core Files
Corrupted files = critical error
๐ Do this:
- Download fresh WordPress from:
wordpress.org - Upload:
/wp-admin/wp-includes
โ ๏ธ Do NOT overwrite wp-content or wp-config.php
โ STEP 7: Check Error Log (Very Powerful)
- Go to:
public_html/wp-content/debug.log
OR
- In cPanel:
โ Metrics โ Errors
๐ Look for:
- Fatal error
- Missing class
- Plugin conflict
โ STEP 8: Check PHP Version
- Use PHP 8.1 or 8.2
- Old themes/plugins break on newer PHP
๐ In cPanel:
- Select PHP Version
๐จ BONUS: Based on Your Previous Error
You had this earlier:
Class "WP_Widget_Pages" not found
๐ This strongly suggests:
- Corrupted WordPress core files
- Or incomplete update
So Step 6 (Reinstall Core Files) is VERY important for you.
โ QUICK DIAGNOSIS FLOW
Try in this order:
- Enable debug โ
- Disable plugins โ
- Switch theme โ
- Reinstall WordPress core โ
๐ฏ If You Still Have Issues
Send me:
- The new error message after enabling debug
- Or screenshot
Iโll pinpoint the exact problem and fix it with you ๐ฅ

