Fatal server error when placing an order
-
Using this plugin with its WooCommerce extension gives us fatal server errors when placing an order after the last update.
Here is the stack trace with 2 warnings related to the plugin:
[24-May-2023 11:51:42 UTC] PHP Warning: Attempt to read property "post_type" on bool in /var/www/webshop/public_html/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-sensor.php on line 3184 [24-May-2023 11:51:42 UTC] PHP Warning: Attempt to read property "post_type" on bool in /var/www/webshop/public_html/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-sensor.php on line 3186 [24-May-2023 11:51:42 UTC] PHP Warning: Attempt to read property "ID" on bool in /var/www/webshop/public_html/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-sensor.php on line 3196 [24-May-2023 11:51:42 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_status() on bool in /var/www/webshop/public_html/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-sensor.php:3535 Stack trace: #0 /var/www/webshop/public_html/wp-includes/class-wp-hook.php(308): WSAL\Plugin_Sensors\WooCommerce_Sensor::event_order_items_added() #1 /var/www/webshop/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #2 /var/www/webshop/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /var/www/webshop/public_html/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php(60): do_action() #4 /var/www/webshop/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(186): Abstract_WC_Order_Item_Type_Data_Store->create() #5 /var/www/webshop/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php(228): WC_Data_Store->create() #6 /var/www/webshop/public_html/wp-content/plugins/yith-woocommerce-dynamic-pricing-and-discounts-premium/includes/class-ywdpd-frontend.php(1117): WC_Data->save() #7 /var/www/webshop/public_html/wp-includes/class-wp-hook.php(310): YWDPD_Frontend->save_dynamic_rules_in_order_item() #8 /var/www/webshop/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #9 /var/www/webshop/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #10 /var/www/webshop/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(549): do_action() #11 /var/www/webshop/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(496): WC_Checkout->create_order_line_items() #12 /var/www/webshop/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(439): WC_Checkout->set_data_from_cart() #13 /var/www/webshop/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1256): WC_Checkout->create_order() #14 /var/www/webshop/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(485): WC_Checkout->process_checkout() #15 /var/www/webshop/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::checkout() #16 /var/www/webshop/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #17 /var/www/webshop/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #18 /var/www/webshop/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action() #19 /var/www/webshop/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax() #20 /var/www/webshop/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #21 /var/www/webshop/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #22 /var/www/webshop/public_html/wp-includes/template-loader.php(13): do_action() #23 /var/www/webshop/public_html/wp-blog-header.php(19): require_once('...') #24 /var/www/webshop/public_html/index.php(17): require('...') #25 {main} thrown in /var/www/webshop/public_html/wp-content/plugins/wp-activity-log-for-woocommerce/wp-security-audit-log/sensors/class-woocommerce-sensor.php on line 3535Also I encountered several other oddities. We had an customer who was able to order with outdated prices, and another customer who was able to place an order not only with the discount from another customer (who called to tell us he was unable to place an order) but with several items repeated. These oddities stopped appearing after I disabled this plugin and its extension.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Fatal server error when placing an order’ is closed to new replies.