-
Notifications
You must be signed in to change notification settings - Fork 171
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]: Cannot update Shipping Rule Conditions #3851
Comments
Thank you for your message. Could you please gives us some steps to recreate this issue. Here is a video of me creating a new shipping method and shipping rule and not coming up against any errors. CleanShot.2025-01-20.at.07.59.03.mp4With the steps you provide we will be able to look into this further. Thanks! |
We are going to close this issue for now as it seems to have gone stale. If you are able to provide repeatable steps to get this error, please detail them in a comment and we can reopen the issue and investigate it further. Thanks! |
Hi again. Sorry for the long response. I have since tested on a new setup without the issue. I managed to fix it though the database. The issue still persists, as i cant create ned shipping methods without having to update them though the database. |
@bjerringgaard Send your database backup, compose.json and composer.lock to [email protected] with a reference to this ticket and steps to reproduce on your installation and we can take a look. Thanks! |
Thanks for reporting this. I have a fix in PR that will be included in the next release once merged. To get the fix early, change your "require": {
"craftcms/commerce": "dev-feature/pt-2388-5x-cannot-update-shipping-rule-conditions as 5.3.3",
"...": "..."
} Then run We will update this ticket once the release is out. |
What happened?
On the newest version of Craft Commerce, nothing is updated when trying to create shipping rule category conditions
In the logs i get the following error:
Exception 'Error' with message 'Typed property craft\commerce\models\ShippingRuleCategory::$shippingRuleId must not be accessed before initialization'
Craft CMS version
5.5.9
Craft Commerce version
5.2.11
PHP version
8.2.26
Operating system and version
MacOs, project running in DDEV
Database type and version
mysql:8.0
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: