Fatal erors with WPAL 1.2.3 using coupons
-
Since the last update to version 1.2.3 of WP Activity Log for WooCommerce, visible fatal errors are generated in the logs when using discount coupons(. I copy here below the logs. With the previous version there is no problem at all. Now, when going from the cart to the payment details page and creating a new payment (whatever the payment gateway) an internal server error is generated.
logs(just after creating the order #12693 with any previously applied coupon in cart):
[02-Sep-2021 22:06:47 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WC_Order_Item_Coupon::get_product() in /home/site/xxx.xxx/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/custom-sensors/WSAL_Sensors_WooCommerce.php:2802
Stack trace:
#0 /home/site/xxx.xxx/wp-includes/class-wp-hook.php(303): WSAL_Sensors_WooCommerce->event_order_items_added(12576, Object(WC_Order_Item_Coupon), 12693)
#1 /home/site/xxx.xxx/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(12576, Array)
#2 /home/site/xxx.xxx/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#3 /home/site/xxx.xxx/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php(60): do_action(‘woocommerce_new…’, 12576, Object(WC_Order_Item_Coupon), 12693)
#4 /home/site/xxx.xxx/wp-content/plugins/woocommerce/includes/class-wc-data-store. in /home/site/xxx.xxx/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/custom-sensors/WSAL_Sensors_WooCommerce.php on line 2802Only solution that i’ve found…deactivate plugin o revert to previous version…
Any ideas???
Thanks in advance
- The topic ‘Fatal erors with WPAL 1.2.3 using coupons’ is closed to new replies.