Skip to content

Bug: RouteNotFoundException for taxonomies.terms.revisions.index on TermsController->edit in v6.7.2 #14357

@alebona85ba

Description

@alebona85ba

Bug description

Bug description

When attempting to edit a taxonomy term in the Control Panel using Statamic 6.7.2, a RouteNotFoundException is thrown: Route [statamic.cp.taxonomies.terms.revisions.index] not defined.

This issue does not occur in v6.7.1. Downgrading to 6.7.1 resolves the problem immediately.

How to reproduce

  1. Upgrade to Statamic 6.7.2.
  2. Navigate to the Control Panel.
  3. Attempt to edit any existing taxonomy term.
  4. The CP crashes with a 500 error / RouteNotFoundException.

Logs / Stack Trace

The stack trace shows that TermsController->edit unconditionally calls LocalizedTerm->revisionsUrl(), which attempts to generate a route that is apparently missing or conditionally registered in 6.7.2.

[2026-03-25 16:10:26] local.ERROR: Route [statamic.cp.taxonomies.terms.revisions.index] not defined. ... at /vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:528)
#0 /vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(870): Illuminate\Routing\UrlGenerator->route('statamic.cp.tax...', Array, true)
#1 /vendor/statamic/cms/src/Statamic.php(197): route('statamic.cp.tax...', Array)
#2 /vendor/statamic/cms/src/helpers.php(8): Statamic\Statamic::cpRoute('taxonomies.term...', Array)
#3 /vendor/statamic/cms/src/Taxonomies/LocalizedTerm.php(345): cp_route('taxonomies.term...', Array)
#4 /vendor/statamic/cms/src/Taxonomies/LocalizedTerm.php(325): Statamic\Taxonomies\LocalizedTerm->cpUrl('taxonomies.term...')
#5 /vendor/statamic/cms/src/Http/Controllers/CP/Taxonomies/TermsController.php(107): Statamic\Taxonomies\LocalizedTerm->revisionsUrl()
#6 /vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Statamic\Http\Controllers\CP\Taxonomies\TermsController->edit(Object(Illuminate\Http\Request), Object(Statamic\Eloquent\Taxonomies\Taxonomy), Object(Statamic\Taxonomies\LocalizedTerm), Object(Statamic\Sites\Site))

Environment

  • Statamic version: 6.7.2
  • Storage driver: Eloquent (using statamic/eloquent-driver)
  • Revisions enabled: false in .env (but the bug likely persists even if true due to missing route).

How to reproduce

  1. Update an existing Statamic project to version 6.7.2 (the latest security update).
  2. Go to the Control Panel and navigate to Taxonomies.
  3. Click on any existing Taxonomy term to edit it.
  4. The page crashes immediately before loading, throwing a RouteNotFoundException for statamic.cp.taxonomies.terms.revisions.index.

Additional Context:

  • The issue appeared right after the update to 6.7.2 (which included a security patch). Downgrading to 6.7.1 fixes it completely.
  • Crucial detail: I have tested this with BOTH the default flat-file/YAML engine (Stache) AND the Eloquent driver. The RouteNotFoundException happens in both scenarios.
  • Revisions are currently disabled (STATAMIC_REVISIONS_ENABLED=false in .env).

Logs

`[2026-03-25 16:10:26] local.ERROR: Route [statamic.cp.taxonomies.terms.revisions.index] not defined. ... at /vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:528)`
`#0 /vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(870): Illuminate\Routing\UrlGenerator->route('statamic.cp.tax...', Array, true)`
`#1 /vendor/statamic/cms/src/Statamic.php(197): route('statamic.cp.tax...', Array)`
`#2 /vendor/statamic/cms/src/helpers.php(8): Statamic\Statamic::cpRoute('taxonomies.term...', Array)`
`#3 /vendor/statamic/cms/src/Taxonomies/LocalizedTerm.php(345): cp_route('taxonomies.term...', Array)`
`#4 /vendor/statamic/cms/src/Taxonomies/LocalizedTerm.php(325): Statamic\Taxonomies\LocalizedTerm->cpUrl('taxonomies.term...')`
`#5 /vendor/statamic/cms/src/Http/Controllers/CP/Taxonomies/TermsController.php(107): Statamic\Taxonomies\LocalizedTerm->revisionsUrl()`
`#6 /vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Statamic\Http\Controllers\CP\Taxonomies\TermsController->edit(Object(Illuminate\Http\Request), Object(Statamic\Eloquent\Taxonomies\Taxonomy), Object(Statamic\Taxonomies\LocalizedTerm), Object(Statamic\Sites\Site))`

Environment

Environment
Application Name: Zardo Moto
Laravel Version: 12.55.1
PHP Version: 8.4.19
Composer Version: 2.9.5
Environment: local
Debug Mode: ENABLED
URL: zetamotoricambi.local
Maintenance Mode: OFF
Timezone: UTC
Locale: it

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / daily
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: LINKED

Statamic
Addons: 3
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.7.2 Solo

Statamic Addons
ali-awwad/fine-seo: 0.2.1
mitydigital/sitemapamic: 3.4.1
statamic/eloquent-driver: 5.4.2

Statamic Eloquent Driver
Addon Settings: eloquent
Asset Containers: eloquent
Assets: eloquent
Blueprints: file
Collection Trees: eloquent
Collections: eloquent
Entries: eloquent
Fieldsets: file
Form Submissions: eloquent
Forms: eloquent
Global Sets: eloquent
Global Variables: eloquent
Navigation Trees: eloquent
Navigations: eloquent
Revisions: file
Sites: eloquent
Taxonomies: eloquent
Terms: eloquent
Tokens: eloquent

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions