Troubleshooting
The problems people hit most often, what they mean, and how to fix them. Start with
wp2next doctor (Claude desktop and Claude Code plugin: /wp2next:doctor; Codex: $wp2next doctor;
Cursor: /wp2next doctor). It checks your tools, logins and connections and points to the fix for
anything missing. On Windows, also see Windows → Troubleshooting.
When you ask your AI assistant for help, paste the exact error message. Never paste a password or token.
Setup
The Claude desktop app's Code tab shows an upgrade prompt, or a 403 error. Claude Code needs a Pro, Max, Ultra, Team or Enterprise plan. For a 403: sign out and back in, check the subscription, then quit the app completely and reopen it (checked 2026-12, desktop docs (external site)).
The Claude desktop app can't find node, pnpm, py/python3, git or gh, but a terminal can.
The app only sees tools that were on PATH when it started. Quit it completely and reopen it. On
Windows it doesn't read PowerShell profiles, so a Node set up only there (fnm) stays invisible: install
Node with winget install --id OpenJS.NodeJS.24 -e, or set PATH in the Windows environment variables
(Windows).
The Claude desktop app says "Git is required". Sessions that run in their own worktree need Git (Git for Windows on Windows). Install it, or, if you don't use worktrees, update the app: older Windows versions asked for Git before any local session.
/wp2next: shows nothing in the Claude desktop app.
Start a new Code session, or type /reload-plugins. Check the session's environment is Local (not
Cloud or WSL, where this plugin doesn't load). If you added wp2next under Customize → Plugins and it
still doesn't show, remove it there and install it once with the CLI from the Terminal pane
(claude plugin marketplace add MTRCio/wp2next, then claude plugin install wp2next@mtrc); the app
shares CLI plugins. See AI environments.
Windows: running scripts is disabled on this system, 'irm' is not recognized, && errors,
python3 opening the Microsoft Store, or Node 26 instead of 24.
Each has a one-line fix in Windows → Troubleshooting.
npx skills add fails, or a tool says your Node is too old (or too new).
wp2next uses Node.js 24. Check with node --version. Note that "LTS" now means Node 26 (since
2026-10-28), so an installer's LTS button gives you the wrong version. On macOS and Linux, install 24
with a version manager (fnm install 24 then fnm default 24, or nvm install 24 then
nvm alias default 24); on Windows, winget install --id OpenJS.NodeJS.24 -e. Then open a new
terminal. Details in Quick start.
[WARN] Unsupported engine: wanted: {"node":">=24 <25"}.
Projects say "engines": {"node": ">=24 <25"} (in the root package.json and in apps/web, the app
Vercel deploys), and you're on another version (22, or an odd one such
as 25). pnpm only warns, but builds and Vercel use Node 24, so match it. In the project folder run fnm use or nvm use: both read the project's .nvmrc (24).
With fnm set up with --use-on-cd this happens by itself when you cd into the folder.
node: command not found (or the wrong version) right after brew install node@24.
Homebrew installs versioned formulas like node@24 "keg-only": they aren't added to your PATH, so
the shell still finds no Node or an older one. Don't fight it with PATH edits; install Node 24 with
fnm or nvm instead (see Quick start).
brew install node isn't the answer either: it installs the newest release, which may not be 24.
npm install -g fails with EACCES: permission denied.
This happens with the nodejs.org installer, which puts Node in a folder your user can't write to.
Switch to a version manager (fnm or nvm) rather than using sudo for every install.
Your shell is bash, not zsh.
Every Mac since 2019 uses zsh, so the setup pages assume it. On Linux, or a Mac you switched to bash,
use --shell bash and ~/.bashrc in the fnm line:
echo 'eval "$(fnm env --use-on-cd --shell bash)"' >> ~/.bashrc && source ~/.bashrc.
cp: ... No such file or directory when installing wp2next by hand.
The skills folder doesn't exist yet on a new machine. Run mkdir -p ~/.claude/skills ~/.agents/skills
first (Windows: New-Item -ItemType Directory -Force "$HOME\.claude\skills", "$HOME\.agents\skills"),
then copy again.
pnpm --version doesn't show 11.10.0 and doctor warns.
Projects pin "packageManager": "pnpm@11.10.0". Run npm install -g pnpm@11.10.0, then open a new
terminal. Don't use Corepack (corepack enable); Node stops including it from version 25. With fnm or
nvm, a global pnpm belongs to one Node version: after installing a new Node, install pnpm again.
pnpm --version shows 11.10.0 inside a project, but doctor says your pnpm is older.
An older global pnpm (9 or 10) reads the project's "packageManager": "pnpm@11.10.0" and switches
itself to that version for commands run inside the project. That's why pnpm -v in the project folder
prints 11.10.0 while pnpm -v in your home folder doesn't. Project commands work this way, but
install pnpm 11 globally anyway (npm install -g pnpm@11.10.0) so commands outside a project, and
doctor, agree.
pnpm install stops with ERR_PNPM_IGNORED_BUILDS ("Ignored build scripts: ...").
On a new project this shouldn't happen: with the allowBuilds list wp2next writes, the first install
finishes without it. It comes up when a package added later needs an install script. pnpm 11 only runs a package's install script if the project allows it, under allowBuilds in
pnpm-workspace.yaml. A new package that needs one (for example esbuild, sharp,
@parcel/watcher or unrs-resolver) stops the install, and pnpm may add the package there with the
placeholder value set this to true or false. Decide per package: true if it needs the script
to work (usually to fetch or build a native binary), false if the project works without it. Run
pnpm approve-builds <package> to allow one, or edit the file by hand, and put a comment with the
reason next to each entry. Then run pnpm install again and commit pnpm-workspace.yaml. Never
allow everything in one go without reading the list.
[WARN] Ignored project-level auth setting ... / a ${VAR} in .npmrc isn't used.
pnpm 11 doesn't expand environment variables such as ${NPM_TOKEN} in a login line
(//registry.../:_authToken=...) in a project's own .npmrc, because that file is committed. It
drops the line with this warning. wp2next projects don't need private registries, so the usual fix
is to delete the line. If you do need one, put the line in your user-level ~/.npmrc instead,
never in the project.
ERR_PNPM_OUTDATED_LOCKFILE / "frozen-lockfile" on Vercel or in CI.
CI and Vercel install with pnpm install --frozen-lockfile, which refuses a pnpm-lock.yaml that
doesn't match package.json. Run pnpm install locally, commit pnpm-lock.yaml and push. Commit
only pnpm-lock.yaml: delete any package-lock.json or yarn.lock. Leave Vercel's Install Command
on its default; Vercel picks pnpm 11.10.0 from packageManager, and an override can fall back to an
older pnpm.
Codex asks for approval all the time, or pnpm install / npx fail with network errors.
Codex's sandbox turns network access off and asks before writing outside the folder you started it in.
See AI environments for the one setting that allows
network access.
The Claude desktop app or Claude Code says /wp2next is an unknown command after installing the plugin.
The plugin puts every command under its own name. Type /wp2next: and pick from the list, for
example /wp2next:init; the main skill is /wp2next:wp2next. Plain /wp2next init is the form for
installs made with npx skills, a git clone or a copied folder. See
AI environments.
wp2next doesn't show up in Cursor's / menu.
The skills installer puts Cursor's global skills in ~/.cursor/skills/; a manual install may use
~/.agents/skills/ (Cursor also reads ~/.claude/skills/). Check all three at once:
ls ~/.cursor/skills/wp2next/SKILL.md ~/.agents/skills/wp2next/SKILL.md ~/.claude/skills/wp2next/SKILL.mdTest-Path "$HOME\.cursor\skills\wp2next\SKILL.md", "$HOME\.agents\skills\wp2next\SKILL.md", "$HOME\.claude\skills\wp2next\SKILL.md"If one prints a path (macOS) or True (Windows), it's installed: quit Cursor completely (Cmd+Q on a
Mac, File → Exit on Windows) and open it again. If none does, reinstall. Some
Cursor versions may have a setting that turns Agent Skills on; we could not confirm it (Not yet confirmed,
checked 2026-12).
secrets.py (or secrets.sh): namespace 'wp2next/{code}' needs the project code.
You ran a secrets command outside a project folder. Run it from the new project (where wp2next.json
is), or set WP2NEXT_CODE for a one-off. secrets.py help and secrets.py info work anywhere.
(secrets.sh is now a small wrapper that runs secrets.py; old instructions that name it still work
on macOS and Linux.)
The hidden key prompt doesn't accept a paste. Paste with Cmd+V on a Mac, Ctrl+V or a right-click in Windows Terminal. Nothing shows while you paste; press Enter. If the Claude desktop app's Terminal pane won't take it, use the Terminal app or Windows Terminal in the project folder instead.
sanity commands fail with a Node version error.
The Sanity CLI runs on Node 24 (the toolchain baseline). Switch to Node 24 as above.
The assistant says a command was blocked, or asks you to run it yourself. Some assistants block steps that publish something or touch secrets, such as deploying the Sanity editing app or creating API tokens. That's a safety feature. Run the exact command it gives you in your own terminal, then tell it you're done. Don't turn safety settings off to get around it.
Secrets "not found", or the wrong password manager is used.
Check which store is configured: python3 <skill-folder>/scripts/config.py get secrets.backend (on
Windows py instead of python3). Make sure that manager's CLI is installed and logged in. keychain
works on macOS only; on Windows pick another store. doctor checks both. See Secrets: where wp2next keeps passwords and API keys.
Updating wp2next
/wp2next update (or the plugin) says you're already on the latest version, but the changelog lists
a newer one.
Claude Code compares the version number in the plugin, not individual changes. Run
/plugin marketplace update mtrc (in a terminal: claude plugin marketplace update mtrc) first, then
update again. Afterwards run /reload-plugins. If you added wp2next in the Claude desktop app under
Customize → Plugins, update it there.
doctor says wp2next is installed twice.
For example the plugin and a copy in ~/.claude/skills/wp2next, or a plugin added in the Claude
desktop app under Customize → Plugins plus one installed with the CLI. The two can be different versions,
and you can't tell which one answers. Keep one: wp2next uninstall removes the other the right way
for how it was installed. See Updating wp2next and your sites.
doctor says the versions in SKILL.md and plugin.json don't match.
The install was only partly updated, often a hand copy over an older one. Reinstall the same way you
installed it.
After git pull, nothing changed in my assistant.
Restart the assistant (Claude desktop app or Claude Code: /reload-skills, or a new session). If you copied the folder instead of linking it,
the copy doesn't change when the clone does.
The WordPress copy in Local
wp2next can't connect to the WordPress database. The Local site isn't running. Start it in
Local. Its database address can change between restarts, so wp2next reads it fresh each time. On
Windows the connection is a TCP port on localhost (the site's Database tab), not a socket.
From WSL2 it only works with mirrored networking (Windows).
Windows: a wp search-replace in Local's Site Shell changes nothing.
Site Shell on Windows is cmd.exe, which passes single quotes through literally. Use double quotes.
Security warnings when opening https://<site>.local.
Normal. Local uses its own certificate. wp2next's tools are set to accept it.
Links on the local copy go to the live site. The import didn't replace every copy of the old address. See Getting a WordPress site into Local.
Content looks wrong
Quotes and dashes look plain (' and - instead of ’ and –).
WordPress converts quotes and dashes when it shows a page, not in the database. wp2next's converter
applies the same conversion. If some text was missed, ask the assistant to run it on that field too.
Bold or styled paragraphs lost their styling. In the block editor, some paragraph styling is saved as block settings, not in the text. The converter has to turn it into bold text. Ask the assistant to check the converter for that block.
Content edited in Sanity disappeared after re-importing. A re-import replaced whole documents instead of updating them. wp2next's import only updates the fields it owns. If an older script replaced documents, the content can be recovered from Sanity's document history.
A page exists in Sanity but the website can't see it.
Its document ID contains a dot (like page.about). Sanity hides IDs with dots from public reads. Use a
double dash instead (page--about).
After re-importing content, the site still shows old text.
Next.js cached the old content during the previous build. Delete the build cache (.next) and build
again.
next dev says another dev server is already running.
Next.js 16 allows one dev server per project and prints the address of the one already running. Use
that one, or stop it first.
Fonts look different from the old site. Check which fonts the old site actually shows, not which ones its theme asks for. Some WordPress sites ask for web fonts that never load, and the browser quietly uses a system font. Decide with the client which to keep.
Deploying
Every page on Vercel is "404 Not Found", even though the build succeeded. The Vercel project's framework is set to "Other". This happens when the project is linked before its root folder is set. Fix it:
vercel project update <project> --scope <team> --framework nextjsAlso check Settings > Build and Deployment > Root Directory is apps/web. Don't add a vercel.json;
wp2next sets everything on the project instead.
pnpm --filter ... deploy fails with ERR_PNPM_INVALID_DEPLOY_TARGET.
deploy is also a built-in pnpm command. Add run: pnpm --filter @<code>/studio run deploy.
The Sanity editing app (Studio) loads but shows errors or "403 Forbidden".
The Studio's address isn't on the Sanity project's allowed list (CORS origins). Deploying the Studio
doesn't add it. Add https://<studio-host>.sanity.studio with "Allow credentials" ticked, either in
sanity.io/manage under API > CORS origins, or by asking the assistant.
You want to rename the Studio's address.
Pick the name before the first deploy (studioHost in wp2next.json). Renaming later means removing
the old deployment, deploying again and updating the allowed address. It's doable, but it's fiddly.
A value works locally but not on Vercel, or the other way round.
Values that the live site needs must also be in Vercel's environment variables, for Production and
Preview. Vercel's "Secret" values can't be read back, so after vercel env pull your local file may show
a placeholder. Put the real value back from your secret store.
Editing in Sanity doesn't update the live site.
Check the Sanity webhook that calls /api/revalidate. It must point at the right domain, and its
secret must match SANITY_REVALIDATE_SECRET in Vercel. After launch, update the webhook to the
production domain.
next lint is "not a command", or lint errors only show up later.
Next.js 16 removed next lint, and next build no longer checks lint rules. wp2next projects run
pnpm lint (ESLint directly) at every checkpoint; run it yourself before you push.
Forms
Setup for each service is in Forms, email and CRM. doctor (run inside the project)
says which form keys are stored, by name only.
A test submission said "sent", but no email arrived.
Forms have a hidden spam trap. If something filled it in, such as a browser autofill or a test script,
the form pretends to succeed and sends nothing. Test by hand in a normal browser window. Then check:
the form destinations (forms.destinations in wp2next.json, older projects forms.provider), that
the Vercel project has the matching keys (RESEND_API_KEY, FORMS_FROM, FORMS_TO for email), and
your spam folder. In Resend's dashboard, the Emails list shows whether Resend accepted the message.
Resend returns 403, or only your own address receives the test.
The "from" address must be on a domain verified in the Resend account. Sending from Resend's shared
test address only reaches the account owner's own inbox (checked 2026-12,
Resend: 403 errors (external site)). Verify the
sending subdomain (three DNS records) and set FORMS_FROM to an address on it.
The Resend domain stays "pending". The DNS records must match the dashboard exactly; values differ by region, so copy them rather than retyping. DNS changes can take a while to show up. If the domain already has an MX record with priority 10 on the same name, use 20 or 30 for Resend's.
Email arrives, but the lead is missing in HubSpot or monday.com. By design, an email that went through counts as success even if the CRM copy failed, so no lead is lost; the failure is logged in Vercel's function logs. Common causes:
- HubSpot: the service key lacks the
formsscope, the form GUID inwp2next.jsonis wrong, the HubSpot form has reCAPTCHA turned on (the API refuses those submissions), or the daily API limit was reached (that one isn't retried until the next day). - monday.com: the token's user can't see the board, the board or group ID is wrong, or a status or
dropdown label doesn't exist yet. Items never go to a board's top group on purpose: set the group
ID in
wp2next.json.
The form shows an error and asks the visitor to try again.
This happens when the only destination is a CRM and it failed, so there is no email to fall back
on. Add resend in front of it in forms.destinations (recommended), or fix the CRM key as above.
Tracking and search
/wp2next tracking says a tag has no ID yet.
You picked a tag (for example Google Ads) but haven't entered its ID. The other tags should still be
generated, with a warning for the missing one; if the run stops instead, remove that tag from
tracking.tags in wp2next.json for now. Add the ID when you have it and run /wp2next tracking again.
GTM refuses to import the container file.
GTM is strict about import files: names with a : are rejected, and so are IDs or fingerprints that look like real ones. Don't edit the
file by hand. Regenerate it with /wp2next tracking.
No data in GA4 (or Plausible, Fathom, HubSpot...).
Before launch this is expected: analytics is off on preview sites (NEXT_PUBLIC_DISABLE_ANALYTICS=1).
After launch, check that variable is removed in Vercel, the GTM container is published (if you use
GTM), and the tool's live or realtime view shows your visit. If the site has a consent banner, accept
it first: tags wait for consent. More checks in Tracking and search: analytics, consent and Search Console.
An ad pixel (Meta, LinkedIn, TikTok...) only records the first page of each visit.
The new site changes pages without a full reload, so tags set to fire "once per page load" only see the
landing page. GA4 handles this itself. For other vendors, check that the generated container fires
their page-view call on route changes too; docs/analytics/README.md lists which tags need it.
The compliance or Lighthouse scan of a Vercel preview only shows a Vercel login page. The project has Vercel Deployment Protection turned on, so preview addresses need a Vercel login. Scan the production domain instead, or create a "Protection Bypass for Automation" secret in the project's Settings → Deployment Protection, store it in your secret store, and ask the assistant to use it (checked 2026-12, source (external site)). Never paste the secret into chat.
Visitors see the cookie banner again after launch. Expected when the consent banner changed (for example from the Complianz WordPress plugin to a hosted CMP): the old consent cookie isn't recognized. Warn the client before launch. See Tracking and search: analytics, consent and Search Console.
Leads are counted twice. Usually two install routes for one tag (a Custom HTML tag plus a vendor's own GTM connection), or both a Google Ads conversion tag and an imported GA4 key event set as primary. Keep one of each.
Search Console says the site is no longer verified. The DNS verification (TXT) record was removed, often while moving DNS. Add it back and keep it permanently.
Google isn't indexing the new site.
Preview sites block search engines on purpose. At launch, NEXT_PUBLIC_SITE_INDEXABLE must be set in
Vercel's Production environment. Then check https://<domain>/robots.txt and submit the sitemap in
Search Console.
SEO and content
seo parity lists missing titles, descriptions or structured data.
Each item is something the WordPress site had (often set by Yoast or Rank Math) that the new page
doesn't have yet. It blocks launch until it is fixed or you approve it as a deliberate change. Run
/wp2next seo fix to apply the fixes you approve.
seo parity says the meta tags are missing, but you can see them in the browser.
Next.js 16 can send some metadata after the first part of the page. wp2next's scan reads the whole
page and also fetches it the way social-media crawlers do; if it still reports them missing, check
the page's source in the production build, not next dev.
Content changes from wp2next content don't show on the site.
They are drafts. wp2next never publishes content; open Sanity Studio, review each draft and publish
it there.
Internal pages (/brand/ and /components/)
The brand or components page shows 404
Both pages are switched off on the live site by default. They are on in local development and in
Vercel preview deployments. To turn one on for production (for example to share the brand guide with
the client), set WP2NEXT_BRAND_ROUTE=on or WP2NEXT_COMPONENTS_ROUTE=on in the Vercel project's
environment variables for Production and redeploy. Set it back to off (or remove it) to hide the
page again. Search engines are told not to index either page even when it is on.
If vercel env add says the variable already exists, use vercel env update WP2NEXT_BRAND_ROUTE production
(or the components name) to change its value, or change it in the dashboard, then redeploy.
An older project has its component library at /dev/.
wp2next 2.0 renamed it to /components/. /wp2next upgrade moves it; nothing links to it, so no
redirect is needed.
Compliance and handoff
The compliance report lists things marked "needs-human". Those depend on facts the scan can't know, such as your revenue, where visitors live or your industry. Answer them or ask a lawyer. The report is a checklist, not legal advice. See Compliance: privacy, consent, accessibility and form checks.
After the handoff, the client's site stopped deploying or a form stopped sending.
Usually an integration or token that didn't move: re-add the Sanity integration in Vercel, reconnect
the Git repository, and check that rotated secrets were pushed to Vercel (secrets.py push-vercel)
before redeploying. Work through Handing a site over to the client in order.
Matching the old design (pixel mode)
Parity passed in next dev but fails on the real build, or the other way round.
Next.js 16 builds CSS differently in production (shorter class names, numbers rounded to 5 decimals,
styles ordered by import order). wp2next always compares the production build (next build then
next start). Compare that, not the dev server.
optimize or a companion skill wants to switch to next/image or next/font.
Before you sign off parity, wp2next rejects changes that alter the look. After sign-off, each such
change is shown as a proposed departure for you to approve. See Companion skills.
Everything below a certain point is shifted. Fix differences from the top of the page down. A few pixels of difference near the top moves everything below it.
The layout changes at a slightly different width from the old site. Use the old theme's own breakpoint (where its mobile menu appears), not a standard one. Check widths on both sides of it, and the exact breakpoint width itself.
Form fields look slightly different, but the comparison tool says they match. Some WordPress themes leave fields with the browser's default look. Setting any border or background on them switches off that default look. Leave those styles unset. Only a screenshot shows this difference.
Something looks like a bug on the old site.
It may be. wp2next copies what the old site actually shows and notes the difference in CLAUDE.md, so
nobody "fixes" it later by accident. Ask the client whether to keep it or correct it, and record the
decision as a departure.
Still stuck?
- Run
/wp2next statusto see which phase the project is in and what that phase checks. - Ask the assistant to read the project's
CLAUDE.md, which records decisions and known issues. - Run
wp2next feedback bug. It drafts an issue with the error, the wp2next version and what you ran, removes private details (domain, names, IDs, paths), shows you the draft and posts it only if you say yes. Or open one yourself at github.com, MTRCio, wp2next, issues (external site); remove anything private first.