• Resolved velarie2112

    (@velarie2112)


    I installed the subscriptions plugin and tested it with a test account and it worked beautifully. As soon as I tried to use it for an actual client account it now only produces a PHP error when I try to create new subscriptions.

    Fatal error: Uncaught Error: Call to a member function update_dates() on boolean in /XXX/wp-content/plugins/xa-woocommerce-subscriptions/admin/class-hf-subscription-schedule-meta-box.php:116 Stack trace: #0 /XXX/wp-includes/class-wp-hook.php(286): HForce_Meta_Box_Subscription_Schedule::save(625, Object(WP_Post)) #1 /XXX/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /XXX/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /XXX/wp-content/plugins/xa-woocommerce-subscriptions/includes/class-hf-woocommerce-subscription.php(332): do_action(‘woocommerce_pro…’, 625, Object(WP_Post)) #4 /XXX/wp-includes/class-wp-hook.php(288): HForce_Woocommerce_Subscription->save_meta_boxes(625, Object(WP_Post)) #5 /XXX in /XXX/wp-content/plugins/xa-woocommerce-subscriptions/admin/class-hf-subscription-schedule-meta-box.php on line 116

    I’m running WP 4.9.7 Multisite, but WooCommerce and supporting plugins are only active on the main site. Any suggestions would be appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @velarie2112,

    Could you please mention which version of WooCommerce you are using.

    Thread Starter velarie2112

    (@velarie2112)

    3.4.3

    Thread Starter velarie2112

    (@velarie2112)

    I figured it out. I remembered that the only change I made after installing Subscriptions was to install ‘Prevent Customers To Cancel WooCommerce Orders’. I deactivated it, reactivated Subscriptions and it is working again.

    Thread Starter velarie2112

    (@velarie2112)

    Actually it was not Cancel Orders plugin. I’ve tested this several times now and this is the issue —

    If I try to specify the next payment date at the time that I am creating the subscription it returns the PHP error. If I create the subscription and then go back and update the next payment date, it works fine.

    Plugin Author WebToffee

    (@webtoffee)

    Hi @velarie2112,

    The issue was occurring because you were editing a post that was not actually created. Only if you create that post, you will be able to edit it. It will cause error only for manual subscription order creation.

    Hope you understand it. Thank you for getting back to us after identifying the issue.

    Let us know if anything else.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Create New Subscription Produces PHP Error’ is closed to new replies.