craftcms / commerce

Fully integrated ecommerce for Craft CMS.
https://craftcms.com/commerce
Other
215 stars 169 forks source link

[5.x]: Migration fails after applying commerce 5 project config #3498

Closed mjniland1 closed 1 month ago

mjniland1 commented 1 month ago

What happened?

Description

I recently upgraded our starter commerce build from Commerce 4 to Commerce 5. After upgrading, when I attempt to apply the starter Commerce 5 project config to a new project, the application fails with the error: error: Calling unknown method: craft\models\Site::getStore().

My files have been shared with support@craftcms.com.

Steps to reproduce

  1. Upgrade from Commerce 4 to Commerce 5.
  2. Apply the upgraded Commerce 5 project config to a new project.

Craft CMS version

5.1.3

Craft Commerce version

5.0.5

PHP version

8.2.18

Operating system and version

Linux 6.6.26-linuxkit

Database type and version

MySQL 8.3.0

Image driver and version

No response

Installed plugins and versions

No response

linear[bot] commented 1 month ago

PT-1728 [5.x]: Migration fails after applying commerce 5 project config

mjniland1 commented 1 month ago

Resolved in commerce 5.0.7, thanks!