Closed
Description
What happened?
Description
Unfortunately, an error occurs when saving some entries. But with others we can save the entries without any problems.
Integrity constraint violation – [yii\db\IntegrityException](https://www.yiiframework.com/doc-2.0/yii-db-integrityexception.html)
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1329758-1' for key 'revisions_sourceId_num_unq_idx'
The SQL being executed was: INSERT INTO `revisions` (`canonicalId`, `creatorId`, `num`, `notes`) VALUES (1329758, 1325965, 1, NULL)
Error Info: Array
(
[0] => 23000
[1] => 1062
[2] => Duplicate entry '1329758-1' for key 'revisions_sourceId_num_unq_idx'
Steps to reproduce
- One of my ideas was to remove all revisions from the DB, but unfortunately this didn't make things any better, but rather worse.
- Save an entry as draft and then save it into the main entry
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment