• Resolved jituoou

    (@jituoou)


    Hi,
    I am getting this issue when I am trying to go checkout

    Fatal error: Uncaught Exception: DateInterval::__construct(): Unknown or bad format (PM) in wp-content/plugins/woo-payment-gateway/includes/subscriptions/wcs-braintree-functions.php:302 Stack trace: #0 wp-content/plugins/woo-payment-gateway/includes/subscriptions/wcs-braintree-functions.php(302): DateInterval->__construct('PM') #1 wp-content/plugins/woo-payment-gateway/includes/subscriptions/class-wc-braintree-subscriptions-cart.php(193): wcs_braintree_calculate_next_payment_date(Object(DateTime), 'M', '') #2 wp-includes/class-wp-hook.php(286): WC_Braintree_Subscriptions_Cart->add_subscription_data(Object(WC_Cart)) #3 wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 wp-includes/plugin.php(465): WP_Hook->do_action(Array) #5 wp-content/plugins/woocommerce/in in wp-content/plugins/woo-payment-gateway/includes/subscriptions/wcs-braintree-functions.php on line 302

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Clayton R

    (@mrclayton)

    @jituoou,

    Thanks for reaching out. Navigate to the edit product page for the subscription product and verify that you have entered a a billing period for the environment you currently have active.

    Kind regards,
    Clayton

    Plugin Author Clayton R

    (@mrclayton)

    @jituoou,

    This error can occur if the billing period is not configured for the subscription. We added some code validation in the latest release (3.0.3) that prevents invalid intervals being passed to the DateTime constructor.

    Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error: Uncaught Exception: DateInterval’ is closed to new replies.