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.4.14]: Purging pending users fails when pending users have Commerce orders #3239

Closed
peteeveleigh opened this issue Aug 1, 2023 · 1 comment
Labels
bug commerce4 Issues related to Commerce v4

Comments

@peteeveleigh
Copy link
Contributor

What happened?

Description

The Garbage Collection routine throes an Exception during the purge pending users phase if a pending user has an order.

Steps to reproduce

  1. Create and complete an order for a user who hasn't activated their account
  2. Ensure the purge pending users schedule will catch this account
  3. Attempt to manually run garbage collection

Expected behavior

The garbage collection (pending user purge) should log the problem, skip that user, and continue to purge pending users

Actual behavior

The garbage collection (pending user purge) stops with an Exception. Thus no other pending users are purged.

Craft CMS version

4.4.14

Craft Commerce version

4.2.11

PHP version

8.1.18

Operating system and version

Linux 5.15.0-75-generic

Database type and version

MariaDB 10.6.12

Image driver and version

N/A

Installed plugins and versions

@lukeholder
Copy link
Member

Will tack this here: craftcms/cms#13490

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

2 participants