Home>Support>Page Builder + SiteOrigin Widgets Bundle: incompatibility with Woocommerce Subscriptions

Page Builder + SiteOrigin Widgets Bundle: incompatibility with Woocommerce Subscriptions

Hi there,

Not sure if anyone else has come across this.

I use the above SiteOrigin plugins on my Woocommerce site. I also use Woocommerce Subscriptions plugin. Under certain circumstances (an Admin has adjusted an order for a customer) it ‘breaks’ the subscription renewal process (specifically, it breaks Action Scheduler for that customer’s renewals).

I located the issue by creating a staging site and disabling all plugins except for Woocommerce and WC Subscriptions, then activating plugins one by one and testing. I found it was these two plugins, when activated at the same time, that the issue happens.

If you disable one, the issue is still there. You have to de-activate both plugins for the issue to go away. Strangely enough if you disable both, you can then re-enable one of the two and it still works ok. But both together – no.

The specific error caused appears when an affected Subscription tries to create a renewal. It fails to do so, and throws the following:

[29-Aug-2017 14:12:12 UTC] PHP Fatal error: Uncaught TypeError: Argument 2 passed to ActionScheduler_Action::__construct() must be of the type array, null given, called in /home/XXXX/public_html/wp-content/plugins/woocommerce-subscriptions/includes/libraries/action-scheduler/classes/ActionScheduler_wpPostStore.php on line 123 and defined in /home/XXXX/public_html/wp-content/plugins/woocommerce-subscriptions/includes/libraries/action-scheduler/classes/ActionScheduler_Action.php:13
Stack trace:
#0 /home/XXXX/public_html/wp-content/plugins/woocommerce-subscriptions/includes/libraries/action-scheduler/classes/ActionScheduler_wpPostStore.php(123): ActionScheduler_Action->__construct(‘woocommerce_sch…’, NULL, Object(ActionScheduler_SimpleSchedule), ”)

Versions: WordPress 4.8.2, Woocommerce 3.1.2, Woocommerce Subscriptions 2.2.11

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Travel,

    To clarify, does this issue happen when you disable the SiteOrigin Widgets Bundle? Or does it only happen when both of the plugins are active? Have you reported this issue to the Prospress? I ask as they may be more familiar with this type of issue.

  2. 6 years, 11 months ago travelnsam

    Hi Alex,

    I raised this with Woocommerce/Propress to begin with. They advised they had a few customers reporting the same issue, however in every single case it had come down to a 3rd party plugin, although non of the ones they mentioned were SiteOrigin. This is why I carried out the diagnostics with my setup.

    Steps to reproduce issue:
    – Woocommerce and Woocommerce Subscriptions installed and activated (versions in previous post).
    – BOTH SiteOrigins Page Builder and SiteOrigins Widget Bundle installed and activated (current versions)
    – Scheduled Actions will fail for any Subscription that has either been created or edited by an Admin. A fatal error (as per first post) is caused, and a corrupted entry appears in the Scheduled Actions list. Although the Subscription has a correct date listed for the Renewal Payment, that time will pass without anything happening. Processing a Renewal manually works, however the subsequent Scheduled Action that that causes also has the same problem.
    – Both SiteOrigins plugins must be disabled for the problem to go away.
    – However, once this is done, one OR the other SiteOrigin plugin can be enabled again without the problem occurring.

    I hope this is helpful. Let me know if you have any other questions.

    I have decided to put in place a workaround for my situation – I am going through my site and switching any SiteOrigins widgets to ‘normal’ widgets so that I can remove the SO Widget Bundle plugin, but keep Page Builder running. I am doing this as I assume this problem is not going to get a lot of priority given the very specific set of conditions which cause it.

    regards,
    Sam

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More