• Resolved fongmh

    (@fongmh)


    Hi

    The latest version of WP Activity Log for WooCommerce has resulted in an error during WooCommerce checkout. The log reads:

    2021-09-03T08:42:54+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Order_Item_Shipping::get_product() in ****/wp-activity-log-for-woocommerce/wp-security-audit-log/custom-sensors/WSAL_Sensors_WooCommerce.php:2802
    Stack trace:
    #0 /public_html/wp-includes/class-wp-hook.php(303): WSAL_Sensors_WooCommerce->event_order_items_added(8554, Object(WC_Order_Item_Shipping), 24401)
    #1 /public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(8554, Array)
    #2 /public_html/wp-includes/plugin.php(470): 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...', 8554, Object(WC_Order_Item_Shipping), 24401)
    #4 /public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(169): Abstract_WC_Order_Item_Type_Data_Store->create(Object(WC_Order_Item_Shipping))
    #5 /public_html/wp-conten in /public_html/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/custom-sensors/WSAL_Sensors_WooCommerce.php on line 2802

    We are running WooCommerce version 5.6.0 and WordPress version 5.8. We have also rolled back WP Activity Log for WooCommerce back to 1.2.2.

    • This topic was modified 3 years, 2 months ago by fongmh.
    • This topic was modified 3 years, 2 months ago by fongmh.
    • This topic was modified 3 years, 2 months ago by fongmh.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fongmh

    (@fongmh)

    Updating to version 1.3.1 seems to have fixed the issue.

    Plugin Support robertabela

    (@robert681)

    I am glad to hear @fongmh

    Indeed, 1.3.1 was released to address this issue, which was caused by a new feature we added. In the fix we simply disabled the new feature, because we could not reproduce the issue.

    We are still looking for a way to reproduce the issue, since we would like to re-introduce the new feature. Therefore if you have a staging or testing website on which the issue can be reproduced, please contact us at support at wpwhitesecurity dot com since we would like to do some more testing.

    Thank you very much for using our plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught Error with 1.2.3 WooCommerce plugin’ is closed to new replies.