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]: Typed property craft\widgets\QuickPost::$entryType must not be accessed before initialization #14794

Closed
d13creative opened this issue Apr 11, 2024 · 3 comments
Labels

Comments

@d13creative
Copy link

What happened?

Description

The dashboard home page is not accessible due to this error after upgrading from Craft 4 Solo to Craft 5.

This project has been upgraded several times from version 2 -> 3 -> 4 over the years

Steps to reproduce

  1. Upgrade from Craft 4 to Craft 5
  2. Added bootstrap.php to root
  3. Updated craft file in root
  4. Updated index.php in webroot
  5. Initially had an error saying there was an issue with a cookie which was resolved by adding a security key using php craft setup/security-key

Expected behavior

The dashboard should be accessible

Actual behavior

It throws an internal server error on the dashboard page. The front end is fully functional as is the rest of the backend (e.g. entries, assets etc.).
Screenshot 2024-04-11 at 13 07 54

Craft CMS version

Craft Solo 5.0.4

PHP version

8.2

Operating system and version

Ubuntu 22.04

Database type and version

MariaDB 10.11.7

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

CKEditor 4.0.3

@brandonkelly
Copy link
Member

Thanks for reporting that! Just fixed for the next release.

You can get the fix now by changing your craftcms/cms requirement in composer.json to 5.x-dev as 5.0.4, and then run composer update.

This project has been upgraded several times from version 2 -> 3 -> 4 over the years

Might go even further back then that! The only way (as far as I can tell) this could have happened is if you had a Quick Post widget that hadn’t been saved since before v1.2!

@d13creative
Copy link
Author

d13creative commented Apr 12, 2024 via email

@brandonkelly
Copy link
Member

Craft 5.0.5 is out with that fix. Thanks again for reporting!

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