• Resolved Mansi Shah

    (@daredevil22)


    Hi,

    This plugin is exactly what I was looking for.
    But looks like it is not working. I’m getting following errors:

    PHP Notice: Undefined index: lifetime in /woocommerce-subscriptions/includes/wcs-time-functions.php on line 135
    PHP Notice: Undefined index: lifetime in /woocommerce-subscriptions/includes/wcs-time-functions.php on line 41
    PHP Warning: Missing argument 3 for woo_lifetime_date() in /woo-subscriptions-variation-lifetimeonetime-purchase/woo-subscriptions-variation-lifetime.php on line 41
    PHP Warning: Invalid argument supplied for foreach() in /woocommerce/includes/admin/wc-meta-box-functions.php on line 229
    PHP Warning: Invalid argument supplied for foreach() in /woocommerce-subscriptions/templates/admin/html-variation-price.php on line 70

    Also, after payment completion order is going in Pending payment and subscription in Pending mode. Subscriptions never gets in Active mode. When de-activating this plugin, it works fine.
    Using WC: 3.4.7 and WooCommerce Subscriptions: 2.2.21

    Any help is appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • It looks like the dev has gone AWOL, perhaps I can help. I’m only a user but have fixed a couple of issues myself already.

    Please enable debugging on your WP site, then do the action that is causing you the issue. Post you WP log file here and I’ll see if I can help.

    Sorry, I just noticed that you already posted your log above. Try making the following change to ‘wp-content/plugins/woo-subscriptions-variation-lifetimeonetime-purchase/woo-subscriptions-variation-lifetime.php’

    Change this:
    function woo_lifetime_date( $status, $order_id, $order )

    to this:
    function woo_lifetime_date( $status, $order_id, $order=” )

    Let me know if that fixes it.

    • This reply was modified 6 years, 1 month ago by Phill Healey.
    Plugin Author logicfire

    (@logicfire)

    Update released. Please update plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warnings and Subscription not activating’ is closed to new replies.