Uncaught Error: Call to a member function get_sku() on bool
-
Uncaught Error: Call to a member function get_sku() on bool in ((:::SNIP:::))/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/custom-sensors/WSAL_Sensors_WooCommerce.php:511 Stack trace: #0 ((:::SNIP:::))/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/custom-sensors/WSAL_Sensors_WooCommerce.php(488): WSAL_Sensors_WooCommerce->get_product_sku(2462) #1 ((:::SNIP:::))/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/custom-sensors/WSAL_Sensors_WooCommerce.php(357): WSAL_Sensors_WooCommerce->EventCreation(Object(WP_Post), Object(WP_Post)) #2 ((:::SNIP:::))/wp-includes/class-wp-hook.php(307): WSAL_Sensors_WooCommerce->EventChanged(2462, Object(WP_Post), false) #3 ((:::SNIP:::))/wp-includes/class-wp-hook.php(331): WP_Hook->ap
This happens when I publish/unpublish a product, move it to trash, restore it from trash etc. The requested effect does still happen (as evidenced in the product being unpublished, moved to/from trash etc.), but it’s a PITA to go through HTTP 500 each and every time.
Tested on both staging and live, happens on both (different hosting).
WSAL for Woo v1.4.0 (WSAL v4.4.1) @ WP v5.9.3 with Woo v6.3.1
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Uncaught Error: Call to a member function get_sku() on bool’ is closed to new replies.