8000 [5.x]: Error when saving or deleting routes in CP · Issue #16890 · craftcms/cms · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[5.x]: Error when saving or deleting routes in CP #16890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bseigel opened this issue Mar 14, 2025 · 3 comments
Open

[5.x]: Error when saving or deleting routes in CP #16890

bseigel opened this issue Mar 14, 2025 · 3 comments
Labels

Comments

@bseigel
Copy link
bseigel commented Mar 14, 2025

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

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

@bseigel bseigel added the bug label Mar 14, 2025
@i-just
Copy link
Contributor
i-just commented Mar 17, 2025

Hi, thanks for getting in touch! Can you please update to 5.6.5 or higher and see if that fixes the issue (it sounds like it might be related to #16610)?

You might also have to run those 2 commands (in your local environment) to make sure that the project config is in the right state: php craft pc/remove routes..sortOrder and then php craft pc/rebuild.

@bseigel
Copy link
Author
bseigel commented Mar 17, 2025

Hi, thanks for the fast response. I tried those fixes. Still takes 20 sec+ to delete a route. Should I make this a support ticket?

@brandonkelly
Copy link
Member

@bseigel Yes, please send a database backup and your Composer files into support@craftcms.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
0