WORDPRESS TROUBLESHOOTING

59 Common WordPress Errors & How to Fix Them Fast

Ajay Kumar CrestVox Studio
· 17 min read
Click Here to Add CrestVox as a Trusted Source Add as a preferred
source on Google

1. WordPress White Screen of Death (WSoD)

You load your domain and get a blank white page with zero error text. Almost every time, a script ran out of PHP memory or threw a fatal PHP error while display errors were turned off.

  • Raise your PHP memory limit: Open wp-config.php in your site’s root directory via SFTP or your hosting File Manager. Paste this right above the /* That’s all, stop editing! */ line:
define('WP_MEMORY_LIMIT', '256M');
  • Turn off all plugins: If you still have dashboard access, go to Plugins > Installed Plugins and deactivate everything. Locked out? Connect over SFTP and rename /wp-content/plugins to plugins-old. Once the site comes back, rename it to plugins and turn them back on one at a time until the blank screen returns.
  • Fall back to a default theme: Download a backup of your active theme folder from /wp-content/themes/, then delete it off the server. WordPress will automatically switch to a default theme like Twenty Twenty-Four.
  • Turn on the debug log: Add define(‘WP_DEBUG’, true); and define(‘WP_DEBUG_LOG’, true); to wp-config.php, reload the blank page once, and read /wp-content/debug.log to see the exact file and line number that crashed.

2. 500 Internal Server Error

A 500 error means the web server hit an unexpected failure and couldn’t finish loading the page. On WordPress, corrupted .htaccess rewrite rules and broken plugins cause most of them.

  • Regenerate .htaccess: Rename .htaccess in your root folder to .htaccess_old over SFTP and refresh the site. If it loads, log into WordPress, open Settings > Permalinks, and click Save Changes without changing anything. WordPress will write a fresh .htaccess file.
  • Test memory and plugins: Bump WP_MEMORY_LIMIT to 256M and disable plugins if resetting .htaccess didn’t clear it.
  • Re-upload core folders: Grab a fresh WordPress zip from WordPress.org and overwrite only wp-admin and wp-includes over SFTP. Leave wp-content untouched.

3. Error Establishing a Database Connection

WordPress can’t talk to MySQL. This happens right after migrating a site, changing a database password, or when your host’s database server crashes under heavy load.

  • Open wp-config.php and verify DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST against the database details in your hosting panel.
  • Ask your host if DB_HOST should be something other than localhost (many managed hosts use an internal IP or custom MySQL hostname).
  • If the database tables themselves got corrupted, add define(‘WP_ALLOW_REPAIR’, true); to wp-config.php and open yourdomain.com/wp-admin/maint/repair.php. Delete that line right after running the repair.

4. Failed Auto-Upgrade

When a one-click core update drops midway due to a timeout or wrong file permissions, your site can get stuck showing partial update warnings or PHP errors.

Download the latest WordPress zip archive, unzip it locally, and deactivate your plugins. Connect via SFTP, delete the old wp-admin and wp-includes folders, and upload the new ones. Next, upload the contents of the new wp-content folder into your existing wp-content directory (never delete your old wp-content folder), overwrite the loose root PHP files, remove any .maintenance file, and visit /wp-admin/ to finish any database schema updates.

5. Sidebar Appears Below Content

Your sidebar drops down underneath the main post body instead of sitting beside it.

  • Undo any recent edits to single.php, page.php, or custom CSS.
  • Run your page URL through the W3C HTML Validator to catch an unclosed or stray </div> tag inside a template or widget.
  • Inspect the layout in Chrome DevTools (F12) to make sure the main container width plus sidebar width and margins don’t exceed 100% of the parent wrapper.

6. White Text and Missing Buttons in the Visual Editor

If you run the Classic Editor plugin and the formatting toolbar suddenly disappears while text turns invisible, TinyMCE JavaScript failed to load properly.

  • Do a hard browser refresh (Ctrl+Shift+R or Cmd+Shift+R) or check in another browser.
  • Open wp-config.php and add this near the top to stop WordPress from bundling admin scripts together:

* Still broken? Upload a fresh `/wp-includes/js/tinymce/` folder from a clean WordPress download.

