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]: Column not found when trying to edit store settings #3433

Closed
vnali opened this issue Mar 20, 2024 · 2 comments
Closed

[5.x]: Column not found when trying to edit store settings #3433

vnali opened this issue Mar 20, 2024 · 2 comments
Assignees
Labels
bug commerce4 Issues related to Commerce v4 Craft Commerce

Comments

@vnali
Copy link

vnali commented Mar 20, 2024

What happened?

Description

Trying to edit a store settings via commerce/settings/stores in latest dev, throws column not found -because the query doesn't properly add prefix table-

Unknown column 'elements.dateDeleted' in 'where clause'
The SQL being executed was: SELECT EXISTS(SELECT *
FROM `c5_commerce_orders`
LEFT JOIN `c5_elements` ON `elements`.`id` = `commerce_orders`.`id`
WHERE (`storeId`=2) AND (`elements`.`dateDeleted` IS NULL))

Craft CMS version

5.0.0-beta.10

Craft Commerce version

5.0.x-dev

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

@vnali vnali added commerce4 Issues related to Commerce v4 Craft Commerce bug labels Mar 20, 2024
Copy link

linear bot commented Mar 20, 2024

@nfourtythree nfourtythree self-assigned this Mar 20, 2024
@nfourtythree
Copy link
Contributor

HI @vnali

Thank you for bringing this to our attention. We have pushed a fix for this which will be included in the next release of Commerce 5 beta.

To get this early, change your craftcms/commerce requirement in your project's composer.json to:

"require": {
  "craftcms/commerce": "5.0.x-dev#3d0ab9eca6d9eee5ef2f0c75897e338bfd3e0bb6 as 5.0.0-beta.1",
  "...": "..."
}

Then run composer update.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commerce4 Issues related to Commerce v4 Craft Commerce
Projects
None yet
Development

No branches or pull requests

2 participants