PHP errors
-
Hey guys,
Thanks for a great plugin. This should be a part of core!
I am writing because I see a lot of errors relating to WSAL using outdated methods to access properties. eg:
AH01071: Got error 'PHP message: post_status was called incorrectly. Order properties should not be accessed directly. Backtrace: do_action('wp_ajax_woocommerce_remove_order_item'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::remove_order_item, wc_delete_order_item, do_action('woocommerce_before_delete_order_item'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Sensor::event_order_items_removed, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.'AH01071: Got error 'PHP message: post_status was called incorrectly. Order properties should not be accessed directly. Backtrace: do_action('wp_ajax_woocommerce_save_order_items'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::save_order_items, wc_save_order_items, do_action('woocommerce_before_save_order_items'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Sensor::event_order_items_quantity_changed, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.AH01071: Got error 'PHP message: post_status was called incorrectly. Order properties should not be accessed directly. Backtrace: do_action('wp_ajax_woocommerce_calc_line_taxes'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::calc_line_taxes, Automattic\WooCommerce\Internal\Orders\TaxesController->calc_line_taxes_via_ajax, Automattic\WooCommerce\Internal\Orders\TaxesController->calc_line_taxes, wc_save_order_items, do_action('woocommerce_before_save_order_items'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Sensor::event_order_items_quantity_changed, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.Is it possible for you to do an audit of this and get rid of some of these errors?
Thanks,
Jason
The topic ‘PHP errors’ is closed to new replies.