You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to apply the project config in a particular branch. The branch contains a new entry type and single. I had previously checked out this branch and applied it (successfully) to review it, then went back to another branch. So the section, entry type and entry are likely still in my database, but were soft-deleted. No when I switch to that branch, I get the following error when running project-config/apply:
error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '11792-2' for key 'z_elements_sites.z_idx_mhnejcpudnkcaamrlakeugzflampecplvutv'
The SQL being executed was: INSERT INTO `z_elements_sites` (`elementId`, `siteId`, `title`, `slug`, `uri`, `enabled`, `content`, `dateCreated`, `dateUpdated`, `uid`) VALUES (11792, 2, 'Volltextsuche', 'volltextsuche', 'volltextsuche', 1, '{\"9c59b580-c617-4ec2-845d-6f445a846e83\":[],\"1fbfd2cb-1209-442c-b8d2-b48ecf6a7feb\":\"2.6667\",\"facc10bc-cca3-4432-8758-4dbda6faa279\":[\"show_caption\",\"show_credits\"],\"9dfaed65-a190-40c6-9b4d-10d3e552472a\":[]}', '2024-11-22 12:02:06', '2024-11-22 12:02:06', '4934e0dd-b31c-42a3-afbd-cd848f42bb85')
Failed to run craft up: exit status 1
Any chance you can share your database (before applying the project config), Composer files, and the incoming project config data with us? ([email protected])
As per the discussion with Oli via e-mail, this was likely a one-off problem caused by an earlier issue with the project config. I'm closing this for now, I'll report back in case we encounter this again.
What happened?
Description
I'm trying to apply the project config in a particular branch. The branch contains a new entry type and single. I had previously checked out this branch and applied it (successfully) to review it, then went back to another branch. So the section, entry type and entry are likely still in my database, but were soft-deleted. No when I switch to that branch, I get the following error when running
project-config/apply
:Here's the full stack trace:
This is the same branch in which we encountered issue #16150, so it's possible my database got somehow messed up at that point.
Craft CMS version
5.5.2
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: