Title: PHP Errors&#8230;
Last modified: January 13, 2024

---

# PHP Errors…

 *  Resolved [cliqueradar](https://wordpress.org/support/users/cliqueradar/)
 * (@cliqueradar)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-errors-311/)
 * Hi,
 * Been using this plugin for about 6 weeks. VERY useful plugin, I like it a lot.
 * But… was a bit alarmed to see my php error logs had swollen to over 200mb, filled
   with entries like the following examples…
 *     ```wp-block-code
       [10-Jan-2024 09:31:48 UTC] post_type was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, WC_Order->save, WC_Abstract_Order->save, WC_Data_Store->create, WC_Order_Data_Store_CPT->create, do_action('woocommerce_new_order'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Public_Sensor::event_new_order, WSAL\WP_Sensors\WooCommerce_Public_Sensor::get_editor_link, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
       [10-Jan-2024 09:31:48 UTC] ID was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, WC_Order->save, WC_Abstract_Order->save, WC_Data_Store->create, WC_Order_Data_Store_CPT->create, do_action('woocommerce_new_order'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Public_Sensor::event_new_order, WSAL\WP_Sensors\WooCommerce_Public_Sensor::get_editor_link, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
       [10-Jan-2024 09:31:48 UTC] ID was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, WC_Order->save, WC_Abstract_Order->save, WC_Data_Store->create, WC_Order_Data_Store_CPT->create, do_action('woocommerce_new_order'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Public_Sensor::event_new_order, WSAL\WP_Sensors\WooCommerce_Public_Sensor::get_editor_link, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
       [10-Jan-2024 09:31:48 UTC] post_type was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, WC_Order->save, WC_Abstract_Order->save, WC_Abstract_Order->save_items, WC_Data->save, WC_Data_Store->create, Abstract_WC_Order_Item_Type_Data_Store->create, do_action('woocommerce_new_order_item'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Sensor::event_order_items_added, WSAL\WP_Sensors\WooCommerce_Sensor::get_editor_link, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
       [10-Jan-2024 09:31:48 UTC] post_type was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, WC_Order->save, WC_Abstract_Order->save, WC_Abstract_Order->save_items, WC_Data->save, WC_Data_Store->create, Abstract_WC_Order_Item_Type_Data_Store->create, do_action('woocommerce_new_order_item'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Sensor::event_order_items_added, WSAL\WP_Sensors\WooCommerce_Sensor::get_editor_link, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
       [10-Jan-2024 09:31:48 UTC] ID was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, WC_Order->save, WC_Abstract_Order->save, WC_Abstract_Order->save_items, WC_Data->save, WC_Data_Store->create, Abstract_WC_Order_Item_Type_Data_Store->create, do_action('woocommerce_new_order_item'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Sensor::event_order_items_added, WSAL\WP_Sensors\WooCommerce_Sensor::get_editor_link, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
       [10-Jan-2024 09:31:49 UTC] post_type was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, WC_Order->save, WC_Abstract_Order->save, WC_Abstract_Order->save_items, WC_Data->save, WC_Data_Store->create, Abstract_WC_Order_Item_Type_Data_Store->create, do_action('woocommerce_new_order_item'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Sensor::event_order_items_added, WSAL\WP_Sensors\WooCommerce_Sensor::get_editor_link, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
       [10-Jan-2024 09:31:49 UTC] post_type was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, WC_Order->save, WC_Abstract_Order->save, WC_Abstract_Order->save_items, WC_Data->save, WC_Data_Store->create, Abstract_WC_Order_Item_Type_Data_Store->create, do_action('woocommerce_new_order_item'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Sensor::event_order_items_added, WSAL\WP_Sensors\WooCommerce_Sensor::get_editor_link, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
       [10-Jan-2024 09:31:49 UTC] ID was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, WC_Order->save, WC_Abstract_Order->save, WC_Abstract_Order->save_items, WC_Data->save, WC_Data_Store->create, Abstract_WC_Order_Item_Type_Data_Store->create, do_action('woocommerce_new_order_item'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WooCommerce_Sensor::event_order_items_added, WSAL\WP_Sensors\WooCommerce_Sensor::get_editor_link, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
       ```
   
 * Because these entries reference ‘WSAL/… ‘ I’m assuming its this plugin that’s
   generating them? That and the fact they only date back to my installing WP Activity
   Log.
 * Any help appreciated. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-errors-311/#post-17340079)
 * Hello cliqueradar
 * Thank you for using our plugin. I am glad to read that you like it.
 * In regards to your issue, can you please let us know what version of WordPress,
   PHP and WP Activity Log are you running?
 * Looking forward to hearing from you.
 *  Thread Starter [cliqueradar](https://wordpress.org/support/users/cliqueradar/)
 * (@cliqueradar)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-errors-311/#post-17354276)
 * Hi Robert,
 * My site is on:
 * WordPress 6.4.2
   PHP: 8.1.25WP Activity Log: 4.6.2
 * Thanks.
 *  Thread Starter [cliqueradar](https://wordpress.org/support/users/cliqueradar/)
 * (@cliqueradar)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-errors-311/#post-17354798)
 * Oh and… site is also running:
 * WooCommerce 8.5.1
 * And, I have Object Caching on.
 * Just in case those details are useful.
 *  Plugin Support [Lucian Padureanu](https://wordpress.org/support/users/lucianwpwhite/)
 * (@lucianwpwhite)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-errors-311/#post-17362832)
 * Thank you for these details [cliqueradar](https://wordpress.org/support/users/cliqueradar/)!
   
   I have opened an internal ticket regarding these notices and managed to have 
   a preliminary discussion with the developers over this topic.We came up with 
   some initial thoughts about the latest WooCommerce changes (probably starting
   with 8.x upwards) due to which those notices are showing up in the logs.Let me
   elaborate a bit over these with a few technical aspects – the old/core WooCommerce(
   prior to these newer versions) were relying on “post_types” .Their new plugin
   infrastructure, is using classes instead of this. Therefore, we will need to 
   come up with some enhancements in our WooCommerce sensor code, in order to cover
   up this as well (for users who are using newer Woo versions).The developers are
   already looking into this, and we will surely address these in one of our next
   plugin updates in the near future. Even though I am unable to provide you with
   an exact ETA for when this will be available, I want to thank you in advance 
   for the feedback, patience and cooperation on this.Feel free to reach out in 
   case there are any other questions in regards, or if there’s anything helpful
   that you would like to add.Kind regards
 *  Thread Starter [cliqueradar](https://wordpress.org/support/users/cliqueradar/)
 * (@cliqueradar)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-errors-311/#post-17363110)
 * Hi Lucian,
 * Thanks for the reply, and prompt action to look into a solution.
 * Will await your update. 🙂
 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [2 years ago](https://wordpress.org/support/topic/php-errors-311/#post-17774375)
 * Hello,
 * Today we have just released WP Activity Log version 5.0, which has a much improved
   WooCommerce sensor. Please update your plugin to version 5 to help with this 
   issue.
 * Should you have any other questions, please do not hesitate to ask.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP Errors…’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [robertabela](https://wordpress.org/support/users/robert681/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/php-errors-311/#post-17774375)
 * Status: resolved