• Resolved Sha’ves

    (@shaves23)


    Fatal errors encountered :

      Uncaught Error: Call to undefined method
      WC_Order_Item_Shipping::get_product()
      Uncaught Error: Call to undefined method
      WC_Order_Item_Tax::get_product()

    Checkout Page – Place Order

    Fatal error: Uncaught Error: Call to undefined method WC_Order_Item_Shipping::get_product()
    in ....../wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/custom-sensors/WSAL_Sensors_WooCommerce.php on line 2802
    
    Call stack:
    
        WSAL_Sensors_WooCommerce::event_order_items_added()
        wp-includes/class-wp-hook.php:303
        WP_Hook::apply_filters()
        wp-includes/class-wp-hook.php:327
        WP_Hook::do_action()
        wp-includes/plugin.php:470
        do_action()
        wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php:60
        Abstract_WC_Order_Item_Type_Data_Store::create()
        wp-content/plugins/woocommerce/includes/class-wc-data-store.php:169
        WC_Data_Store::create()
        wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:218
        WC_Data::save()
        wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:243
        WC_Abstract_Order::save_items()
        wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:190
        WC_Abstract_Order::save()
        wp-content/plugins/woocommerce/includes/class-wc-order.php:221
        WC_Order::save()
        wp-content/plugins/woocommerce/includes/class-wc-checkout.php:389
        WC_Checkout::create_order()
        wp-content/plugins/woocommerce/includes/class-wc-checkout.php:1172
        WC_Checkout::process_checkout()
        wp-content/plugins/woocommerce/includes/class-wc-ajax.php:466
        WC_AJAX::checkout()
        wp-includes/class-wp-hook.php:303
        WP_Hook::apply_filters()
        wp-includes/class-wp-hook.php:327
        WP_Hook::do_action()
        wp-includes/plugin.php:470
        do_action()
        wp-content/plugins/woocommerce/includes/class-wc-ajax.php:90
        WC_AJAX::do_wc_ajax()
        wp-includes/class-wp-hook.php:303
        WP_Hook::apply_filters()
        wp-includes/class-wp-hook.php:327
        WP_Hook::do_action()
        wp-includes/plugin.php:470
        do_action()
        wp-includes/template-loader.php:13
        require_once()
        wp-blog-header.php:19
        require()
        index.php:17

    Admin Page > Woocommerce > Orders > Add Order > Add a product > Recalculate

    Fatal error: Uncaught Error: Call to undefined method WC_Order_Item_Tax::get_product()
    in ...../wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/custom-sensors/WSAL_Sensors_WooCommerce.php on line 2802
    
    Call stack:
    
        WSAL_Sensors_WooCommerce::event_order_items_added()
        wp-includes/class-wp-hook.php:303
        WP_Hook::apply_filters()
        wp-includes/class-wp-hook.php:327
        WP_Hook::do_action()
        wp-includes/plugin.php:470
        do_action()
        wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php:60
        Abstract_WC_Order_Item_Type_Data_Store::create()
        wp-content/plugins/woocommerce/includes/class-wc-data-store.php:169
        WC_Data_Store::create()
        wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:218
        WC_Data::save()
        wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:243
        WC_Abstract_Order::save_items()
        wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:190
        WC_Abstract_Order::save()
        wp-content/plugins/woocommerce/includes/class-wc-order.php:221
        WC_Order::save()
        wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:1656
        WC_Abstract_Order::update_taxes()
        wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:1581
        WC_Abstract_Order::calculate_taxes()
        wp-content/plugins/woocommerce/includes/class-wc-ajax.php:1433
        WC_AJAX::calc_line_taxes()
        wp-includes/class-wp-hook.php:303
        WP_Hook::apply_filters()
        wp-includes/class-wp-hook.php:327
        WP_Hook::do_action()
        wp-includes/plugin.php:470
        do_action()
        wp-admin/admin-ajax.php:187
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Sha’ves

    (@shaves23)

    Additional Info

    WordPress version: 		5.8
    WooCommerce version: 		5.6.0
    WooCommerce database version: 	5.5.2     <<<<<<<<<<
    PHP version: 		        7.4.23
    
    WP Activity Log 	  	by WP White Security – 4.3.2 
    WP Activity Log for WooCommerce by WP White Security – 1.2.3

    Temporary Fix

    Revert back to v1.2.2 : WP Activity Log for WooCommerce

    Permanent Fix

    Update WooCommerce Database : https://prnt.sc/1r3g0yu

    • This reply was modified 3 years, 6 months ago by Sha'ves.
    • This reply was modified 3 years, 6 months ago by Sha'ves.
    Thread Starter Sha’ves

    (@shaves23)

    The update to Woocommerce database did not solve the issue. Appeared as though fixed, because test was loaded from cache.

    After clearing cache, same problem :

    WordPress version: 		5.8
    WooCommerce version: 		5.6.0
    WooCommerce database version: 	5.6.0     <<<<<<<<<<
    PHP version: 		        7.4.23
    
    WP Activity Log 	  	by WP White Security – 4.3.2 
    WP Activity Log for WooCommerce by WP White Security – 1.2.3

    Temporarily reverting back to v1.2.2 until a solution can be found.

    Plugin Support Danny Jones

    (@distinctivepixels)

    Hi @shaves23

    Thanks for getting in touch, I am sorry to see you are having an issue here.

    We have just released an update which should resolve this fully, however, as we have yet been unable to replicate the problem/errors during our testing we would like to get some more info on this if possible.

    Please email me at [email protected] and we can look into this a little deeper.

    Kind regards, Daniel @ WP White Security

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error v1.2.3 : WC_Order_Item_Tax & WC_Order_Item_Shipping’ is closed to new replies.