• Resolved moonfolk

    (@moonfolk)


    [20-Jun-2023 03:52:09 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_status() on bool in /public_html/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-sensor.php:3535
    Stack trace:
    #0 /public_html/wp-includes/class-wp-hook.php(307): WSAL\Plugin_Sensors\WooCommerce_Sensor::event_order_items_added(105679, Object(WC_Order_Item_Product), 0)
    #1 /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(105679, Array)
    #2 /public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #3 /public_html/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php(60): do_action('woocommerce_new...', 105679, Object(WC_Order_Item_Product), 0)
    #4 /public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(186): Abstract_WC_Order_Item_Type_Data_Store->create(Object(WC_Order_Item_Product))
    #5 /public_html/wp-content/plugins/woocommerce in /public_html/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-sensor.php on line 3535

    Buyers also reported seeing “Fatal Error” when they try to check out, ie. they have filled in their billing address, selected payment gateway, and when clicking on the “Place Order” button, it throws a “Fatal Error message”

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support robertabela

    (@robert681)

    Thank you for using our plugin @moonfolk

    I am sorry to read about your issue. Can you please answer the below questions to help us troubleshoot this issue?

    1. What version of WordPress, WP Activity Log and WooCommerce extension are you running please?
    2. Are you able to easily reproduce this or it happens sporadically?
    3. Has this been happening since you installed the plugin, or you’ve been using the plugin for a while and it only started happening after maybe an update, of our plugin, or any other plugin? If so, which plugins please?

    Looking forward to hearing from you.

    Thread Starter moonfolk

    (@moonfolk)

    1. What version of WordPress, WP Activity Log and WooCommerce extension are you running please?
      WordPress 6.0.5
      Woocommerce 7.7.2
      WP Activity Log (Premium) 4.5.2
      WP Activity Log for WooCommerce 1.5.2


    2. Are you able to easily reproduce this or it happens sporadically?
      Not able to reproduce on my own. The first few days after activating it, no issues. It comes after a while and it won’t stop after that.

      Some issues:
      – some orders in “processing” status suddenly had a lot of a product
      – customers report of fatal error at check out

    3. Has this been happening since you installed the plugin, or you’ve been using the plugin for a while and it only started happening after maybe an update, of our plugin, or any other plugin? If so, which plugins please?
      Used the plugin for a while and it only started happening after a few days. No other apps installed / updated

    I currently have it disabled ??

    Plugin Support robertabela

    (@robert681)

    Thank you for the update @moonfolk

    I’ll run this by the developers and I’ll get back to you shortly. Sorry for the late reply.

    Plugin Support robertabela

    (@robert681)

    Hello @moonfolk

    By the way, are you using the Premium edition of the plugin? If you are please contact us via email at [email protected] and refer to this ticket in your email.

    In the meantime, we have taken a closer look into the error code and tried to see what could be the cause for this error.

    What drew our attention is particularly this line of code, which basically triggers the error:

    event_order_items_added(105679, Object(WC_Order_Item_Product), 0)

    The last parameter is ‘0′, and while our plugin expects 3 parameters, it only receives 2 of them, probably since $order_id is not parsed over?

    So, the first-glance conclusion would be that it might be a ‘standard’ now to be able to add products to non-existing orders in the backend and also to be able to obtain information about an order which is not technically there.

    This has probably something to do with some of the latest changes introduced by WooCommerce, and we are still trying to figure out what it could have been, and I would suggest you to also address them this error code as well for more clarification in regards to what could have changed in the processing of orders along with your setup.

    It would also be advisable if you could disable some WooCommerce componence on a staging environment and try to test starting with a vanilla WooComemrce + WP Activity Log install and see where the issue starts to occur, by enabling the plugins back one by one – that will surely give us some clues on what it could be.

    #2 Also, in regards to your feedback, “?some orders in “processing” status suddenly had a lot of a product,” – would it be possible to share some more details about this behavior as we are not sure how to reproduce this on our end, and what the actual and expected result actually is; as well as letting us know if this reproduces as well with our plugin disabled.

    Looking forward to hearing from you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error — sensors/class-woocommerce-sensor.php:3535’ is closed to new replies.