Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free

WordPress Site Not Loading: Common Reasons and Quick Fixes

Site not loading? We broke a WordPress test site six ways and recorded each error screen, so you can match what you see to the cause and fix it.

VS
Vikas Singhal
Founder, InstaWP
Updated Nov 30, 2026 17 min read

If your WordPress site is not loading, the error screen you get narrows down the cause. We broke a test site on purpose (WordPress 7.1.5, PHP 8.3) and recorded each failure. A crashing plugin, a theme syntax error and an exhausted memory limit all showed the same “There has been a critical error on this website” page with HTTP 500. A lost database connection showed “Error establishing a database connection”. An update that never finished locked every page behind a 503 maintenance screen.

This guide starts from the symptom: match what you see to the table, then follow the fix for that cause. Test the fixes on a copy of the site rather than the live one. InstaWP, the AI-native WordPress cloud with managed hosting, can clone a live site into a staging copy in a few minutes, and its error logs, PHP settings and WP-CLI are all available from the dashboard.

Key takeaways
  • The screen tells you the cause. A critical error page means PHP crashed, a database message means wrong credentials or a down database server, a 503 maintenance page means a stuck update, and 404s on every page except the homepage mean broken permalinks.
  • Memory errors hide behind the generic page. In our test, “Allowed memory size of 134217728 bytes exhausted” only appeared with debug display switched on. Visitors saw the same critical error page as a plugin crash.
  • The debug log needs WP_DEBUG. With WP_DEBUG false, our debug.log stayed empty even with WP_DEBUG_LOG true. Turn both on, and keep debug display off on a live site.
  • You can disable a plugin without wp-admin. A WP-CLI deactivate command with the skip-plugins flag worked while our test site was down, and renaming the plugin folder over SFTP works too.
  • Fix on a copy first. Clone the site to a staging copy, reproduce the error there, then apply the proven fix to the live site.

What does “WordPress site not loading” actually mean?

A WordPress site is “not loading” when the browser gets an error, an empty page or an endless spinner instead of your content. The cause sits in one of four places: your own browser or network, the domain and DNS, the server (PHP, the database, the web server config), or WordPress itself (plugins, theme, core files). The symptom narrows it down quickly.

WordPress Site not loading error

How a site that is not loading looks, and what each screen means

We reproduced each of these on a test site running WordPress 7.1.5 on PHP 8.3.37 and Apache 2.4 in Docker on 27 November 2026, with debug display switched off as on a normal live site. This is what a visitor saw:

What you seeHTTP statusCause we triggeredFirst fix
“There has been a critical error on this website.”500A plugin calling a function that does not existRead the error log, then deactivate the plugin it names
The same critical error page500A syntax error in the theme’s functions.phpUndo the last code edit, or switch theme with WP-CLI
The same critical error page500A plugin trying to use more memory than the 128 MB PHP limitFind the heavy plugin in the log; raise memory_limit only if the work is legitimate
“Error establishing a database connection”500A wrong DB_PASSWORD in wp-config.phpCheck DB_NAME, DB_USER, DB_PASSWORD and DB_HOST
“Briefly unavailable for scheduled maintenance. Check back in a minute.”503A leftover .maintenance file from an interrupted updateDelete .maintenance from the WordPress root
“404 Not Found” on posts and pages, homepage fine404A missing .htaccess file with pretty permalinks onSettings > Permalinks > Save Changes

Two things stood out. First, the generic critical error page covered three different causes, so the page alone never tells you which one you have. Second, in wp-admin the plugin crash added “Please check your site admin email inbox for instructions”: that is WordPress recovery mode, which emails the admin a link to log in with the broken plugin paused.

Why is my WordPress site not loading?

Most WordPress sites that stop loading have one of these ten causes. The first five stop the whole site; the rest break parts of it or make it look broken.

1. A critical error or generic error page

Since WordPress 5.2, a PHP fatal error shows “There has been a critical error on this website” with an HTTP 500 status instead of crashing silently. It means some PHP code stopped running: usually a plugin or theme after an update, a custom code edit, or a PHP version the code does not support. The page itself never names the culprit. The error log does.

2. The white screen of death (WSOD)

A completely blank page is the older form of the same problem. In our tests every fatal error produced the critical error page rather than a blank one, so a true white screen today usually means the error happened outside WordPress’s error handler. Typical triggers:

  • Plugin or theme conflicts after an update
  • PHP memory limit exhaustion
  • Syntax errors in custom code, for example a missing bracket in functions.php

