Skip to content

[5.x]: Can't save entry because provisional draft already exists #16778

@rgauthier4c4

Description

@rgauthier4c4

What happened?

Description

Sometimes when a user is trying to save an entry in the CMS, an error occured with the following message: "A provisional draft already exists for element/user 1513/1126"

It happens on two different projects that our clients are filling their website content in staging. Both project were up to date in the cms version.

The first time it happened, the user couldn't save his draft or publish the entry, but another user could save the same entry.

As for my temporary fix, I'm running the garbage collector by command line and the faulty draft is delete (php craft gc/run)

I haven't been able yet to reproduce the steps leading to the bug on my local environnement but I will let you know if I can find more details about this.

Image

Craft CMS version

5.6.6

PHP version

8.2

Operating system and version

No response

Database type and version

mysql 8.0

Image driver and version

No response

Installed plugins and versions

Amazon S3 2.2.1
Blitz 5.9.10
CKEditor 4.5.0
Code Field 5.0.0
CP Field Inspect 2.0.4
Dummy Data 5.0.5
Embedded Assets 5.4.3
Guide 5.2.0
Hyper 2.2.3
Image Resizer 4.0.2
Matrix Extended v4.2.0
Retour 5.0.7
SendGrid 3.0.0
SEOmatic 5.1.11
Splashing Images 5.0.3
Sprig 3.5.2
Twigpack 5.0.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions