- This topic has 2 replies, 3 voices, and was last updated 2 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Stripe payment plugins for your WordPress site
· ·
Home › Forums › Stripe Payments Plugin › StripePaymentsSubscription Fatal Error – If minimum amount is left as default: 0
Hi, I found a bug in Stripe Payment Subscription.
If I create a new Subscription with variable amount and I use the default value for Minimum Amount, it throws a Type Error as shown in the stacktrace below.
The error is bypassed inserting a value in Minimum Amount.
Kind Regards,
Francesco
Stacktrace:
[02-Dec-2021 21:59:32 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /home2/cfisiose/public_html/wp-content/plugins/stripe-payments-subscriptions/inc/class-asp-sub-product-item.php:113
Stack trace:
#0 /home2/cfisiose/public_html/wp-content/plugins/stripe-payments-subscriptions/inc/class-asp-sub-product-item.php(100): ASP_Sub_Product_Item->in_cents(”)
#1 /home2/cfisiose/public_html/wp-content/plugins/stripe-payments/includes/class-asp-pp-display.php(319): ASP_Sub_Product_Item->get_min_amount(true)
#2 /home2/cfisiose/public_html/wp-content/plugins/stripe-payments/includes/class-asp-pp-display.php(43): ASP_PP_Display->showpp()
#3 /home2/cfisiose/public_html/wp-includes/class-wp-hook.php(303): ASP_PP_Display->handle_wp(Object(WP))
#4 /home2/cfisiose/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#5 /home2/cfisiose/public_html/wp-includes/plugin.php(518): WP_Hook->do_action(Array)
#6 /home2/cfisiose/public_html/wp-includes/class-wp.php(763): do_action_ref_array(‘wp’, Array)
#7 /home2/cfisiose/public_html/wp-includes/functions.php(1291): WP->main(”)
#8 /home2/cfisiose/public_html/wp-blog-header.php(16): wp()
#9 /home2/cfisiose/public_html/index.php(17): require(‘/home2/cfisiose…’)
#10 {main}
Thank you. We will check it out and provide an update.
Hi Francesco and thank you for your report.
I’m unable to reproduce it on my test server.
Which PHP version are you using?