Order properties should not be accessed directly
-
Hi,
Since recently I am getting a new PHP notice or warning in debug.log. It shows:
[08-Dec-2020 12:09:15 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, apply_filters(‘woocommerce_payment_successful_result’), WP_Hook->apply_filters, WC_GZD_Emails->send_order_confirmation_mails, do_action(‘woocommerce_gzd_order_confirmation’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array(‘woocommerce_gzd_order_confirmation_notification’), WP_Hook->do_action, WP_Hook->apply_filters, WC_GZD_Emails->trigger_order_confirmation_emails, WC_Email_New_Order->trigger, WC_Email->get_attachments, apply_filters(‘woocommerce_email_attachments’), WP_Hook->apply_filters, WPO\WC\PDF_Invoices\Main->attach_pdf_to_email, WPO\WC\PDF_Invoices\Main->get_documents_for_email, apply_filters(‘wpo_wcpdf_custom_attachment_condition’), WP_Hook->apply_filters, wpo_wcpdf_exclude_payment_method, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
I am assuming that this is related to this plugin. Does anyone know how I can get rid of this?
Thanks,
Chris
- The topic ‘Order properties should not be accessed directly’ is closed to new replies.