Opens in a new tab

Troubleshooting

Start with three quick checks, then find your symptom. Every fix here is reversible.

Find the cause before you change anything

Most problems with a static site come from one of a few places: a static copy that has not been rebuilt yet, a page that is on purpose left dynamic, a server that cannot use the direct shortcut, or a plugin blocked on the wrong page. MyStaticWP tells you which one, if you know where to look.

This page starts with three checks that solve most cases, then goes through the problems by symptom. Every fix is reversible: turning static mode off, resetting the plugin choices and deactivating the plugin each bring the site back to normal, dynamic WordPress.

  • Nothing is deleted from your content, ever.
  • Static files live in their own folders.
  • When a message on screen says what is wrong, this page quotes it word for word.
On this page

Three checks that solve most cases

  1. Look at the site in a private window. Logged in, you always see the live site. A static copy is only served to visitors who are not logged in.
  2. Read the Switch screen. It says whether static mode is on, whether the server-level bypass is active, and what the last regeneration did.
  3. Open the journal. On the Switch screen, Last regeneration lists every page with its result. A page that is skipped or failed says why.

Where to look

Place What it tells you
Overview The mode, the static pages in cache, the last regeneration, and an alert strip that appears only when something needs you.
Switch The switch, the generation style, the server-level bypass status and the journal.
Pages The style of each category and each page, and the pages that are always live.
Plugins The plugin choices, and a red message if the plugin filter file cannot be installed.
Browser In the Network tab, a static page served through PHP carries the header X-MyStaticWP-Cache: hit. A static page served directly by the web server carries none.

The plugin says the environment is blocked

Three things stop the plugin from working. The Overview and the Switch screen name the one that applies:

  • PHP version is below the minimum required. The plugin needs PHP 7.4 or higher. Ask your host to raise it.
  • The uploads directory is not writable — the static cache cannot be written. The folder wp-content/uploads must be writable. Ask your host.
  • Plain permalinks are enabled. Go to Settings → Permalinks and choose any structure other than Plain.

Static mode is on, but visitors see the dynamic site

  • No static files exist yet. The Switch screen says: Static mode is on, but no static files exist yet — visitors are still seeing the dynamic site. Click Regenerate all.
  • You are logged in. You always see the live site. Test in a private window.
  • The address has a query string. An address with ?s=, ?utm_source= or any other parameter always reaches WordPress.
  • The page is skipped. A WooCommerce cart, checkout or account page, a page set to always dynamic, a page not published, or an address that redirects: see the journal.
  • The page is the bare address of a multilingual site. It is always answered by WordPress. See Multilingual sites (Polylang).

The server-level bypass is not active

The status line on the Switch screen has three possible messages:

Message Meaning and action
Active “Server-level bypass active — matching pages are served without WordPress running at all.” Nothing to do.
Not available “Server-level bypass not available on this host (Nginx detected) — pages are still served through WordPress.” Your server is not Apache or LiteSpeed. Static pages are still built and served through PHP, without a rebuild. Nothing is broken.
Not active “Server-level bypass not active — .htaccess could not be written. Check that it exists and is writable, then save this form again.” Fix the permissions of .htaccess in your site’s root, then save the Switch form.

If you deactivate the plugin and reactivate it while static mode is on, the bypass comes back by itself the next time you open any administration screen.

A page shows old content

  • Save the page again, or open its edit screen and click Push this page.
  • If several pages are stale, click Regenerate outdated or missing pages only on the Switch screen.
  • If a change to the theme, a menu or a global style is not visible, wait about a minute: a shared change rebuilds the whole site once, shortly after. Then check the journal for Rebuild after a shared change.
  • If your browser or a CDN shows an old version, clear that cache. A static page served through PHP carries a short browser cache of a few minutes.

A page is listed as failed or skipped

Result What to do
Failed The reason and the HTTP code are shown, and the previous static copy stays. Open the page yourself: an error on the live page makes the capture fail. Fix the page, then push it again.
Skipped Read the reason. A WooCommerce system page, a page set to always dynamic, a page that is not published, something that is not a public page and an address that redirects are skipped on purpose.

If a page that had a static copy now redirects elsewhere, its old copy is removed.

A form does not work

  • The form is replaced by a message. The page is in Strict style. Pin it to Hybrid on the Pages screen, or accept the message and set your contact address on the Switch screen.
  • A form in Hybrid style fails with a security error. Its security token expired in the static copy. Rebuild the page. MyStaticWP also rebuilds the whole site every day for this reason.
  • A form disappeared after blocking a plugin. The plugin that handles it is probably blocked on that page. Tick it again on the Plugins screen.
  • A search box or a comment form disappeared. Strict replaces every form. Use Hybrid for that page.

A page is broken after blocking a plugin

  1. On the Plugins screen, tick back the plugin you blocked on that row.
  2. Or click Reset — make every plugin active everywhere. It clears every choice and rebuilds the affected pages.
  3. Next time, use Preview before you save, and keep the check option ticked.

If a red message says Not active on this server, the folder wp-content/mu-plugins/ is not writable. Your choices are saved but have no effect. Ask your host to make that folder writable.

Measurements fail or look odd

  • Could not measure this page right now — the server did not answer reliably. Try again in a moment.
  • This measurement expired. Go back to the Plugins screen and start it again.
  • The measurement could not continue. Reload the page to try again.
  • The server was too erratic during this measurement. The figures below the warning mean little. Repeat at a quieter time.
  • Everything is uncertain or not measurable. Repeat with more trials.

The method and its limits are explained in Measuring plugin costs.

The compatibility check flags an element

On the edit screen of a page, a Static compatibility box lists what will not work in a static copy, for example a filter or a load-more button that loads content with AJAX. Click Open the page and highlight this element to see, on your site, the exact element the plugin means: a frame is drawn over it.

  • A live filter or a load-more button needs a live backend. Keep that page dynamic, or replace the element.
  • Only signs of AJAX are flagged. A page without such elements shows no warning.
  • The check reads Bricks pages and other content. It cannot see every possible behaviour of a plugin.

A large site rebuilds slowly

  • Up to about 30 items, a rebuild runs in one go. Beyond that, it runs in batches with a progress bar, and existing static copies keep being served.
  • Background batches rely on WordPress’s scheduled tasks. On a large or quiet site, ask your host to call wp-cron.php every few minutes.
  • You can keep the Switch screen open to drive the rebuild yourself.

Turn everything off, step by step

Step What it does
Static mode off Click Turn static mode off on the Switch screen. Visitors receive the live, dynamic site again at once. The static files stay in their folders.
Reset plugins Click Reset — make every plugin active everywhere on the Plugins screen. Every plugin runs on every page again.
Deactivate Removes the server rules from .htaccess, the plugin filter file, and the scheduled tasks. The site is plain WordPress again.
Uninstall Deletes the plugin. What is also removed depends on your choice under MyStaticWP → License: keep settings and the license key, remove settings and the license key but keep the static cache, or remove everything.

None of these steps changes your pages, posts or media.

When you ask for help

Send us the following. It answers most of our questions before we ask them:

  • your WordPress and PHP versions, and your web server (Apache, LiteSpeed or Nginx);
  • the plugin version, shown on the Plugins page of WordPress;
  • the generation style and whether static mode is on;
  • a screenshot of the Last regeneration journal, and of the status line under the generation style;
  • the address of the page concerned, and what you expected to see.

Use the Contact page. You may also find your answer in the FAQ.