Treat it exactly like a critical error: read the error log, then disable whatever it names.

3. 404 Page Not Found on every page except the homepage

If the homepage loads but every post and page returns “404 Not Found”, the permalink rewrite rules are missing. On our Apache test site, deleting .htaccess did exactly this: the homepage stayed at 200 and every post returned Apache’s own 404 page. Saving the permalink settings rewrites the file.

4. 500 Internal Server Error

A 500 means the server failed to build the page. On WordPress the common causes are a PHP fatal error (which WordPress wraps in the critical error page), a broken .htaccess file, exhausted PHP memory, or a script that ran past max_execution_time. Your host’s error log shows which.

5. Site loading so slowly it times out

If the site eventually appears after a long wait, or times out with a 504 or 524, it is a performance problem rather than a crash. Common causes:

  • Heavy or poorly coded plugins
  • An underpowered or overloaded server
  • Unoptimised images
  • Slow external scripts and API calls

Slow pages also lose visitors and rankings, especially on mobile, so fix them even when the site technically works.

6. WordPress memory limit error

This happens when a request needs more memory than PHP allows. With debug display switched on, our test site printed the full message:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 629149696 bytes)

134,217,728 bytes is the 128 MB PHP limit. With debug display off, which is how live sites should run, visitors saw only the generic critical error page, so look for this line in the error log rather than on screen.

7. Error establishing a database connection

WordPress cannot reach its MySQL or MariaDB database. It usually happens because of:

  • Wrong database credentials in wp-config.php (name, user, password or host)
  • A database server that has crashed or run out of connections
  • Corrupted database tables

On our test site a wrong password produced this, with HTTP 500:

Error establishing a database connection

It stops the front end and wp-admin alike, because WordPress reads every page from the database.

8. Maximum upload file size exceeded

Uploading a large theme, plugin or video fails with “exceeds the maximum upload size for this site”. The site keeps working, but it is easy to mistake for WordPress being broken. The limit is the smaller of PHP’s upload_max_filesize and post_max_size, and WordPress shows it on Media > Add New.

9. Plugin conflicts and broken features

If only parts of the site fail, such as a form, a slider or a menu, two plugins (or a plugin and the theme) are usually loading clashing code. Conflicts can cause:

  • Broken features: forms, buttons or galleries that stop working
  • Layout issues: misaligned or missing content
  • Slow pages: extra scripts and database queries
  • Site crashes: in severe cases, a fatal error and the critical error page

If the problem started right after you installed or updated a plugin, start there.

10. Stuck in maintenance mode

While WordPress installs updates it creates a .maintenance file in the site root and shows every visitor “Briefly unavailable for scheduled maintenance. Check back in a minute.” If the update is interrupted, the file stays behind. On our test site, a leftover .maintenance file returned HTTP 503 on the homepage, every post and wp-admin. Deleting the file restores the site immediately.

How do you fix a WordPress site that is not loading?

Work from the outside in: confirm the site is really down, make a safe copy, read the error, then fix the cause the error names. These steps work for a single site and for agencies managing many.

Step 1: Check if it’s just you

Before you touch the server, rule out your own device and network:

  • Refresh the page to rule out a one-off glitch.
  • Try another browser or a private window. If it loads there, your main browser’s cache or an extension is the problem.
  • Clear your browser cache and cookies.
  • Check your connection by opening another website.

Then check whether others can reach it:

If the site is down for everyone, the problem is on the server, the domain or WordPress, and the next steps apply.

Step 2: Create a WordPress staging site for your live site

Once you know the site is down for everyone, move the troubleshooting off the live site. A WordPress staging site is a private copy where you can deactivate plugins, switch themes and edit config files without visitors seeing the results.

A WordPress staging environment also lets you reproduce the error safely, so you can confirm the fix before you apply it to the live site. If wp-admin is still reachable, InstaWP can make that copy for you:

1. Create an account on InstaWP and add a card. A card is required to launch a site, and adding one unlocks $25 in credits, enough for a staging copy like this one.

2. In your live site’s WordPress dashboard, go to Plugins > Add New Plugin and search for the InstaWP Connect plugin.

Searching for the InstaWP Connect plugin under Plugins, Add New Plugin in WordPress

3. Install and activate the plugin.

4. Open Tools > InstaWP. The first time, connect the plugin to your InstaWP account.

Connecting the InstaWP Connect plugin to an InstaWP account from Tools, InstaWP

5. Follow the steps to create a staging site. The copy appears in your InstaWP dashboard, and you can log in to it from the plugin page too.

The InstaWP docs have the full guide to adding the InstaWP Connect plugin to a site. If the live site is fully down and wp-admin will not open, fix the error first (Steps 3 to 4), then make the copy before you change anything else.

Step 3: Deactivate the plugin or theme that broke the site

Most “not loading” problems start with a plugin or theme update. If wp-admin works, deactivate plugins one at a time from the Plugins screen and reload the site after each. If wp-admin also shows the critical error, you have three ways in:

  • Recovery mode: WordPress emails the admin address a special login link that pauses the broken plugin, so you can deactivate it normally.
  • WP-CLI: wp plugin deactivate <plugin> --skip-plugins. On our test site this worked while the site was showing the critical error page.
  • SFTP: rename the plugin’s folder in wp-content/plugins, for example to plugin-name-off. WordPress deactivates a plugin whose folder it cannot find.

To rule out the theme, switch to a default theme such as Twenty Twenty-Five with wp theme activate twentytwentyfive. If you manage many sites, InstaWP’s WordPress site management lets you deactivate and update plugins in bulk or one site at a time, as shown in the guide to bulk and selective plugin updates.

Deactivate outdated plugins and themes to fix WordPress site not loading issue

Step 4: Turn on WordPress debug logging and read the error

The error log turns a generic critical error into a file name and a line number. Add these lines to wp-config.php, above the line that says “That’s all, stop editing!”:

phpwp-config.php
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Reload the broken page, then open wp-content/debug.log. On our test site, a broken functions.php logged “PHP Parse error: syntax error, unexpected token” with the theme file and line 160, which is exactly what you need to fix it. Two things to know:

  • WP_DEBUG_LOG does nothing on its own. With WP_DEBUG set to false, our debug.log stayed empty.
  • Keep WP_DEBUG_DISPLAY false on a live site. With it on, visitors see full file paths in the error message. Remove all three lines when you are done.

WordPress documents every option in Debugging in WordPress. On InstaWP you can also read the PHP error log without editing any file: open the site’s actions menu and choose View Logs.

Step 5: Update WordPress core, themes and plugins

Old plugins and themes often break after a WordPress or PHP upgrade. Once the site loads again, update everything to the latest stable version from Dashboard > Updates, ideally on the staging copy first.

For agencies with many sites, updating one by one is slow and risky. InstaWP’s WordPress site management lets you:

Step 6: Fix database connection errors

“Error establishing a database connection” stops the front end and wp-admin. Check in this order:

  • Credentials: compare DB_NAME, DB_USER, DB_PASSWORD and DB_HOST in wp-config.php with the values your host shows. In our test, one wrong character in the password was enough.
  • The database server: ask your host whether MySQL or MariaDB is running.
  • Damaged tables: once WordPress can connect again, check and repair them.

To check and repair tables, run these WP-CLI commands (see how to run commands on an InstaWP site):

bashterminal
wp db check
wp db repair

These commands need a working database login, so they repair tables but cannot fix wrong credentials.

Run WP CLI command to fix WordPress site not loading issue

Step 7: Fix 500 internal server errors

If the error log shows no PHP fatal error, check the web server configuration:

1. Connect to the site over SFTP or SSH.

2. Rename .htaccess in the WordPress root to .htaccess-old and reload the site. If it loads, go to Settings > Permalinks and click Save Changes to write a clean file.

3. If it still fails, read the server error log for the exact cause.

Access your server files using FTP to fix WordPress site not loading issue

On InstaWP, every site has its own SFTP and SSH login, and the Web Terminal gives you a shell with WP-CLI in the browser, so you can do all of this without a desktop SFTP client.

Step 8: Check the domain and DNS

Sometimes WordPress is fine and the domain is the problem: an expired domain, a DNS record pointing to an old server, or DNS changes still propagating. Check that:

  • The domain has not expired (look it up in your registrar or a WHOIS tool).
  • The A or CNAME records point to your current host.
  • The site loads on its temporary or staging URL. If it does, the problem is DNS, not WordPress.

Step 9: Raise PHP memory and execution limits

If the log shows “Allowed memory size exhausted” or a timeout, you are hitting a resource limit. Two different settings matter:

  • PHP memory_limit is the server’s hard cap per request. On our test site it was 128 MB.
  • WP_MEMORY_LIMIT is a WordPress constant set in wp-config.php. It defaults to 40 MB for front-end requests and can never exceed what PHP allows.

On InstaWP you change the PHP side from the dashboard: open the site, expand Developer Tools and click PHP Config.

