Repository navigation
Troubleshooting
Written against main after v0.8.9.
- Every request answers 401, including one with the right key
- A signed-in user gets 403
- A request answers 200 with another site's content
- A post type answers 404 on one site but works on another
- A form route answers 404 although the plugin is installed
/post-typesanswers 400 withsitemodified_afteranswers 400- An option is missing from
/options - A front-gated site refuses the token
Cause: the API answers every failed credential with the same 401 uamswp_migration_api_unauthorized, so a token pasted with a stray space, a token from another network, a shared secret whose constant is not defined, and no key at all look the same. A request whose site is wrong gets that site error first, whatever its key.
Fix: generate a new token on the site's own token page, paste it again, and run the three requests on Giving a consumer access. For the shared secret, check that UAMSWP_MIGRATION_API_SECRET is defined above the /* That's all, stop editing! */ line. Rotated recently? The previous token stops working an hour after the new one is issued.
uamswp_migration_api_forbidden: "You do not have permission to read migration data for this site."
Cause: the user is signed in but lacks manage_network_options (multisite) or manage_options (single site) on the site being read. With site, that is the named site, not the one handling the request.
Fix: use the token instead of a user, or grant the capability on the site being read.
Cause: site was dropped from the request, so the site handling it answered.
Fix: compare X-UAMSWP-Site with the site you meant to read, on every response. See Reading another site on a network.
uamswp_migration_api_type_not_registered_here.
Cause: the post type is exposed by configuration but not registered in the PHP process handling the request, usually because the plugin or theme that registers it is not active on the site whose URL was called. With site, registration comes from the site whose URL was called, not from the site named.
Fix: with site, call the named site on its own URL, without site. Without it, the site has no such type registered, so there is nothing of it to read. GET / on a site lists the post types it exposes. uamswp_migration_api_unknown_post_type instead means the type is not in the configuration at all (Configuration and hooks).
uamswp_migration_api_forms_plugin_not_active.
Cause: the form plugin is not loaded in the PHP process handling the request. A plugin active only on the site named in site, and not on the site whose URL was called, is not loaded.
Fix: call the route on the URL of the site where the plugin is active. GET / shows available: false for a plugin the process cannot read. The redirect routes check the site being read, and answer uamswp_migration_api_redirect_plugin_not_active when the plugin is not active there.
uamswp_migration_api_registration_is_not_site_scoped.
Cause: post types and taxonomies are registered once per PHP process, so switching sites does not change what is registered.
Fix: call /post-types and /taxonomies on the target site's own URL, without site.
rest_invalid_param, with uamswp_migration_api_bad_modified_after in its details.
Cause: the value is relative (now), partial (2026) or not a real date or time.
Fix: send YYYY-MM-DD, YYYY-MM-DD HH:MM:SS (read as GMT) or an ISO 8601 timestamp such as 2026-11-01T00:00:00Z. See Reading a live site in pages.
Cause: its name matched the denylist, counted in denied.by_name, or its value looked like a credential, counted in denied.by_shape. Either way it is left out.
Fix: a value withheld by its name can be released by changing option_denylist in config/local.php (Configuration and hooks), if the value is not a secret. A value withheld by its shape cannot be released by any configuration. If denylist.stale is true, a plugin now active is missing from the list the denylist was reviewed against, and the denylist itself needs a review.
Cause: another plugin closes the site's REST API before routing. This plugin reports a valid key to that gate, but a gate that decided first is never overruled.
Fix: see What answering the authentication filter means for a site with its own gate.
Home | Your first read | Guides | Troubleshooting | Reference | README | Repository
Written against main after v0.8.9. Edit these pages in docs/wiki/ through a pull request; edits made in the wiki are overwritten by the next publish.
Getting started
Guides
Troubleshooting
Reference
Project