-
Notifications
You must be signed in to change notification settings - Fork 169
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]: Attempt to read property "storeId" on null #3482
Comments
Thanks for reporting this. For the initial error, we have this issue you can follow here: #3479 For the subsequent query error, we have fixed this for the next release. To get the fix early, change your "require": {
"craftcms/commerce": "5.x-dev#3780e2a81515926b8e6b1417ad79ae331668bee1 as 5.0.3",
"...": "..."
} Then run We will update this github issue once the release is out. |
Appreciate the quick response. The query error has been fixed on my end but the issue referenced in #3479 still persists after upgrading to Log after running
The project config is a fresh rebuild from the database. |
Upgrading to |
@mjniland1 Can you submit a new issue and include steps to reproduce, and email your pre-upgrade DB, original commerce 4 project config folder, composer.json, composer.lock to support@craftcms.com and reference the github issue you created. Thanks. |
What happened?
Description
Applying the project configuration from Commerce 5.0.3 to a new project resulted in a failure with the error message: "error: Attempt to read property 'storeId' on null". While trying to troubleshoot this issue, I attempted to accessed the store settings on my original project at (admin/commerce/settings/stores/1) and encountered another error
Database Exception – yii\db\Exception
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'commerce_orders.id' in 'on clause'
The SQL being executed was: SELECT EXISTS(SELECT *
FROM
c_commerce_orders
LEFT JOIN
c_elements
el
ONel
.id
=commerce_orders
.id
WHERE (
storeId
=1) AND (el
.dateDeleted
IS NULL))Error Info: Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column 'commerce_orders.id' in 'on clause'
Steps to reproduce
Craft CMS version
Craft Pro 5.1.1
Craft Commerce version
5.0.3
PHP version
8.2.18
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: