feat: pollora:doctor and Site Health checks for silent failures - #365
Merged
Merged
Conversation
Eleven checks, each from a failure met in practice and each printing the command that fixes it: the WordPress core patch and who owns __(), the patches lock, .env names, the discovery cache, the theme and its build, a symlinked theme directory, placeholders left in a copied template, pattern files WordPress never registers or has not cached, Route::wp() routes over a block theme's templates. The same list feeds WordPress's Site Health, which also checks that the theme's blocks are registered in a web request, the boot a console check cannot see.
This was referenced Sep 30, 2026
The build, symlink, placeholder and block checks now cover every Pollora plugin and enabled module, not only the theme. New: a hot file whose dev server is stopped or not exposed (DDEV's router answers 502 or 404, so a TCP probe is not enough), a build written to another folder than Pollora reads, blocks in the legacy resources/blocks, configuration or routes cached outside production.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pollora:statussays what is there;pollora:doctorsays whether it works, and what to run when it does not. Scoped in.claude/plans/pollora-doctor.md: a check only enters if it names a failure met in practice (or measured), is read-only, and prints its fix.Checks
__()(patch skipped by composer-patches 2, exit 0);__()not Pollora'scomposer patches-relock && composer patches-repatchpatches.lock.jsonmissing or older than the framework's patchesDB_NAME/DB_USER/WP_HOMEnot read; MySQL settings on a sqlite connection.env/routes edits ignoredphp artisan optimize:clearphp artisan discovery:clear%theme_*%,%plugin_*%,.stubleft from a copied templatepollora:make:theme/pollora:make:plugin.htmlor header-less files inpatterns/; files missing from WordPress's cache.php+ docblock;delete_pattern_cache()Route::wp()answering in place of block templates (warning)resources/blocks, which stops loading in v15 (warning)resources/views/blocksPlugins are those registered with
pollora_register()(PluginRegistrar), modules the enabled nwidart modules. Build paths come from each asset container, or fromModuleAssetManager's own rules (newexpectedAssetConfiguration()), so the check reads what Pollora reads.Measured on the way
index,single,pagetried): not a check.<hot>/@vite/client, as the page does.?ver=— fixed separately in fix: enqueue the Vite client with no version #366.Where
pollora:doctor(--json, exit 1 on an error) and Site Health (Tools › Site Health, "Pollora" badge), one registry of checks.Tests
tests/Feature/Doctor, each failure replayed for a theme, a plugin and a module where it applies; E2Edoctor.spec.ts(Site Health as an administrator).pollora-demo-pluginnever built (and itsvite.config.jswritesbuild/plugins/), and both demos keep blocks inresources/blocks.