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

The cancelled date must occur after the last payment date. #667

Open
franmastromarino opened this issue Sep 2, 2024 · 0 comments
Open
Labels
type: bug The issue is a confirmed bug.

Comments

@franmastromarino
Copy link

Describe the bug
When attempting to cancel a subscription, the system throws an error with the message: Subscription #254461: The cancelled date must occur after the last payment date. This issue prevents the subscription from being cancelled through the WooCommerce Subscriptions plugin.

To Reproduce
Go to the WooCommerce Subscriptions page in the WordPress admin panel.
Attempt to cancel a subscription (e.g., Subscription #254461).
Observe the error message that appears: The cancelled date must occur after the last payment date.
Expected behavior
The subscription should be cancelled without any errors as long as the cancellation date is set correctly.

Actual behavior
The system throws an error stating that the cancellation date must occur after the last payment date, even when this condition is met. This prevents the cancellation from being processed.

Product impact
Does this issue affect WooCommerce Subscriptions? Yes
Additional context
WooCommerce Subscriptions plugin version: 6.6.0
WordPress version: 6.6
System status report: Available upon request

`(
[message:protected] => Subscription #254461: The cancelled date must occur after the last payment date.
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /home/1253731.cloudwaysapps.com/gqeuensvmq/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscription.php
[line:protected] => 2581
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/1253731.cloudwaysapps.com/gqeuensvmq/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscription.php
[line] => 1358
[function] => validate_date_updates
[class] => WC_Subscription
[type] => ->
)

        [1] => Array
            (
                [file] => /home/1253731.cloudwaysapps.com/gqeuensvmq/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscription.php
                [line] => 538
                [function] => update_dates
                [class] => WC_Subscription
                [type] => ->
            )`
@franmastromarino franmastromarino added the type: bug The issue is a confirmed bug. label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

1 participant