-
Notifications
You must be signed in to change notification settings - Fork 642
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
[4.x]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1329758-1' for key 'revisions_sourceId_num_unq_idx' #14309
Comments
Hi, thanks for getting in touch! I’m unable to reproduce this on a clean |
Hello i-just I send you/craft the db and the files. Thanks. |
@alexanderbuergin - I replied to your email. For posterity, it looks to be related to this one: spicywebau/craft-neo#813 |
Per my comments from spicywebau/craft-neo#813 (comment), the issue is that the garbage collection event is triggered after the deletion of orphaned draft and revision data, meaning that orphaned Neo revision data is not cleared out. I believe the proper fix to this error is for Craft to delete orphaned draft and revision data after the event has been triggered. As a short term solution, running |
also getting this. |
me too |
Thanks @ttempleton! Just made that change for the next v4 and v5 releases. |
Craft 4.9.3 and 5.1.3 are out with that fix. Thanks again. |
Thx |
Getting this error on Craft 4.10.4. Perhaps I'm missing something? Any help is appreciated. |
What happened?
Description
Unfortunately, an error occurs when saving some entries. But with others we can save the entries without any problems.
Steps to reproduce
Craft CMS version
4.7.1
PHP version
8.1
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: