Error log showing several Woo Checkout related errors

Hello Themeco team!

In my error log I am seeing errors related to Woo Checkout Editor, could you please take a look at this? I see that other people on the forum have mentioned this, but then they did not reply to your answer. I can confirm that all of my plugins/themes are up to date.

These are the errors I am seeing, after a customer made an order through my site:

[16-Nov-2021 07:54:05 UTC] PHP Warning: Invalid argument supplied for foreach() in /home2/tierram3/public_html/wp-content/plugins/tco-woo-checkout-editor/includes/tco_woo_checkout.woo.hooks.php on line 536
[16-Nov-2021 07:54:59 UTC] woocommerce_add_order_item_meta is deprecated since version 3.0.0! Use woocommerce_new_order_item instead.
[16-Nov-2021 07:55:02 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->process_order_payment, WC_Gateway_BACS->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_pending_to_on-hold’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array(‘woocommerce_order_status_pending_to_on-hold_notification’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_New_Order->trigger, WC_Email->get_content, WC_Email_New_Order->get_content_html, wc_get_template_html, wc_get_template, include(’/themes/x-child/woocommerce/emails/admin-new-order.php’), do_action(‘woocommerce_email_order_details’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails->order_details, wc_get_template, include(’/plugins/woocommerce/templates/emails/email-order-details.php’), do_action(‘woocommerce_email_after_order_table’), WP_Hook->do_action, WP_Hook->apply_filters, Tco_Woo_Hooks::email_other_fields_list, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.

I get these same exact errors many many times over. Can you please help me figure out what is going on?
Thank you

Hello @Tierramitica,

Thanks for writing in! Kindly check that you are using the latest versions. Our latest versions are:

  • Pro theme 5.1.4 OR
  • X theme 9.1.4
  • Cornerstone 6.14
  • Woo Checkout Editor 2.2.1
  • WordPress 5.8.2
  • PHP 7.4

This latest release contains fixes for several issues so be sure to check out the changelog:

After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

You are seeing the PHP Warning which usually appears when a variable is null or not yet initialized. You get rid of the PHP Warnings by disabling the debug mode.

Please let us know how it goes.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.