[5.x]: Error when saving or deleting routes in CP
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
What happened?
Description
Saving or deleting routes in CP is very slow, and if I mistakenly try to save or delete a route while I'm waiting for the confirmation modal (tiny one in bottom left corner) to appear, there is a conflict and I get
PHP Warning – yii\base\ErrorException
Undefined array key "siteUid"
Steps to reproduce
- Delete a route. Wait 5-10 sec, then delete another before modal appears.
Expected behavior
Successful route deletion.
Actual behavior
Error as noted above, and error now appears on
admin/settings/routes
and routes no longer can be set.
Craft CMS version
5.6.4
PHP version
8.3.15
Operating system and version
Alma Linux 9.5
Database type and version
MySQL 8.0.36
Image driver and version
No response
Installed plugins and versions
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the CP at admin/settings/routes on Craft CMS 5.6.4 with MySQL 8.0.36: delete one route, wait 5–10 seconds, then delete another before the confirmation modal appears. Trace the Undefined array key "siteUid" warning and verify that repeated route deletions complete successfully without leaving the routes settings page unusable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100