Closed turnstylerj closed 3 months ago
+1
Hi @turnstylerj
Thank you for raising this with us. We have pushed a fix which will be included in the next beta release of Commerce.
To get this early, change your craftcms/commerce
requirement in your project's composer.json
to:
"require": {
"craftcms/commerce": "dev-feature/pt-1591-5x-migration#4bba3a409232928ae2680bd5c23e841aa165a32a as 5.0.0-beta.2",
"...": "..."
}
Then run composer update
.
Thanks!
Commerce 5.0.0-beta.3 is out with that fix. Thanks again @turnstylerj!
Still getting this on a fresh, brand-new Commerce 5.0.7 install. Not a Craft 4 upgrade, have even uninstalled and re-installed.
I'm not actually getting it when installing Commerce, but when I install the soon-to-be-released Postie 5. I'm not even performing an update to Postie, it's a brand-new install.
Looking at the stack trace, I can't actually tell why it's throwing this error. The fix seems related to shipping rules, but Postie doesn't store anything in the database about this.
Ah, looks like this is the issue, and the order status needs to be assigned a store. Sorry for the noise!
What happened?
Description
When updating from Craft 4 to 5, the
m230215_114552_migrate_shipping_rule_conditions_to_condition_builder
migration fails with the following error:I've sent a pre-update db backup to support@craftcms.com.
Craft CMS version
5.0.2
Craft Commerce version
5.0.0-beta.2
PHP version
8.2
Operating system and version
Linux 6.5.0-15-generic
Database type and version
MySQL 8.0.33
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
"craftcms/ckeditor": "4.0.3", "craftcms/commerce": "5.0.0-beta.2", "craftcms/commerce-paypal-checkout": "3.0.0", "craftcms/commerce-stripe": "5.0.0", "craftpulse/craft-colour-swatches": "5.0.0", "doublesecretagency/craft-cpcss": "3.0.0", "mmikkel/retcon": "3.0.0", "nystudio107/craft-imageoptimize": "5.0.0-beta.2", "nystudio107/craft-retour": "5.0.0-beta.5", "nystudio107/craft-seomatic": "5.0.0-beta.8", "putyourlightson/craft-sprig": "3.0.0-beta.2", "servd/craft-asset-storage": "4.0.2", "spicyweb/craft-neo": "5.0.0-beta.4", "verbb/field-manager": "4.0.0-beta.1", "verbb/image-resizer": "4.0.0-beta.1", "vlucas/phpdotenv": "^5.4.0"