Skip to content

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.

  1. 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
  2. Remove template calls to $seo->render(), $seo->renderBodyOpen(), $seo->renderBodyClose(), and any custom SchemaProviderInterface registrations in site/ready.php or site/classes/.

  3. Uninstall ProcessSeo first, then Seo:

    Terminal window
    php vendor/bin/wire module:uninstall ProcessSeo --json
    php vendor/bin/wire module:uninstall Seo --json

    Or 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.

Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.

  1. Update the package and refresh modules so ProcessWire runs ___upgrade() automatically:

    Terminal window
    composer update trk/processwire-seo
    php vendor/bin/wire module:refresh
    php vendor/bin/wire seo:audit --json

Next steps