STEP 1: Enable Debug Mode (MOST IMPORTANT)

You need to see the real error behind the message.

๐Ÿ‘‰ Do this:

  1. Go to your website files (via cPanel File Manager or FTP)
  2. Open:
    public_html/wp-config.php
  3. Find this line:
define('WP_DEBUG', false);
  1. Replace with:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);
  1. 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)

  1. Go to:
    wp-content/
  2. 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:

  1. Go to:
    wp-content/themes/
  2. 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:

  1. Go to public_html/
  2. Find .htaccess
  3. Rename it:
    .htaccess โ†’ .htaccess_old
  4. Then create a new .htaccess file 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:

  1. Download fresh WordPress from:
    wordpress.org
  2. Upload:
    • /wp-admin
    • /wp-includes

โš ๏ธ Do NOT overwrite wp-content or wp-config.php


โœ… STEP 7: Check Error Log (Very Powerful)

  1. Go to:
    public_html/wp-content/debug.log

OR

  1. 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:

  1. Enable debug โœ…
  2. Disable plugins โœ…
  3. Switch theme โœ…
  4. 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 ๐Ÿ”ฅ

Share.
Leave A Reply

Exit mobile version