Title: Error Manually adding Subscriptions
Last modified: March 20, 2019

---

# Error Manually adding Subscriptions

 *  Resolved [rizbanr](https://wordpress.org/support/users/rizbanr/)
 * (@rizbanr)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-manually-adding-subscriptions/)
 * Attempting to add a subscription under WooCommerce -> Subscriptions -> Add Subscription
   results in the following error:
 * Fatal error: Uncaught exception ‘Exception’ with message ‘DateInterval::__construct():
   Unknown or bad format (PmonthM)’ in /home/***path***/wp-content/plugins/woo-payment-
   gateway/includes/braintree-bfwc-functions.php:479 Stack trace: #0 /home/***path***/
   wp-content/plugins/woo-payment-gateway/includes/braintree-bfwc-functions.php(
   479): DateInterval->__construct(‘PmonthM’) #1 /home/***path***/wp-content/plugins/
   woo-payment-gateway/includes/class-wc-braintree-subscription.php(355): bfwcs_calculate_next_payment_date(
   Object(DateTime), ‘month’, ‘month’) #2 /home/***path***/wp-content/plugins/woo-
   payment-gateway/includes/admin/class-wc-admin-subscription-metabox.php(113): 
   Braintree_Gateway_WC_Subscription->sync_dates() #3 [internal function]: Braintree_Gateway_Admin_Subscription_Metabox::
   save_subscription_data(2001, Object(WP_Post)) #4 /home/***path***/wp-includes/
   class-wp-hook.php(286): call_user_func_array(‘Braintree_Gatew…’, Array) #5 in/
   home/***path***/wp-content/plugins/woo-payment-gateway/includes/braintree-bfwc-
   functions.php on line 479
    -  This topic was modified 7 years, 2 months ago by [rizbanr](https://wordpress.org/support/users/rizbanr/).

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

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-manually-adding-subscriptions/#post-11336542)
 * Hi [@rizbanr](https://wordpress.org/support/users/rizbanr/),
 * Thanks for the info. We will be addressing this bug in the next plugin release.
 * Thanks,
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-manually-adding-subscriptions/#post-11341657)
 * This bug has been resolved in release 2.6.56.

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

The topic ‘Error Manually adding Subscriptions’ is closed to new replies.

 * ![](https://ps.w.org/woo-payment-gateway/assets/icon-256x256.png?rev=2142799)
 * [Payment Plugins Braintree For WooCommerce](https://wordpress.org/plugins/woo-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-payment-gateway/reviews/)

## Tags

 * [subscriptions](https://wordpress.org/support/topic-tag/subscriptions/)

 * 2 replies
 * 2 participants
 * Last reply from: [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/error-manually-adding-subscriptions/#post-11341657)
 * Status: resolved