Skip to content
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

[5.x]: Invalid draft ID error when navigating back after creating a new entry #14587

Closed
russback opened this issue Mar 13, 2024 · 2 comments
Closed
Labels

Comments

@russback
Copy link

What happened?

Description

Error displayed when traversing back in browser history.

Steps to reproduce

  1. Create a new entry.
  2. Hit the back button in the browser when the entry is created.

Expected behavior

No error.

Actual behavior

[HTTP 400 – Bad Request](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#400) – [yii\web\BadRequestHttpException](https://www.yiiframework.com/doc-2.0/yii-web-badrequesthttpexception.html)
Invalid draft ID: 7

. in /var/www/html/vendor/craftcms/cms/src/controllers/ElementsController.phpat line 2062

Craft CMS version

5.0.0-beta.7

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

@brandonkelly
Copy link
Member

Thanks for reporting that! Fixed for the next Craft 4 and 5 releases.

@brandonkelly
Copy link
Member

Craft 4.8.3 and 5.0.0-beta.8 are out with that fix. Thanks again!

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

2 participants