Troubleshooting
Most LocalWP Devkit issues fall into a few groups: the wrong folder is open, the project is not bound, Local has not exposed WP-CLI automation yet, required runtime plugins are not installed in the Local site, or a project created with an older devkit has not been migrated yet. Start with bun run localwp:doctor -- --project <slug>: it names most of these problems.
The Agent Is Editing the Wrong Folder
Use the devkit root as the agent workspace:
oh-my-idetch-localwp-devkit/
Project source lives here:
projects/<slug>
The synced Local plugin copy is not source:
~/Local Sites/<site>/app/public/wp-content/plugins/oh-my-idetch
If changes were made directly in the synced plugin copy, move the intended source changes back into projects/<slug>, then run:
bun run project:check -- --project <slug>
bun run localwp:sync -- --project <slug>
Local Sites Are Not Found
If localwp:list or localwp:bind fails with Local sites.json not found, the devkit cannot see Local's site list. Devkit 1.1.0 looks in Local's own data folder on each system without extra settings:
| System | Folder |
|---|---|
| macOS | ~/Library/Application Support/Local |
| Linux | ~/.config/Local (or $XDG_CONFIG_HOME/Local) |
| Windows | %APPDATA%\Local |
Devkit 1.0.x looked only in the macOS folder. Update the devkit, open Local once, and make sure the site exists in Local before you bind.
Project Is Not Bound
If localwp:sync, localwp:wp, or localwp:doctor says the project is unbound, bind it to a Local site:
bun run localwp:list
bun run localwp:bind -- --project <slug> --site "<Local site name>"
Use the exact Local site name shown by localwp:list or the Local app.
WP-CLI Is Unavailable
localwp:wp depends on Local's generated Site Shell entry. If the command prints a fallback, open Local, select the site, choose Open Site Shell, then rerun the devkit command.
You can still continue with WordPress admin checks when WP-CLI is unavailable. Report the WP-CLI blocker clearly so the next session knows what happened.
Doctor checks WP-CLI without loading the project plugin first. If WP-CLI works but the plugin fails to load, doctor reports Oh My IDE Etch plugin load: fatal with the PHP error instead of calling WP-CLI unavailable; see WordPress Fails to Load With the Plugin Active.
Runtime Plugin Is Missing or Inactive
If localwp:doctor warns that the plugin root is missing, sync first:
bun run project:check -- --project <slug>
bun run localwp:sync -- --project <slug>
Then activate the plugin:
bun run localwp:wp -- --project <slug> -- plugin activate oh-my-idetch
If WP-CLI is unavailable, activate oh-my-idetch in WordPress admin.
WordPress Fails to Load With the Plugin Active
Doctor prints Oh My IDE Etch plugin load: fatal and the PHP error. When the synced plugin has no vendor/autoload.php, rerun localwp:sync to publish a complete copy. Otherwise rerun sync and check wp-content/debug.log if the error stays.
Sync never installs a plugin copy that cannot load its Composer dependencies: it stops, publishes nothing, and leaves the installed plugin untouched. Check the Composer output it printed, fix the cause, and sync again.
Sync Says Etch Is Missing
Sync and doctor say plainly when the Etch plugin is missing or inactive, instead of showing WordPress' generic critical error page. Install and activate Etch in the Local site, then rerun the sync. The site cannot be applied without Etch.
Duplicate Plugin Folders
Sync and doctor warn about folders such as oh-my-idetch 2 or oh-my-idetch copy next to the plugin. localwp:sync never creates them; they usually come from Finder "Keep Both", Windows Explorer, or a cloud-sync client such as iCloud, Dropbox, or OneDrive.
- Doctor fails while such a copy is active, because two active copies of the same plugin break the site.
- Sync and verify stop when WordPress loaded such a copy instead of
oh-my-idetch, because that copy runs its own, older code.
Deactivate any copy that is active in wp-admin > Plugins, delete every folder except oh-my-idetch, and move the Local site out of synced folders. Doctor also warns when the Local site folder sits inside iCloud Drive, Dropbox, OneDrive, Google Drive, or a synced Desktop or Documents folder.
Hidden staging folders left by an interrupted sync are harmless; WordPress ignores them and the next successful sync removes them.
Premium Dependencies Are Missing
The devkit does not bundle Etch, Etch Theme, OhMyEtch, AutomaticCSS, ACF Pro, WooCommerce, or other premium/user-owned plugins. Install and license those in the Local site.
Check the current runtime state:
bun run localwp:doctor -- --project <slug>
bun run localwp:capabilities -- --project <slug>
Missing optional plugins can be warnings when the project does not need them. They are blockers when the build depends on that runtime capability.
Runtime Verification Fails
If localwp:verify fails, the runtime state in the bound Local site does not match the compiled project source. The check fails closed, so do not treat it as a warning. Rerun the full loop:
bun run project:check -- --project <slug>
bun run localwp:sync -- --project <slug>
bun run localwp:verify -- --project <slug>
If verification still fails, run bun run localwp:doctor -- --project <slug> and fix the reported LocalWP blocker before continuing.
Two outcomes are not drift:
OMIDE_RUNTIME_PERSISTENCE_LEDGER_EMPTYmeans the site content was registered through the older registration path of a project created before Devkit 1.0. Migrate the project with themigrate-legacy-projectskill instead of chasing per-item failures.- Site notices, such as content removed from code, never fail verification. Handed-over content verifies with status
handed_over.
localwp:verify --path Reports the Site as Unavailable
Devkit 1.1.0 checks the address WordPress itself uses (its home URL). With Local's "localhost" router mode, the site runs on http://localhost:<port>; older devkits tried the .local domain instead and reported the site as unavailable. If the check still fails, make sure the site is running in Local and that bun run localwp:wp -- --project <slug> -- option get home prints the address you expect.
Sync Stops With a Content Conflict
ETCH_SITE_PERSISTENCE_CONFLICT means a project page, post, or template matches content on the site that the project did not create, for example a page with the same slug made in wp-admin. Sync never overwrites it. Doctor lists these collisions before the first sync. Either rename the project slug, remove the entry from the project, or add adopt_existing() to take the content over. See Content Ownership.
ETCH_SITE_PERSISTENCE_HANDED_OVER_RECLAIM_REQUIRED means hand_over_after_create() was removed from content editors own. Add reclaim_from_editors() to let the code version win, restore the page, or keep the hand-over. See Give Content Back to Code.
Content Removed From Code Is Still Online
That is by design. Sync and verify list it as ETCH_SITE_PERSISTENCE_ORPHAN and leave it published until you decide. Put it back in code, retire it on LocalWP with bun run localwp:sync -- --project <slug> --retire-orphans, or delete it in wp-admin. See Content Removed From Code.
An Element Lost Its CSS After Pasting or Moving It in Etch
Before etch-builders 2.1.1, pasting, moving, or editing the code of an element in the Etch builder could link it to a new, empty copy of a project class style, so the element lost its CSS. Devkit 1.1.0 projects on etch-builders 2.1.1 store project styles where the Etch builder looks for them, so it links the original style.
Sites that already have such copies need no cleanup:
- After the first sync on etch-builders 2.1.1, copies the Etch editor made keep following the project CSS, and style IDs stay the same, so linked elements keep their styling.
- That first sync reports each project style as updated once. Later syncs report them as unchanged.
- A copy that someone filled with different CSS is never overwritten. Sync and verify report it as
ETCH_SITE_PERSISTENCE_STYLE_EDITOR_DUPLICATE_DIVERGENT. Move any CSS worth keeping into the project CSS file, delete that style in the Etch editor, and sync again.
Projects created with Devkit 1.0.x get the fix after the migration.
Every Sync Recreates Styles or Reports Pages as Removed
The project's site registrar predates etch-builders 2.1.0. Doctor warns project Site/SiteRegistrar.php predates etch-builders 2.1.0. Run the migrate-legacy-project skill, which ports the current registrar.
Doctor Warns After a Devkit Update
Warnings such as project Plugin.php predates ..., project src/ is missing template files, or project composer.lock pins honestlydesign/etch-builders ... mean the project still carries files or a Builder version from an older devkit. devkit:update never changes projects. Follow Update Existing Projects.
Copying or Re-picking a Loop Breaks in Etch
project:check and doctor warn with OMIDE_LOOP_PRESET_ID_KEY_MISMATCH when a loop preset is stored under an ID that differs from its key. For a new preset, remove the custom ID so it defaults to the key. On an existing site, do not just rename it: content in the Etch builder may still reference the old ID. Follow the loop preset steps in the migrate-legacy-project skill.
PHPStan Dependencies Are Missing
If project:check reports a missing PHPStan binary, run the exact Composer command from the error. It will look like:
composer install --working-dir=projects/<slug>
Then rerun:
bun run project:check -- --project <slug>
PHPStan 2.x Reports Errors in a Template File
Older copies of the project's runtime verification file report nine level 8 errors under PHPStan 2.x. Devkit 1.1.0's copy passes; doctor warns project Site/SiteRuntimeVerification.php predates the Devkit 1.1 copy until you port it with the migrate-legacy-project skill. The devkit gates only the PHPStan 1.12 line pinned in the project template, so a project on PHPStan 2.x can still see findings in other template files.
A Live Site Did Not Pick Up a New ZIP
On the server, run:
wp oh-my-idetch registration status
current: true: the uploaded build is registered.current: falseandbacking_off: false: Every request starts the registration if the build is not registered yet, including this WP-CLI call, so another request is most likely registering the build right now. Runstatusagain in a minute. If it never changes, check that the server runs the ZIP frombuild:zip: itsflags.jsonsetsMODE: PROD. A plugin folder copied from LocalWP registers on every request instead and is not tracked here.backing_off: true: the registration failed and waits 15 minutes.last_failurelists each failing item and its code, and the PHP error log has one[OhMyIDEtch] Production site registration failed ...line per attempt. Fix the cause, then upload a rebuilt ZIP or runwp oh-my-idetch registration retry. When another update held the Builder's site lock, the wait is only about a minute and nothing is logged.OMIDE_SITE_REGISTRATION_EXCEPTIONinlast_failure: the registration crashed, often because only some project files were updated. Upload a ZIP built from a fully migrated project.
If WP-CLI reports that oh-my-idetch registration is not a registered command, the deployed project was created with Devkit 1.0.x and not migrated. It still needs the old manual step after each upload. Migrate the project, then deploy a new ZIP. See Update Existing Projects and Going Live.
Browser Verification Does Not Work
Browser automation is optional. If it was not installed or failed to install, the project can still be created, checked, synced, and verified through LocalWP and WordPress admin.
Use the site address WordPress reports (option get home), which is http://localhost:<port> in Local's "localhost" router mode and the bound .local domain otherwise; do not assume a fixed localhost port.
The Local Site Shows Old Output
Confirm that the source changed under projects/<slug>, not only in the synced plugin copy. Then run the required loop:
bun run project:check -- --project <slug>
bun run localwp:sync -- --project <slug>
If the page still shows old output, verify the oh-my-idetch plugin is active, that no duplicate plugin folder such as oh-my-idetch 2 is active, and that the browser is loading the site address WordPress reports. Content handed over to editors does not change on sync by design.