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]: Key "site" for array with keys "0, 1" does not exist on saving Commerce sites settings #3426
Comments
Hi @vnali I can't reproduce the issue. Can you make sure you don't have any pending project config changes and try saving it again? |
Hi @lukeholder |
Hello @lukeholder
|
Hi @vnali Thank you for bringing this to our attention. We have pushed a fix that will be included in the next release of Commerce 5 beta. To get this early, change your "require": {
"craftcms/commerce": "5.0.x-dev#93f7931e14c7052d662352f95606c1e18ea4fc61 as 5.0.0-beta.1",
"...": "..."
} Then run Thanks! |
What happened?
Description
When saving commerce sites settings on admin/commerce/settings/sites page, if there is two sites and we select same store for both sites, on saving the form, we get 'Key "site" for array with keys "0, 1" does not exist' on line of 20 of src/templates/settings/stores/_siteStore.twig.
Craft CMS version
5.0.0-beta.6
Craft Commerce version
5.0.0-beta.1
PHP version
8.2
Operating system and version
No response
Database type and version
MariaDB 10.6.7
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: