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]: Error thrown during upgrade - Setting unknown property: craft\records\EntryType::slugTranslationMethod #15133

Closed
johnrich85 opened this issue Jun 4, 2024 · 3 comments
Labels

Comments

@johnrich85
Copy link

What happened?

Description

Deploying the craft 5 upgrade to a fresh db throws the following error: Exception: Setting unknown property: craft\records\EntryType::slugTranslationMethod (/var/www/html/vendor/yiisoft/yii2/base/Component.php:209)

I've tried deleting my vendor dir and reinstalling & can see a reference to the problematic property in the EntryType class:
image

Steps to reproduce

  1. Upgrade to craft 5 locally
  2. Rebuild the config
  3. Deploy the changes (apply to a yet upgraded db)

Expected behavior

Craft successfully upgrades to v5

Actual behavior

The above exception is thrown

Craft CMS version

4/5

PHP version

8.2.19

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@johnrich85 johnrich85 added the bug label Jun 4, 2024
@johnrich85
Copy link
Author

If anyone else comes across this issue: i was initially on an outdated version of 4.x. I'd upgraded to the latest version and then upgraded to v5 in a single branch. I fixed this by separating these out and releasing incrementally.

@brandonkelly
Copy link
Member

Thanks for reporting! The minimum Craft 4 version the upgrade should have allowed is 4.5.0, but it was incorrectly set to 4.4.0 instead. Just fixed that for the next release, so going forward you would have at least gotten a more clear error message.

@brandonkelly
Copy link
Member

Craft 5.1.9 is out now with that fix.

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