### 7. Memory Exhausted Error (`Allowed memory size... exhausted`)
A heavy page builder, WooCommerce import, or backup plugin tried to use more RAM than PHP allows.

Add `define('WP_MEMORY_LIMIT', '256M');` to `wp-config.php` just above the stop-editing line. Some shared hosts lock memory limits at the server level, so if `wp-config.php` doesn't change anything, raise `memory_limit` inside your hosting panel's PHP Selector or `php.ini`.

# Login, Admin & Access Issues

### 8. Locked Out of WordPress Admin (`wp-admin`)
Being locked out of `/wp-admin` usually comes down to one of four causes:

* **404 Not Found on login:** Temporarily paste `update_option('siteurl', 'https://yourdomain.com');` and `update_option('home', 'https://yourdomain.com');` at the bottom of your active theme's `functions.php`. Log in, verify your URLs under **Settings > General**, and delete those two lines from `functions.php`.
* **401 Unauthorized:** Check your hosting panel for "Directory Privacy" or password protection on `wp-admin` and turn it off, or purge your Cloudflare/WAF cache.
* **Blocked by a login security plugin:** Open `/wp-content/plugins/` via SFTP and rename the folder for Wordfence, Solid Security, or Limit Login Attempts Reloaded to disable it.
* **Critical Error screen:** Append `?action=entered_recovery_mode` to `yourdomain.com/wp-login.php` to log into WordPress Recovery Mode even if admin emails aren't arriving.

### 9. Login Page Refreshing and Redirecting Loop
You type the right username and password, hit Log In, and the page simply refreshes back to the empty login form.

* Clear cookies and site data for your domain in your browser settings. WordPress won't let you in if a stale session cookie gets stuck.
* Rename `.htaccess` via SFTP, log in, and re-save **Settings > Permalinks**.
* Make sure `WP_HOME` and `WP_SITEURL` in `wp-config.php` match your exact protocol (`https://`) and `www` preference.

### 10. Image Upload Issue (Broken Media Library)
Thumbnails show up as broken icons and new uploads throw permission errors because the `uploads` folder lost write permissions.

Connect via SFTP, right-click `/wp-content/uploads`, and open **File Permissions**. Enter `755`, tick **Recurse into subdirectories**, choose **Apply to directories only**, and click OK.

### 11. WordPress Keeps Logging You Out
WordPress ties your login cookie to the exact Site URL. If your **WordPress Address (URL)** and **Site Address (URL)** under **Settings > General** don't match (for instance, one uses `http://` and the other uses `https://`, or one has `www` while the other doesn't), WordPress will boot you out every few clicks. Make both fields identical.

### 12. Taskbar / Layout Elements Misaligned Under Content
When admin bars, toolbars, or side columns drop beneath your content container, check for broken HTML tags (`<div>` mismatches) introduced by a recent shortcode, custom HTML block, or theme edit. Deactivate recently installed plugins to see if one is injecting unclosed markup into the page footer.

### 13. PHP Syntax Error (`Parse error: syntax error`)
One missing semicolon, comma, or curly brace in `functions.php` will take down the whole site. Read the file path and line number shown in the error message, open that file over SFTP (since the dashboard editor won't load), remove or fix the broken snippet, and re-upload it.

### 14. "Are You Sure You Want to Do This?" Error
WordPress throws this warning when a plugin or theme fails a security Nonce check during an admin action. Deactivate plugins one by one to find which one is submitting expired or missing tokens, test with a default theme, or replace `wp-admin` and `wp-includes` if core files were modified.

### 15. Briefly Unavailable for Scheduled Maintenance
During updates, WordPress drops a hidden `.maintenance` file in your root folder and deletes it once the update finishes. If the browser closes or the server times out mid-update, that file stays behind. Open File Manager or SFTP, enable hidden files (dotfiles), and delete `.maintenance`.

# Email, Feeds & Publishing Bugs

### 16. WordPress Not Sending Emails
Shared hosting servers routinely block or drop emails sent through PHP's default `mail()` function to curb spam, which breaks contact forms and password reset links.

Install **WP Mail SMTP** and connect your domain to a real transactional mail service like Brevo, Postmark, Amazon SES, or Google Workspace. Add the required SPF and DKIM TXT records in your domain DNS so inbox providers don't reject the messages.

### 17. WordPress RSS Feed Errors
XML parsing errors in `/feed/` almost always come from stray whitespace or blank lines outside PHP tags. Open your theme's `functions.php` file, make sure there are zero spaces or blank lines before `<?php`, and delete any closing `?>` tag at the very end of the file.

### 18. 403 Forbidden Error
Your web server is actively denying access to the requested URL.

* Rename `.htaccess` and regenerate it via **Settings > Permalinks**.
* Check file permissions via SFTP (`755` for folders, `644` for files).
* Temporarily disable security plugins or ModSecurity rules in your hosting panel to see if a firewall rule is blocking legitimate requests.

### 19. `ERR_TOO_MANY_REDIRECTS`
Two URL rules are bouncing visitors back and forth endlessly, most often HTTP-to-HTTPS vs. HTTPS-to-HTTP, or `www` vs. non-`www`.

Check that `WP_HOME` and `WP_SITEURL` match, deactivate redirect plugins, and if you use Cloudflare, switch **SSL/TLS > Overview** from **Flexible** to **Full (Strict)** once an SSL certificate is installed on your origin host.

### 20. "Upload: Failed to Write File to Disk"
PHP either lacks write permission on `/wp-content/uploads` or the server's `/tmp` directory is full. First, set `/wp-content` folder permissions to `755` and files to `644` over SFTP. If that doesn't clear it, contact your host because only server root admins can empty a full `/tmp` partition.

### 21. "This Site Ahead Contains Harmful Programs" Warning
Chrome and Google Search flagged malicious scripts, injected redirects, or compromised ad tags on your domain.

Scan your files with Wordfence or a server-side malware scanner, remove injected code from `index.php`, `wp-config.php`, and theme headers, update every plugin and core version, rotate all admin/SFTP/database passwords, and request a security review in **Google Search Console**.

### 22. Missed Schedule Post Error
WordPress relies on `wp-cron.php`, which only fires when someone visits a page. If caching blocks `wp-cron.php` or traffic is low at the scheduled minute, the post misses its window.

Confirm your timezone under **Settings > General**, exclude `wp-cron.php` from aggressive page caching, or set up a real cron job in cPanel/server crontab to ping `wp-cron.php` every 5 to 15 minutes.

### 23. Fatal Error: Maximum Execution Time Exceeded
A plugin import or backup script ran past PHP's default 30-second timeout. Raise the limit to 300 seconds by adding this to `.htaccess`:

```apache
php_value max_execution_time 300

If your host uses Nginx or ignores .htaccess PHP flags, set max_execution_time = 300 in your hosting panel’s PHP settings instead.

24. Incorrect Facebook / Social Share Thumbnail

Facebook cached an old image or grabbed a random logo from your sidebar instead of your featured image. Set your desired og:image in Yoast SEO, Rank Math, or AIOSEO, purge your WordPress page cache, paste the post URL into the Facebook Sharing Debugger, and click Scrape Again.

25. Mixed Content Error (HTTPS with HTTP Assets)

Your page loads over https://, yet older images, fonts, or scripts are still hardcoded with http:// URLs, triggering browser padlock warnings. Run Better Search Replace on your database to swap http://yourdomain.com to https://yourdomain.com, then clear all caches.

26. “Add Media” Button Not Working

A JavaScript error from another plugin is stopping the Classic Editor media modal from opening. Open Chrome DevTools (F12 > Console) to see which script threw the error, or add define(‘CONCATENATE_SCRIPTS’, false); to wp-config.php as a quick workaround.

27. Turning Off PHP Warnings and Notices on a Live Site

Minor PHP deprecation notices shouldn’t print across your public header or footer. Replace define(‘WP_DEBUG’, true); in wp-config.php with:

ini_set('display_errors', 'Off');
ini_set('error_reporting', E_ALL);
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);

HTTP, Server & Network Errors

28. 400 Bad Request

The server rejected the browser request due to malformed URL characters, an oversized upload, or corrupted domain cookies. Check the URL spelling, clear browser cookies for that site, and flush local DNS.

29. ERR_BLOCKED_BY_RESPONSE

An external page or video refuses to load inside an <iframe> because its server sends X-Frame-Options: DENY or a strict Content-Security-Policy header. Either use the platform’s official embed URL (for example, youtube.com/embed/…) or adjust your own CSP headers if you control both domains.

30. ERR_HTTP2_PROTOCOL_ERROR

Chrome dropped the connection due to a malformed HTTP/2 frame, sometimes caused by an antivirus HTTPS filter, a misconfigured CDN, or corrupted browser socket pools. Update Chrome, test in Incognito without extensions, or flush sockets at chrome://net-internals/#sockets.

31. ERR_TUNNEL_CONNECTION_FAILED

Your browser is routed through a proxy or VPN that can’t reach the destination server. Turn off your VPN client and disable any manual proxy settings in Windows or macOS network preferences.

32. DNS Server Not Responding

Your ISP’s DNS resolver failed to return an IP address for the domain. Restart your router or switch your device DNS settings to Cloudflare (1.1.1.1 / 1.0.0.1) or Google Public DNS (8.8.8.8 / 8.8.4.4).

33. ERR_UNKNOWN_URL_SCHEME

A button or anchor tag uses a broken link prefix, like htttps://, mailo:, or an unhandled app deep link. Inspect the button HTML and fix the URL scheme.

34. ERR_BLOCKED_BY_CLIENT

An ad blocker, tracker blocker, or privacy extension in your browser blocked a script, analytics tag, or stylesheet. Open the page in a clean Incognito window to confirm, then whitelist the blocked script or adjust your extension rules.

35. ERR_INTERNET_DISCONNECTED

Your local machine lost network connectivity. Check your Wi-Fi connection, Ethernet cable, or router status before touching anything on your server.

36. “Not Secure” Warning in Chrome

The site is loading over plain HTTP or lacks an active SSL certificate. Install a free Let’s Encrypt certificate inside your hosting control panel and enable HTTPS redirection.

37. “This Site Can’t Be Reached”

Chrome couldn’t establish a connection at all. Check whether the site loads on mobile data (to rule out a local ISP/DNS issue or firewall IP block) and flush your local DNS cache.

38. ERR_CONNECTION_TIMED_OUT

Your server took too long to answer the browser’s handshake, usually because PHP workers are maxed out by uncached traffic or a runaway plugin. Check your host’s resource usage graphs and enable full-page caching.

39. 429 Too Many Requests

Rate-limiting kicked in because an IP address, scraper bot, or looping webhook sent too many hits in a few seconds. Check server access logs to see if a specific plugin cron or bot is hammering admin-ajax.php or wp-login.php, and block abusive user agents or IPs via Cloudflare WAF.

40. DNS_PROBE_STARTED

Your operating system couldn’t start the DNS query. Flush your OS DNS cache (ipconfig /flushdns on Windows or sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder on macOS) and reconnect your network adapter.

41. 502 Bad Gateway

A reverse proxy or CDN (like Cloudflare or Nginx) received a dead or invalid response from upstream PHP-FPM. This often happens when a heavy plugin crashes a PHP worker. Rename /wp-content/plugins via SFTP to test if a plugin is causing PHP-FPM to crash, and inspect your PHP error log.

42. 503 Service Unavailable

The web server is online, but PHP workers are completely saturated or the server is in maintenance mode. Rename your active theme folder or plugins folder via SFTP to stop heavy scripts from spawning, then check server CPU/RAM logs.

43. SSH Connection Refused

Your terminal or SFTP client couldn’t connect on the SSH port. Double-check the port number (standard 22, though many hosts use custom ports like 2222 or 18765), make sure SSH access is toggled ON in your hosting dashboard, and whitelist your current IP address in the server firewall.

44. “Your Connection Is Not Private”

The SSL certificate expired, was issued for a different domain, or is self-signed. Click the padlock or warning icon in the address bar to view the certificate expiry date, then renew or reissue Let’s Encrypt SSL in your hosting panel.

45. Incomplete Certificate Chain Warning

Your server sent the primary SSL certificate without the intermediate CA certificates browsers need to verify trust. Reinstall the SSL certificate using the full chain (fullchain.pem, which combines your domain certificate and intermediate bundle).

46. ERR_CERT_COMMON_NAME_INVALID

You visited www.example.com, but the SSL certificate only covers example.com (or vice versa). Reissue your SSL certificate so both the root domain and www subdomain are included as Subject Alternative Names (SANs).

47. ERR_BAD_SSL_CLIENT_AUTH_CERT

Either the server asked for a client authentication certificate that failed verification, or your computer’s system clock is off enough to make valid certificates look expired. Sync your OS date and time automatically and clear your browser/OS SSL state.

48. ERR_SSL_VERSION_OR_CIPHER_MISMATCH

The browser and server couldn’t agree on a TLS protocol version or cipher suite. Enable TLS 1.2 and TLS 1.3 in your server or CDN SSL settings, and wait a few minutes if a newly added Cloudflare certificate is still provisioning.

49. ERR_SSL_PROTOCOL_ERROR

Something interrupted the TLS handshake, frequently an antivirus HTTPS-scanning shield, a misconfigured SSL port, or stale local SSL cache. Sync your system clock, temporarily pause antivirus HTTPS scanning, and clear your browser cache.

50. ERR_EMPTY_RESPONSE

The server accepted the TCP connection and immediately closed it without returning headers or HTML. Run ipconfig /flushdns and netsh winsock reset on Windows, restart your browser, and check your web server error log for segmentation faults or firewall drops.

51. ERR_CACHE_MISS

Chrome wants confirmation before resubmitting POST form data when you hit the Back button. Open DevTools (F12), right-click the browser reload button, and click Empty Cache and Hard Reload.

52. ERR_FILE_NOT_FOUND

In browser troubleshooting, this usually pops up when a broken Chrome extension tries to load an internal file that was deleted or corrupted. Open chrome://extensions/, turn off all extensions, and re-enable them one by one to find the broken one.

53. ERR_ADDRESS_UNREACHABLE

Your router or ISP can’t route packets to the server IP. Restart your router, test on a mobile hotspot, and switch your local DNS to 1.1.1.1 or 8.8.8.8.

54. ERR_NETWORK_CHANGED

Your device switched Wi-Fi networks, dropped onto mobile data, or reconnected a VPN right in the middle of loading a page. Reload the tab or renew your local IP lease (ipconfig /release followed by ipconfig /renew on Windows).

55. ERR_CONNECTION_RESET

An intermediate firewall, ISP filter, or unstable VPN abruptly killed the active connection. Turn off any VPN, pause local antivirus web shields to test, and flush DNS.

56. ERR_CONNECTION_REFUSED

The destination host actively rejected the connection, either because Nginx/Apache isn’t running or a local proxy setting on your computer is pointing to a dead port. Turn off Use a proxy server in your OS proxy settings and verify that your web server service is running.

57. 501 Not Implemented

The web server doesn’t recognize the HTTP request method or runs outdated server software. Ask your hosting provider to check Apache/Nginx modules and update your server stack.

58. 408 Request Timeout

The server closed an idle connection because your browser took too long to finish sending the request (common when uploading large files over a slow connection). Check your upload speed or increase client_body_timeout / RequestReadTimeout on the server.

59. “Installation Failed: Could Not Create Directory”

WordPress tried to unpack a plugin or theme zip inside /wp-content/ and hit a permission wall. Connect via SFTP, set /wp-content directories to 755, and verify that the files are owned by the same Linux user that runs PHP.

Frequently Asked Questions

How do I find out what is causing a hidden WordPress error?
Open wp-config.php, set WP_DEBUG and WP_DEBUG_LOG to true, and reproduce the error. WordPress will write the exact PHP error and file path into /wp-content/debug.log.

What does “There has been a critical error on this website” mean?
A fatal PHP error stopped WordPress from finishing page execution. Check the admin email inbox for WordPress’s automated Recovery Mode link, which lets you log in safely and deactivate whichever plugin or theme threw the exception.

How do I recover a corrupted WordPress installation without losing my posts?
Your posts, pages, and settings live in the MySQL database, while your themes and uploads live in /wp-content/. Back up both, then overwrite wp-admin, wp-includes, and the root WordPress PHP files with clean copies from WordPress.org via SFTP.

Share this post
Share on X LinkedIn
← Previous Restaurant Website 2027: Zomato, Swiggy or Your Own Online Ordering? An Honest Guide

More from CrestVox Studio

Have a project in mind?

Let's talk about your website, store or idea. CrestVox Studio replies within 24 hours.

Start a Project