Title: [Plugin: Woo Commerce Subscriptions]
Last modified: August 30, 2016

---

# [Plugin: Woo Commerce Subscriptions]

 *  [ekriuq](https://wordpress.org/support/users/ekriuq/)
 * (@ekriuq)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/plugin-woo-commerce-subscriptions/)
 * I have Woo-commerce installed I have Woo-commerce subscriptions installed I have
   Woo-commerce stripe checkout installed.
 * I go through the checkout procedure and and I get the error
 * **“Subscription start date must be before the current day”**
 * I have went through all the settings and I can’t see any option where I can set
   a start date, it is meant to start when the subscription starts.
 * I’ve reinstalled everything and installed everything but I keep getting the same
   error.
 * I’ve tried googling everything but I can’t see this error ever before.
 * I’ve tried changing the UTC clock in the Dashboard->Settings->General but I still
   get the same error.
 * Here is the offending code
 *  function wcs_create_subscription( $args = array() ) {
 * $order = ( isset( $args[‘order_id’] ) ) ? wc_get_order( $args[‘order_id’] ) :
   null;
 * $default_args = array(
    ‘status’ => ”, ‘order_id’ => 0, ‘customer_note’ => null,‘
   customer_id’ => ( ! empty( $order ) ) ? $order->get_user_id() : null, ‘start_date’
   => ( ! empty( $order ) ) ? $order->order_date : current_time( ‘mysql’, true ),‘
   created_via’ => ( ! empty( $order ) ) ? $order->created_via : ”, ‘order_version’
   => ( ! empty( $order ) ) ? $order->order_version : WC_VERSION, ‘currency’ => (!
   empty( $order ) ) ? $order->order_currency : get_woocommerce_currency(), ‘prices_include_tax’
   => ( ! empty( $order ) ) ? ( ( $order->prices_include_tax ) ? ‘yes’ : ‘no’ ) :
   get_option( ‘woocommerce_prices_include_tax’ ), );
 * $args = wp_parse_args( $args, $default_args );
    $subscription_data = array();
 * // validate the start_date field
    if ( ! is_string( $args[‘start_date’] ) || 
   false === wcs_is_datetime_mysql_format( $args[‘start_date’] ) ) { return new 
   WP_Error( ‘woocommerce_subscription_invalid_start_date_format’, __( ‘Invalid 
   date. The date must be a string and of the format: “Y-m-d H:i:s”.’, ‘woocommerce-
   subscriptions’ ) ); } **else if ( strtotime( $args[‘start_date’] ) > current_time(‘
   timestamp’, true ) ) { return new WP_Error( ‘woocommerce_subscription_invalid_start_date’,
   __( ‘Subscription start date must be before current day’, ‘woocommerce-subscriptions’));}

Viewing 1 replies (of 1 total)

 *  [swayam.tejwani](https://wordpress.org/support/users/swayamtejwani/)
 * (@swayamtejwani)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/plugin-woo-commerce-subscriptions/#post-6670976)
 * I also get same problem, in my case this was the issue
    [https://docs.woothemes.com/document/subscriptions/faq/#section-35](https://docs.woothemes.com/document/subscriptions/faq/#section-35)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Woo Commerce Subscriptions]’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [swayam.tejwani](https://wordpress.org/support/users/swayamtejwani/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/plugin-woo-commerce-subscriptions/#post-6670976)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
