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

[4.x]: Server error triggered when trying to view trashed orders #3308

Closed
jonleverrier opened this issue Oct 19, 2023 · 3 comments
Closed

[4.x]: Server error triggered when trying to view trashed orders #3308

jonleverrier opened this issue Oct 19, 2023 · 3 comments
Assignees
Labels
bug commerce4 Issues related to Commerce v4

Comments

@jonleverrier
Copy link

jonleverrier commented Oct 19, 2023

What happened?

Description

When I delete an order, then try and view it in "Trashed" orders, a "Server error occurred" toast notification appears and I cannot view my trashed orders. The checkboxes next to each order become non interactive after the toast notification appears.

This process triggers an error in my log file:

[yii\base\InvalidConfigException] yii\base\InvalidConfigException: Invalid owner ID: 4617 in /var/www/html/craft/vendor/craftcms/cms/src/elements/Address.php:303

Running ./craft gc/run from the terminal fixes the issue, but also removes my trashed orders.

Steps to reproduce

  1. Go to Orders in Commerce
  2. Delelate an order
  3. Next to the search bar on the left, Change the dropdown from "All" to "Trashed"
  4. A server error occurred toast notification is triggered
  5. Try selecting an order using a checkbox
  6. Notice it's not possible todo this
  7. Run ./craft gc/run from the terminal and the problem is resolved

Expected behavior

For a server error not to be triggered

Actual behavior

A server error is triggered

Craft CMS version

4.5.7

Craft Commerce version

4.3.0

PHP version

8.1

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@jonleverrier jonleverrier added commerce4 Issues related to Commerce v4 bug labels Oct 19, 2023
@nfourtythree
Copy link
Contributor

Hi @jonleverrier

Thank you for reporting, we have been able to replicate this issue and will look to get this fixed.

We will post any updates to this issue.

Thanks!

@nfourtythree
Copy link
Contributor

Hi @jonleverrier

Again, thank you for reporting.

We have pushed a fix to Commerce that solves this issue, the fix will be included in the next release.

It is also worth noting that there is a related fix in Craft for this as well: craftcms/cms@6502b05

Thanks!

@lukeholder
Copy link
Member

This is now fixed in 4.3.2

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
Projects
None yet
Development

No branches or pull requests

3 participants