• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Topics / StripePaymentsSubscription Fatal Error – If minimum amount is left as default: 0

[Resolved] StripePaymentsSubscription Fatal Error – If minimum amount is left as default: 0

· ·

Home › Forums › Stripe Payments Plugin › StripePaymentsSubscription Fatal Error – If minimum amount is left as default: 0

  • This topic has 2 replies, 3 voices, and was last updated 3 years, 6 months ago by alexanderfoxc.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 2, 2021 at 10:16 pm #4431
    Matteo_FisioSalute
    Participant

    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}

    December 3, 2021 at 3:04 am #4432
    Admin
    Keymaster

    Thank you. We will check it out and provide an update.

    December 3, 2021 at 5:00 pm #4433
    alexanderfoxc
    Participant

    Hi Francesco and thank you for your report.

    I’m unable to reproduce it on my test server.

    Which PHP version are you using?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay, Google Pay, Afterpay

Addon Bundle

Stripe Payments Addon Bundle

A Simple & Lightweight Plugin

Our Philosophy with the Plugin

Support Links

  • Support Forum
  • Support Contact

Search

Copyright © 2025 | Stripe Plugins | A member of the Tips and Tricks HQ family.