Closed WHITE-developer closed 2 months ago
Hi @WHITE-developer
So I am assuming that the project config in this scenario is like a "starter" config for new projects, is that correct?
If so has this config been updated for Commerce 5 compatibility before trying to use it with a fresh install of 5?
Thanks
Hi @nfourtythree It is a project config started on the Beta of commerce 5 (there is a config/project/commerce/stores/primary--{uid}.yaml
)
Hi @WHITE-developer
Thank you for your reply, could you please send across your composer
files along with your project config to support@craftcms.com
That way I can get things setup and replicate this issue to see what is going on.
Thanks!
Have tried to replicate this issue but have been unable to reproduce it when having an existing project config.
If you could provide more detailed steps or maybe even an example project where the error is reproducible, we can look into it further.
Thanks!
Hi @WHITE-developer
Thank you for sending the files and extra info it was really helpful to get this issue sorted.
We have pushed up a fix which will be included in the next release of Commerce.
To get this early, change your craftcms/commerce
requirement in your project's composer.json
to:
"require": {
"craftcms/commerce": "5.x-dev#d64c075dc359f6c56fb552aeeda6fa704a08be2d as 5.0.2",
"...": "..."
}
Then run composer update
.
Thanks!
Commerce 5.0.3
has been released with this fix included.
Thanks!
What happened?
Description
When running
./craft install
with an existing project config the Install migration fails on inserting the default Donation Purchasable because there is noStore
yet in the DBWhen commenting the default donation function out, the install failes further when applying the existing project config on a likewise issue.
https://github.com/craftcms/commerce/blob/5.x/src/services/OrderStatuses.php#L341
At this point the stores defined in the project.yaml are still not added to the database
Steps to reproduce
./craft install
on a clean DBExpected behavior
Actual behavior
Install migration fails