• Resolved Rolf Siebers

    (@rolfsiebers)


    wp-security-audit-log: 5.3.4.1 (Free version)
    WP: 6.7.2
    PHP: 8.3

    If you’ve got a multisite and you’ve got Woocommerce activated on one site and not all sites, when you try to edit a page you get an error.

    That is because the plugin detects Woocommerce is on one site and so it thinks it runs on all sites. So if you edit a page the class-woocommerce-sensor.php is loaded and it tries to run the order_opened_for_editing() function.

    There it tries to run a WooCommerce specific function, but it can’t because WooCommerce is not activated on that site resulting in a fatal error.

    stack trace:

    1. WSAL\WP_Sensors\WooCommerce_Sensor::order_opened_for_editing('')
      wp-includes/class-wp-hook.php:324
    2. WP_Hook::apply_filters(NULL, array)
      wp-includes/class-wp-hook.php:348
    3. WP_Hook::do_action(array)
      wp-includes/plugin.php:517
    4. do_action('admin_action_edit')
      wp-admin/admin.php:419
    5. require_once('/var/www/web/wp/wp-admin/admin.php')
      wp-admin/post.php:12
    • This topic was modified 1 year, 1 month ago by Rolf Siebers.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hello @rolfsiebers,

    I’m really sorry to hear about the experience you’ve had with the plugin!

    We’ve prepared a patch build that should resolve this issue. You can download it from the link here —just look for the entry titled “multisite WooCommerce fix” and install it like you would any other plugin via the Plugins > Add New > Upload Plugin section, in your WordPress dashboard.

    Let me know how it goes or if you run into anything else!

    Thread Starter Rolf Siebers

    (@rolfsiebers)

    Hi @lucianwpwhite

    This seems to fix it. Thanks for the quick response. When are you planning to release this in the plugin? We prefer to use released versions on our production environment.

    Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Thank you for your confirmation, @rolfsiebers!

    We do have plans to include this in our upcoming release, so it’s definitely on our radar. That said, I’m unable to provide a precise ETA just yet, as we’ve only recently started work on the next update.

    Also, in case you want to do us a quick favor, can you drop us a review as well based on your experience with our plugin and support? These reviews only take one minute to post, but they are really helpful.

    Really appreciate your patience and understanding on this one!

    We also experienced the same Fatal error and same scenario, where we have a multi-site with WooCommerce and not all the sub-sites have WooCommerce active.

    We’ll await the plugin to be patched too and would appreciate an ETA.

    Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hello @sitebites,

    I’m sorry to hear that you’re experiencing the same error!

    We’ve prepared a patched build of the latest version that reverts the specific code changes causing this issue. This patch has already been confirmed as stable through our internal testing and by feedback from other users who’ve applied it.

    You can download it from this link here – Just look for the entry titled “multisite WooCommerce fix”, then install it like any other plugin via Plugins > Add New > Upload Plugin in your WordPress dashboard.

    While I can’t give you a specific ETA for the official update just yet, the patch build is fully functional and safe to use in the meantime.

    I do appreciate your understanding!

    Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hello @rolfsiebers and @sitebites !

    We have just released update 5.4.0 which includes a fix for this. You can safely update your plugin to the latest version now and check how things are going this time in case you haven’t already tried our previous patched build. Please let us know if there are any further issues!

    I do appreciate your patience while we were working on this, and also for bringing this into our attention!

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

The topic ‘Multisite with Woocommerce fatals’ is closed to new replies.