Upgrading & Uninstalling
Before removing Seo from a site, export your redirect rules and remove $seo->render($page) calls from your frontend templates so pages do not reference an uninstalled API variable.
Pre-Uninstall Checklist
Section titled “Pre-Uninstall Checklist”-
Export redirect rules and 404 logs from Setup -> SEO -> Redirects -> Export All (CSV or JSON) or via CLI:
Terminal window php vendor/bin/wire seo:redirect --json > seo-redirects-backup.json -
Remove template calls to
$seo->render(),$seo->renderBodyOpen(),$seo->renderBodyClose(), and any customSchemaProviderInterfaceregistrations insite/ready.phporsite/classes/. -
Uninstall
ProcessSeofirst, thenSeo:Terminal window php vendor/bin/wire module:uninstall ProcessSeo --jsonphp vendor/bin/wire module:uninstall Seo --jsonOr open Modules -> Site in ProcessWire Admin, uninstall SEO (
ProcessSeo), and then uninstall SEO (Seo).
What Seo::___uninstall() Removes vs. Preserves
Section titled “What Seo::___uninstall() Removes vs. Preserves”| Artifact | Action on Uninstall | Details |
|---|---|---|
Internal Blueprints & Records (seo-settings, seo-identity, seo-mappings, seo-redirects, seo-404s) |
Purged | Removed via $entries->purgeTypes(SeoBlueprints::internalTypes(), ['seo', 'seo-fieldset']) and unregistered from Entries. |
| Unused Embedded SEO Fields | Deleted if unattached | Any FieldtypeEntries field bound to 'seo' whose numFieldgroups() === 0 is deleted automatically. |
Attached Page SEO Data (@fieldset:seo) |
Preserved | If your templates still attach an embedded SEO field (such as metadata), Seo leaves the field and stored page metadata intact so you never lose editorial copy unexpectedly. |
Permission (seo-admin) |
Removed | Deleted from ProcessWire permissions. |
Admin Page (Setup -> SEO) |
Removed | Removed when ProcessSeo uninstalls. |
WireCache & Runtime Hooks |
Cleared | Health caches, sitemap caches, and pull-discovery caches are cleared. |
Upgrading Seo
Section titled “Upgrading Seo”Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.
-
Update the package and refresh modules so ProcessWire runs
___upgrade()automatically:Terminal window composer update trk/processwire-seophp vendor/bin/wire module:refreshphp vendor/bin/wire seo:audit --json
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (Seo), Add Module from URL, or Add Module from Upload (ZIP archive) to replace the module files. - Click Modules -> Refresh so ProcessWire detects the new version and executes
___upgrade()automatically.
- Replace
site/modules/Seo/with the new release directory. - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh) so___upgrade()executes cleanly.