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

Unable to open entry with drafts from a deleted user #4800

Closed
thechrisroberts opened this issue Aug 22, 2019 · 4 comments
Closed

Unable to open entry with drafts from a deleted user #4800

thechrisroberts opened this issue Aug 22, 2019 · 4 comments

Comments

@thechrisroberts
Copy link

Description

Getting the error Return value of craft\behaviors\DraftBehavior::getCreator() must be an instance of craft\elements\User, null returned when trying to open an entry if that entry has drafts created by a deleted user.

Steps to reproduce

  1. Create a draft
  2. Delete the user that created the draft
  3. Open the entry in the dashboard as a different user

Additional info

  • Craft version: 3.2.10
  • PHP version: 7.2.21
  • Database driver & version: MySQL 5.2.27
@brandonkelly
Copy link
Member

Thanks for reporting that! It’s been fixed for the next release.

To get the fix early, change your craftcms/cms requirement in composer.json to:

"require": {
  "craftcms/cms": "dev-develop#c6f75e8c3d8379347ca5073de01c3a48d290e993 as 3.2.10",
  "...": "..."
}

Then run composer update.

@knynkwl
Copy link

knynkwl commented May 5, 2020

Is there another way around this without updating?

Like adding the same user or something in the DB that I can change?

@knynkwl
Copy link

knynkwl commented May 5, 2020

I get this error when trying to update.

Declaration of craft\helpers\Stringy::charsArray() must be compatible with Stringy\Stringy::charsArray(): array

@brandonkelly
Copy link
Member

@knynkwl Ignore my previous comment; at this point you should just be updating to the latest release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants