# Troubleshooting

> The refusals and failures Static Export can show while exporting, recording filters and deploying, by the message you see, with the fix.

<!-- Sources: src/StaticExport/Job/ExportRunner.php; src/StaticExport/Content/TargetBase.php; src/StaticExport/Cli/*.php; src/StaticExport/Deploy/Job/*Runner.php; src/StaticExport/Deploy/Job/*WorkFiles.php; src/StaticExport/Deploy/Github/GithubApi.php; src/StaticExport/Deploy/Cloudflare/CloudflareApi.php; src/StaticExport/Deploy/Http/DeployHttpClient.php; src/StaticExport/Deploy/Cloudflare/OAuth/*.php; src/StaticExport/StaticExportCloudflareOAuthCallback.php; connect-bridge/src/handler.ts; client-app/src/static-export/deploy/CloudflareDeploySection.svelte; client-app/src/static-export/**/*labels.ts; client-app/src/static-export/facets/recorder/composed-fallback.ts -->

# Troubleshooting

:::caution Beta
Static Export is in beta. See [what Beta means](./overview.mdx#what-beta-means).
:::

Find the message you see on this page, then apply the fix. Messages are quoted as the panel or WP-CLI shows them; `…` stands for a name, a number or an address that depends on your site.

## Exporting

### "Static Export needs WordPress 6.7 or newer."

Update WordPress to 6.7 or newer.

### "Static Export needs pretty permalinks. …"

In **Settings → Permalinks**, choose any structure other than **Plain**, save, and export again.

### "Static Export is turned off. …"

Switch on **Enable Static Export** in the panel, or run `wp oh-my-etch static-export enable`. When the panel says `Static Export is turned off on this site. Reload the panel.`, it was turned off in another tab or from WP-CLI: reload the page.

### "An export is already running."

Another tab or a WP-CLI command started an export. In the panel, continue it with **Continue export** or stop it with **Cancel export**. From WP-CLI, run `wp oh-my-etch static-export cancel`, or start with `--force` to cancel the running export and start a new one.

### "Another export request is still running. Try again in a moment."

Two requests reached the site at once, for example from two tabs. Wait a moment and try again.

### Errors under "Folder path" or "Site address on the static host"

The field is **Folder path**, under **Served from a folder?** in step 1 of the **ZIP file** destination; the panel opens it when it shows an error. With the GitHub Pages preview, it is **Site address on the static host** in step 2 of **GitHub Pages**. An export from the **Cloudflare** destination has no site address, so it never shows these errors.

These messages call the field the target base:

| Message                                                                            | Fix                                                                                                                                                                                                                                                                                                                           |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Static Export target base contains unsafe characters or a trailing slash.          | Remove the trailing `/`. Between single slashes use only letters, digits, `-`, `.`, `_`, `~` and `%` with two hex digits, and no part that is `.` or `..`. In a full address, use a domain of letters, digits, `-`, `_` and dots (an international domain in its `xn--` form) or an IPv4 address, and a port from 1 to 65535. |
| Static Export target base cannot be protocol-relative.                             | Start the path with a single `/`, not `//`.                                                                                                                                                                                                                                                                                   |
| Static Export target base must be empty, root-relative or an absolute http(s) URL. | Enter a path such as `/my-repo`, or a full `https://` address, or leave the field empty.                                                                                                                                                                                                                                      |
| Static Export target base must have a host and no user information.                | Use a full address with a domain and without `user:password@`.                                                                                                                                                                                                                                                                |
| Static Export target base must be at most 1024 bytes long.                         | Use a shorter path or address.                                                                                                                                                                                                                                                                                                |

From WP-CLI the same messages start with `Invalid target base:`.

### "The export stopped because the site has more than … URLs to export."

The site has more addresses than one export may collect (50,000 by default). Check whether a plugin generates many addresses, for example through a calendar or an archive. A developer can raise the limit with the `ome_static_export_max_urls` [filter](./wp-cli.mdx#filters).

### "The export is paused because of an error." or "The export stopped responding."

A request failed or the connection dropped. Click **Continue export** to try again.

### Notes in the Problems table

| Note                                                                       | What to do                                                                                                                          |
| -------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Not found on the site.                                                     | A link points to a page that does not exist. Fix or remove the link.                                                                |
| The site answered with HTTP ….                                             | The page fails for anonymous visitors. Open it in a private browser window and fix the error.                                       |
| Redirects to another site.                                                 | The address redirects away from your site, so it is not exported.                                                                   |
| Redirects without a usable location. / Redirects to itself more than once. | Fix the redirect, for example in a redirect plugin.                                                                                 |
| The page is not HTML.                                                      | The address returns something other than a page. Usually nothing to do.                                                             |
| Fetching this URL stopped the export twice, so it was left out.            | Rendering the page broke the export twice. Open the page in a private browser window, fix any error, then export again.             |
| No connection base answered: ….                                            | The server cannot reach its own site. See [When the site cannot reach itself](./local-sites.mdx#when-the-site-cannot-reach-itself). |
| WooCommerce page, left out of the static site.                             | Expected. See [WooCommerce pages](./what-works.mdx#woocommerce-pages).                                                              |

### The downloaded site looks unstyled when I open `index.html`

A page opened as a file cannot load the stylesheets and scripts it links from the root of the site. The export itself is complete. Serve the folder with a local web server, as described in [Preview the download on your computer](./export-a-site.mdx#preview-the-download-on-your-computer).

### WP-CLI: "The output directory is not empty. …" or "The ZIP file already exists. …"

`--output` needs a new or empty folder, and `--zip` a file name that does not exist yet. Choose another one. The export itself finished and stays on the site.

## Recording filters

Under **Cloudflare**, **Deploy to Cloudflare** takes the place of **Export site** in the answers below: it exports, records the filters and deploys, and deploys nothing when recording is cancelled, stops or fails.

### "Recording stopped: this export cannot hold more filter results."

The lists need more results than one export can hold (20,000 results and 300 MB by default; Composed Datasets count toward the 300 MB). **All filters** records only the pagination of lists recorded as Facet Snapshots whose filter combinations do not fit, but the result pages of each combination only count while recording, so a run can still reach the limit. Choose **Pagination only** under **Filters** and click **Export site** (or **Deploy to Cloudflare**) again. If you need the filters, a developer can raise the limits, see [Filters](./wp-cli.mdx#filters), or show fewer options in the largest filters and export again.

### "Recording stopped: you are no longer signed in. …"

Your WordPress session ended. Reload the page, sign in if asked, and click **Export site**.

### "Recording stopped: the site stopped answering. …"

Check your connection and that the site is running, then click **Export site**.

### "Recording stopped: the export is no longer available. …"

Reload the page to see the state of the export, then export again if it is still there.

### "The export could not add the files the filters need. Continue the export."

Click **Continue export** to finish the export, then download the ZIP or deploy.

### "Recording was cancelled." or "Filters not recorded" after a WP-CLI export

Click **Export site**: it exports again and records the filters. An export made with WP-CLI never records filters; see [WP-CLI](./wp-cli.mdx).

### A list shows only its first page on the static site

Its filters were not recorded, or the export was made with **None** under **Filters**. Check **Filters** in the summary and the reason given under **Filters not recorded**, choose **All filters** or **Pagination only**, then click **Export site** to export and record again. A list that kept pagination only shows its pages, with its filters hidden. See [When filters are not recorded](./what-works.mdx#when-filters-are-not-recorded) and [Lists too large for one export](./what-works.mdx#lists-too-large-for-one-export).

### A Search facet is hidden on the static site

Text search works only on a list recorded with Composed Filters, and only when every text input of that list can be served; see [Text search](./what-works.mdx#text-search). The console line of the list says why its search is off; see [Reading the Composed Filters console line](#reading-the-composed-filters-console-line).

### A list kept pagination only although others with more filters kept theirs

That list was not recorded with Composed Filters, so it was recorded as Facet Snapshots and was over the limit. To see why, open the browser console of the WordPress admin tab you exported from. During recording the panel writes one line per list there, starting with `[OhMyEtch Static Export] Composed Filters`, which says that the list was recorded with Composed Filters or why not. Send that line with a support request. See [Composed Filters and Facet Snapshots](./what-works.mdx#composed-filters-and-facet-snapshots).

### Reading the Composed Filters console line

A list recorded with Composed Filters gets a line such as `[OhMyEtch Static Export] Composed Filters recorded list "shop" on /shop/: 120 items, 14 options, 2 orders, 31 checks`. When the list has a Search facet (free text), the line ends with `, search on (6 checks)`, or with `, search off: <step>/<code> <detail>` and the reason its text search was not recorded. A list that was not composed gets `… Composed Filters not used for list "shop" on /shop/: <step>/<code> <detail>`. The detail names the template, control or request concerned.

When a list is not composed, it still works, recorded as Facet Snapshots. When its search is off, the list still works with its other filters, and its text inputs stay hidden. Some of the codes:

| Code                                            | What it means                                                                                                                                                                                                                                                                                                                                                                                                                                         | What you can do                                                                                                                                                                        |
| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `start/no_recording`                            | Your site did not name the recording it started.                                                                                                                                                                                                                                                                                                                                                                                                      | Export again. If it repeats, send the line with a support request.                                                                                                                     |
| `…/not_started`                                 | The recording of this list was replaced or removed while it ran, for example by an export started in another tab.                                                                                                                                                                                                                                                                                                                                     | Export from one tab only, and export again.                                                                                                                                            |
| `basis/optionless_control`                      | A filter that a visitor can change has no options.                                                                                                                                                                                                                                                                                                                                                                                                    | Give the filter its options, or remove it.                                                                                                                                             |
| `basis/overwriting_groups`                      | Two filters of the list set the same thing, for example two author filters, so the second would replace the first.                                                                                                                                                                                                                                                                                                                                    | Merge them into one filter.                                                                                                                                                            |
| `check/superseded` or `search_check/superseded` | During the check, the page replaced its own requests twice for one state, so that state proves nothing.                                                                                                                                                                                                                                                                                                                                               | Export again.                                                                                                                                                                          |
| `search/duplicate_clause`                       | Two text inputs of the list search the same field in the same way.                                                                                                                                                                                                                                                                                                                                                                                    | Remove one, or point them at different fields.                                                                                                                                         |
| `search/no_clause`                              | Typing into a text input does not change the list's request.                                                                                                                                                                                                                                                                                                                                                                                          | Check in Etch that the input is bound to this list.                                                                                                                                    |
| `search/base_changed`                           | Typing into a text input changes the list's other settings instead of only narrowing it.                                                                                                                                                                                                                                                                                                                                                              | Check the input's query argument against the list's other inputs, such as a fixed hidden input.                                                                                        |
| `search/too_many_clauses`                       | The list's text inputs send more than 10 searches; each row of a Query Bundle counts.                                                                                                                                                                                                                                                                                                                                                                 | Use fewer text inputs or fewer bundle rows.                                                                                                                                            |
| `search/overwriting_clause`                     | A text input would replace a filter instead of narrowing it: an author name search beside an author filter, or a category or tag text search beside a category or tag filter.                                                                                                                                                                                                                                                                         | Remove one of the two, or search the terms with a Taxonomy Argument.                                                                                                                   |
| `search/client_error`                           | The page's filters could not say what a text input sends.                                                                                                                                                                                                                                                                                                                                                                                             | Export again. If it repeats, send the line with a support request.                                                                                                                     |
| `search/request_failed`                         | A request to your site for the search failed.                                                                                                                                                                                                                                                                                                                                                                                                         | Export again.                                                                                                                                                                          |
| `search/no_samples`                             | A text input's field holds no text the panel could take a sample search from; the detail names the input.                                                                                                                                                                                                                                                                                                                                             | Nothing; the list works without text search. Add text to that field if you need it.                                                                                                    |
| `search/search_samples`                         | Your site found no sample text in the field of a text input; the detail names it.                                                                                                                                                                                                                                                                                                                                                                     | As `search/no_samples`.                                                                                                                                                                |
| `search/reused_verdict`                         | The same list on another page already had its search switched off; the detail gives that reason.                                                                                                                                                                                                                                                                                                                                                      | Look at the line of the other page.                                                                                                                                                    |
| `search/not_started`                            | As `…/not_started` above.                                                                                                                                                                                                                                                                                                                                                                                                                             | Export from one tab only, and export again.                                                                                                                                            |
| `search/search_clause`                          | A text input searches something the static site cannot, see [Text search](./what-works.mdx#text-search), searches a taxonomy that is not publicly viewable, or the same search is sent twice.                                                                                                                                                                                                                                                         | Change the input to one of the settings listed there, make the taxonomy publicly viewable if it should be, or accept that the input stays hidden.                                      |
| `search/search_base`                            | Adding a search would change the list's own query. The detail says how: `search columns` (your site limits WordPress search to other fields than title and excerpt), `sanitize_title` (a plugin changes how slugs are built, so slug search is off), the query variable that would change (for example a theme snippet keyed on `is_search()`, or a category, tag or author restriction the search would replace), or that the loop already searches. | For `search columns` or `sanitize_title`, check the plugin or snippet that filters it. For a query variable, change the snippet or the text input so the search only narrows the list. |
| `search/search_meta`                            | The searched custom field is protected, or an item holds a value in it that is not text. With the detail `author name`: an author of the list has a display name equal to their login, nicename or email address, so the author search is off.                                                                                                                                                                                                        | Search another custom field. For `author name`, set a proper display name for that author in **Users**.                                                                                |
| `search/search_too_large`                       | The search file would be larger than 8 MB, or would take the dataset over its limit.                                                                                                                                                                                                                                                                                                                                                                  | Search fewer fields, or a developer raises the limit, see [Filters](./wp-cli.mdx#filters).                                                                                             |
| `search_check/not_compared`                     | A text input's search was never compared during the check (the detail names the input), or a planned check compared nothing (the detail names the state). A list with more than eight text inputs can hit this.                                                                                                                                                                                                                                       | Use fewer text inputs on the list, or accept that its search stays hidden.                                                                                                             |
| `search_check/<code>`                           | Any other code: a sample search gave a different answer in the browser than on WordPress; `<code>` names what differed.                                                                                                                                                                                                                                                                                                                               | Send the line with a support request.                                                                                                                                                  |

## Deploying, both hosts

Under **Cloudflare**, where an answer below says to export the site again, then deploy, clicking **Deploy to Cloudflare** does both.

### "Export the site first: a deployment publishes the last finished export."

There is no finished export on the site. [Export the site](./export-a-site.mdx), then deploy. **Deploy to Cloudflare** exports the site itself, so it never says this.

### "An export is running. …" or "Filters are being recorded. …"

An export or a recording started with **Export site**, or one found paused when the panel opened, is not finished yet. A deployment would publish an unfinished export, so it waits until the export or the recording has ended.

### "A deployment to … is running. Wait for it to finish or cancel it, then deploy."

Wait for the other deployment to finish, or cancel it, then deploy.

### Cloudflare deployments are refused as running, but nothing is deploying

This can happen after the [GitHub Pages preview](./deploy-github-pages.mdx) was switched off while a GitHub deployment was still running. The panel no longer shows that deployment, but it still counts as running, so **Deploy to Cloudflare** says `A deployment is already running. Wait for it to finish, or cancel it.` and `deploy cloudflare` prints the same, followed by advice.

Run `wp oh-my-etch static-export deploy cancel`, which cancels the GitHub deployment also while the preview is off, then deploy again. Switching Static Export off and on also clears it, but that deletes the stored export and the saved tokens.

### "The export changed or was removed while it was being deployed, so the deployment stopped. …"

Export the site again, then deploy.

### "Your session has expired or you may not manage Static Export. …"

Reload the page and sign in again as an administrator.

### "This site cannot encrypt the token, so it was not saved. …"

`OME_STATIC_EXPORT_SECRET_KEY` is defined but shorter than 32 characters, or the server cannot encrypt. Make the key at least 32 characters long, or put the token in `wp-config.php`. See [The encryption key](./keeping-tokens-safe.mdx#the-encryption-key).

### "The saved token cannot be read"

The site's security keys or `OME_STATIC_EXPORT_SECRET_KEY` changed since the token was saved. Enter the token again, or disconnect.

### "This site blocks outbound requests to … (WP_HTTP_BLOCK_EXTERNAL in wp-config.php). …"

Add the host named in the message (`api.cloudflare.com`, or `api.github.com` with the GitHub Pages preview) to `WP_ACCESSIBLE_HOSTS` in `wp-config.php`.

**Connect with Cloudflare** also needs `dash.cloudflare.com`. When it is blocked, the page in the Cloudflare tab reads **Cloudflare could not be connected** with this message. Add both Cloudflare hosts, for example:

```php
define( 'WP_ACCESSIBLE_HOSTS', 'api.cloudflare.com,dash.cloudflare.com' );
```

Keep any hosts the constant already lists.

### "Deploying through the WordPress proxy needs the PHP cURL extension, …"

The site sends requests through a proxy (`WP_PROXY_*` constants) and PHP has no cURL extension. Install the cURL extension, or ask your host to.

### "Could not reach …"

The server could not connect to GitHub or Cloudflare. Check the server's internet connection, DNS and firewall, then try again.

### "On a multisite network, a … token set in wp-config.php can only be used by a network administrator."

Sign in as a network administrator, or save a token for this site in the panel instead.

### "The deployment stopped responding. Continue it to try again."

Click **Continue deployment**.

### "The deployment could not be cancelled and is still running. Try again."

Click **Cancel deployment** again.

### "The export has no files, so nothing was deployed. …" or "The export contains a symbolic link …"

The stored export is damaged or incomplete. Export the site again, then deploy.

## GitHub Pages

### "GitHub Pages deployment is not available in this version yet."

`wp oh-my-etch static-export deploy github` prints this because deploying to GitHub Pages is a preview that is switched off in this version. Export a ZIP file and host it on GitHub Pages yourself, or deploy to Cloudflare. See [Deploy to GitHub Pages (preview)](./deploy-github-pages.mdx).

The other messages in this section come from the preview, when it is turned on with `OME_STATIC_EXPORT_GITHUB_PREVIEW`.

### "GitHub did not accept the token (HTTP 401). Enter a valid token."

The token is wrong, expired or revoked. Create a new one and click **Replace token**, or update `OME_STATIC_EXPORT_GITHUB_TOKEN`. See [Create the token](./deploy-github-pages.mdx#create-the-token).

### "The GitHub token may not do this in this repository (HTTP 403). …"

The token lacks access to the repository or a permission. Give it access to this repository with **Contents: Read and write** and **Pages: Read and write**.

### "GitHub could not find this, or the token has no access to it (HTTP 404). …"

Check the owner and the repository name, and that the token's repository access includes this repository.

### "GitHub answered with a redirect …"

The repository was probably renamed or transferred. Enter its new owner and name, and click **Save repository**.

### "The GitHub repository … is archived, …"

Unarchive the repository in its settings, or choose another repository.

### "The GitHub user of this token cannot push to …"

Give the token's user write access to the repository, or choose another repository.

### "The branch … of … already holds commits that were not deployed from this site. …"

The branch has content from elsewhere. Choose another branch, or confirm the replacement. In the panel, confirm with **Replace its files and deploy**. From WP-CLI, run again with `--overwrite=<sha>` and the commit the message printed. See [When the branch holds commits from elsewhere](./deploy-github-pages.mdx#when-the-branch-holds-commits-from-elsewhere).

### "This export was made to be served at …, but GitHub Pages serves … at …, so its links would not work there. …"

Export again with **Site address on the static host** set to the value the message names, then deploy. See [Exported for another address](./deploy-github-pages.mdx#exported-for-another-address).

### "GitHub Pages of … is built by a GitHub Actions workflow, …"

In the repository's **Settings → Pages**, choose **Deploy from a branch**, then deploy again.

### "GitHub Pages of … publishes the branch … from the folder …, but this deployment writes the branch …. …"

In **Settings → Pages**, choose the branch you deploy to and the folder **/ (root)**, or deploy to the branch Pages already uses.

### "GitHub refused the branch …, which nobody else changed: a branch protection rule or ruleset may forbid this token from pushing to it. …"

Allow the push in the branch's protection rules or rulesets, or deploy to another branch. The text after `GitHub says:` is GitHub's own reason.

### "The branch … changed on GitHub while the site was being deployed, so nothing was published. Deploy again."

Someone pushed to the branch during the deployment. Deploy again.

### "GitHub stored different content than the export, so nothing was published. …"

Deploy again. If it happens again, export the site again first.

### "… but this token may not turn on GitHub Pages. …" (GitHub Pages is not on)

The site was committed, but the token has no **Administration** permission. Switch Pages on by hand: see [Switch GitHub Pages on by hand](./deploy-github-pages.mdx#switch-github-pages-on-by-hand).

### "… but GitHub Pages had not built it after 10 minutes. …" (GitHub Pages is still publishing)

The deployment worked; GitHub Pages is still building. Check the repository's **Settings → Pages** in a few minutes.

### "… but GitHub Pages could not build the site. GitHub says: …"

Read GitHub's reason after `GitHub says:` and check the repository's **Settings → Pages**.

### "GitHub limited requests … times in a row, so the deployment stopped. Try again later."

GitHub's rate limit was reached many times in a row. Wait, then deploy again.

### "There was not enough free memory to read which files the branch already holds, so every file is sent again. …"

The deployment works, but sends every file. Raise the PHP memory limit so later deployments send only the files that changed.

### "Large files can take longer than a browser request allows to send them; …"

Finish the deployment from a terminal with `wp oh-my-etch static-export deploy github`, which allows longer requests.

### "The export has more than 100,000 files; a GitHub Pages deployment holds at most 100,000, …"

Leave files out of the export, for example by recording filters for fewer lists, and deploy again.

### "The export is …; a GitHub Pages site may be at most …, so nothing was deployed. …"

GitHub Pages sites can be at most 1 GB. Leave files out of the export, for example large media or recorded filters, and export again.

### "… larger than 25 MiB, the most this plugin sends to GitHub as one file; …"

Make the named file smaller, or remove it from the site, and export again.

### "The file … cannot be published on GitHub Pages: …"

The file's path is too long, has characters Git does not accept, or lies in a `.git` folder. Rename or remove it in WordPress and export again.

## Connecting Cloudflare with a sign-in

These are the messages of **Connect with Cloudflare**. Some appear in the panel, others on the page in the Cloudflare tab.

### "Connect with Cloudflare needs HTTPS. …"

The site is served over plain `http://`. Serve it over HTTPS, or paste an API token instead under the message; see [Or paste an API token](./deploy-cloudflare.mdx#or-paste-an-api-token). Local sites on `localhost`, `*.localhost`, `*.local`, `*.test`, `127.0.0.1` or a private network address do not need HTTPS.

On the `connect.ohmyetch.com` page the same problem reads **This link is not valid** with `This WordPress site does not use HTTPS, so it cannot connect with Cloudflare this way. …`

### "Connect with Cloudflare cannot send you back to this site: …"

The site's admin address is not a plain address ending in `/wp-admin/admin-post.php`, often because another plugin changes it. Paste an API token instead.

### "Your browser blocked the new tab. Open Cloudflare here."

The browser blocked the pop-up. Click **Open Cloudflare here** in the panel, or allow pop-ups for your site and click **Connect with Cloudflare** again.

### The panel stays on "Waiting for Cloudflare…"

Finish the sign-in in the Cloudflare tab, including **Continue to …** on the `connect.ohmyetch.com` page. The panel checks by itself every few seconds, and at once when you come back to its tab.

- If you closed the Cloudflare tab, click **Open Cloudflare again**.
- To stop, click **Cancel**. This also cancels the sign-in, so finishing it in the Cloudflare tab afterwards connects nothing.
- After 10 minutes the panel stops waiting and says `The sign-in was not finished. Select Connect with Cloudflare to try again.` Click **Connect with Cloudflare** to start again.

### "The sign-in was not finished. If Cloudflare or this site showed a message in the other tab, it says why. …"

The sign-in ended in the other tab without connecting: you declined on Cloudflare, the link expired, or something failed there. The page in that tab says which. Click **Connect with Cloudflare** to start again.

### "Finishing the connection…" after you clicked Cancel

You clicked **Cancel** when the sign-in was already on its way back to the site, so it could no longer be cancelled. The section updates by itself within a minute and then reads **Connected**. Click **Disconnect** if you do not want the connection.

### "A Cloudflare sign-in is being finished on this site. Try again in a moment."

Another sign-in, yours in another tab or another administrator's, is being completed right now. Wait a minute and click **Connect with Cloudflare** again.

### "This sign-in link is no longer valid: it expired, was already used, or was started by another user. …"

The page in the Cloudflare tab shows this when the sign-in took more than 10 minutes, when the same link was opened twice, when another sign-in was started meanwhile, or when you are signed in to WordPress as a different user than the one who started it. Go back to the panel and click **Connect with Cloudflare** again, in the same browser, signed in as the same administrator.

### "This sign-in is already being finished. …"

The same link was opened twice, for example by a double click. The first one is still working. Go back to the panel; it shows the result.

### "This sign-in was cancelled on the site while it was being finished, so nothing was connected. …"

While the sign-in was being completed, someone disconnected Cloudflare, pasted an API token or switched Static Export off on the site. That choice was kept and the sign-in was dropped. Start again from the panel if you still want to connect this way.

### "Sign in to WordPress as an administrator and start again from the Static Export panel."

The page in the Cloudflare tab (**Sign-in not allowed**) found no administrator signed in to WordPress in this browser. Sign in, then start again from the panel.

### "You declined the request on Cloudflare, so nothing was connected."

You clicked deny on Cloudflare. Nothing changed on the site. Click **Connect with Cloudflare** again if you meant to approve.

With `Cloudflare did not grant access, so nothing was connected.`, Cloudflare refused for another reason. Start again from the panel.

### "This link is not valid"

- On `connect.ohmyetch.com`, with `This page could not continue the connection to Cloudflare. …`: the address was cut or changed, for example when copied by hand. Start again from the panel.
- On your own site, with `This is not a valid Cloudflare sign-in link, so nothing was connected. …`: the same, for the address that brings you back to the site. Start again from the panel.

### "Connection ended"

The section reads **Connection ended** and `Cloudflare ended this connection: connect again to deploy.`. A deployment or a test can also say `Cloudflare no longer accepts this connection. Connect with Cloudflare again.`

Click **Connect with Cloudflare** to connect again. It also shows after the site's security keys or `OME_STATIC_EXPORT_SECRET_KEY` changed, because the saved connection can no longer be read. Otherwise it usually happens when a copy of the site, such as a staging site made from the production database, deploys with the same connection. After connecting again, connect each copy on its own, or use a pasted API token on the copy. See [Connection ended](./deploy-cloudflare.mdx#connection-ended).

### "The Cloudflare connection is being renewed by another request. Try again in a moment."

Two requests needed a fresh Cloudflare token at the same time. Wait a few seconds and try again. A running deployment waits and continues by itself.

### "This site is disconnected, but Cloudflare could not be reached: …"

The site no longer holds any token. To remove the entry on Cloudflare too, open your profile in the Cloudflare dashboard, go to **Connected Applications** and remove **Oh My Etch**.

The same applies to `The token is saved. The earlier sign-in could not be ended at Cloudflare. …` after you pasted an API token over a sign-in, and to `The earlier connection could not be ended at Cloudflare. …` on the page of a new sign-in.

### Oh My Etch is still listed under Connected Applications

This is expected after you uninstalled the plugin, or after a disconnect that could not reach Cloudflare. Uninstalling deletes the tokens from the site but does not contact Cloudflare. No token is left that works. Remove **Oh My Etch** under **Connected Applications** in your Cloudflare profile if you want it gone.

## Cloudflare

### "Cloudflare did not accept the API token (HTTP 401). …" or "The Cloudflare API token is …"

The token is wrong, expired or deleted. Create a new one and click **Replace token**, or update `OME_STATIC_EXPORT_CLOUDFLARE_API_TOKEN`. See [Create the API token](./deploy-cloudflare.mdx#create-the-api-token). If you connected with **Connect with Cloudflare**, see ["Connection ended"](#connection-ended).

### "The API token may not do this on this account (HTTP 403). …"

Check that the token has the **Workers Scripts: Edit** permission for this account and that the account ID is right. If you connected with **Connect with Cloudflare**, disconnect and connect again, and approve the account you deploy to.

### "`OME_STATIC_EXPORT_CLOUDFLARE_ACCOUNT_ID` is missing or is not 32 hexadecimal characters."

Define the account ID in `wp-config.php` next to the token constant. You find it on the **Workers & Pages** overview of the Cloudflare dashboard.

### "This Cloudflare account has no workers.dev subdomain yet. …"

Open **Workers & Pages** in the Cloudflare dashboard once and choose a subdomain, then deploy again.

### "A Worker named … already exists on this Cloudflare account and was not deployed from this site. …"

Choose another **Worker name**, or confirm the replacement with **Replace it and deploy**. From WP-CLI, use `--name` for another name or `--overwrite` to replace it.

### "The export has … files. The Cloudflare Workers Free plan serves at most 20,000 files per Worker, …"

A warning: the deployment goes ahead, and Cloudflare refuses it on the Free plan. Upgrade to Workers Paid, or choose **Pagination only** or **None** under **Filters** and deploy again, so the export has fewer files.

### "The export has more than 100,000 files; a Cloudflare Worker holds at most 100,000, …"

Leave files out of the export, for example by recording filters for fewer lists, and deploy again.

### "… larger than 25 MiB, the most Cloudflare serves for one file; …"

Make the named file smaller, or remove it from the site, and export again.

### "The file … cannot be served by Cloudflare: …"

The file's address is too long or has characters an address cannot carry. Rename or remove it in WordPress and export again.

### "The Cloudflare account changed while the site was being deployed, …"

The token, the account ID or the sign-in was replaced during the deployment. Deploy again to publish to the account now connected.

### "Cloudflare refused the files of this version (HTTP …)."

Cloudflare refused the upload, possibly because of a plan limit. Check the [plan limits](./deploy-cloudflare.mdx#plan-limits).

### "Cloudflare is limiting requests. …" or "Cloudflare failed … times in a row, …"

Wait a few minutes, then deploy again.

### An empty Worker appears on the account

A first deployment that was cancelled or failed part-way can leave an empty Worker with that name. The next deployment to the same name reuses it. Delete it in the Cloudflare dashboard if you no longer need it.