Access PHP Config on InstaWP to fix WordPress site not loading issue

From there you can set, within these ranges:

  • memory_limit: 64 to 1,024 MB
  • max_execution_time: 30 to 300 seconds
  • upload_max_filesize and post_max_size: 64 to 512 MB
  • max_input_vars: 1,000 to 10,000
Adjust PHP settings in InstaWP PHP Config to fix WordPress site not loading issue

Raise a limit only after the log shows you need it. If one plugin keeps exhausting memory, replacing that plugin is usually the better fix.

Troubleshoot on a copy, not on the live siteClone the site to InstaWP, reproduce the error and test the fix there.
Create a staging copy →

How can you stop your WordPress site from going down again?

Most outages above start with an untested change or an unmonitored problem, so a few habits prevent most of them.

1. Test every update on a staging site first

Never apply plugin updates, theme changes or custom code straight to the live site. Use a WordPress staging environment to:

  • Copy the live site in a few minutes
  • Test changes and updates safely
  • Catch conflicts before they reach visitors

2. Keep WordPress core, themes and plugins updated

Outdated code is the most common reason a site breaks after a server PHP upgrade.

3. Watch your error log and uptime

Warnings in the error log and slow responses usually come before a full outage.

  • Keep WP_DEBUG_LOG enabled on staging and read the error log after every update
  • Run a performance scanner to spot slow pages and heavy plugins
  • Use an uptime monitor so you hear about downtime before your visitors do

4. Use reliable, scalable hosting

Choose a managed WordPress hosting provider that gives you:

  • Clear PHP memory and execution limits you can see and change
  • Automatic backups you can restore in one click
  • Access to error logs, SFTP and WP-CLI when something breaks

5. Keep plugins lean and vet new code

Every plugin adds code that can conflict with another.

  • Install only maintained, well-reviewed plugins
  • Avoid running several caching or security plugins that do the same job
  • Test custom code on a staging site before it goes live

With these habits and the right WordPress site management tools, a site that stops loading becomes a rare, short incident rather than a long outage.

Conclusion

The short version

Match the symptom first: a critical error page means PHP crashed, a database message means credentials or the database server, a 503 maintenance page means a stuck update, and 404s on inner pages mean broken permalinks. Then read the error log (with WP_DEBUG and WP_DEBUG_LOG both on), fix the cause it names on a staging copy, and apply the fix to the live site. On InstaWP, the logs, PHP settings, WP-CLI and a one-click staging copy are all in the same dashboard.

Keep a staging copy of every client siteTest updates and fixes on InstaWP before they reach visitors.
See hosting plans →

WordPress site not loading: FAQs

Why is my WordPress site not loading?

The most common causes are a plugin or theme that crashes PHP, an exhausted PHP memory limit, wrong database credentials, a stuck update that left a .maintenance file, broken permalinks, and domain or DNS problems. The error on screen narrows it down, and the error log names the exact file.

What does “There has been a critical error on this website” mean?

It means PHP hit a fatal error while building the page, so WordPress returned HTTP 500 with a generic message. In our tests a broken plugin, a theme syntax error and an exhausted memory limit all produced this same page. Turn on WP_DEBUG and WP_DEBUG_LOG and read wp-content/debug.log to see which one it is.

How do I fix WordPress if I cannot log in to wp-admin?

Use the recovery mode link WordPress emails to the admin address, deactivate the plugin with WP-CLI using wp plugin deactivate plugin-name –skip-plugins, or rename the plugin folder in wp-content/plugins over SFTP. Any of these brings the site back if a plugin caused the crash.

Why does my WordPress site say it is briefly unavailable for scheduled maintenance?

An update was interrupted and left a .maintenance file in the WordPress root. Delete that file over SFTP or SSH and the site loads again. On our test site the leftover file returned HTTP 503 on every page, including wp-admin.

Why do my WordPress pages show 404 but the homepage works?

The permalink rewrite rules are missing, usually because the .htaccess file was deleted or overwritten. Go to Settings, then Permalinks, and click Save Changes to write the rules again.

Does WP_DEBUG_LOG work without WP_DEBUG?

No. In our test, debug.log stayed empty with WP_DEBUG set to false even though WP_DEBUG_LOG was true. Set WP_DEBUG and WP_DEBUG_LOG to true and WP_DEBUG_DISPLAY to false, then remove them when you are done.

VS
Vikas Singhal
Founder, InstaWP

Vikas builds tools that take the friction out of WordPress development. He writes about WP-CLI, dev workflows, and running WordPress at agency scale.