Title: Got error &#8216;PHP message: id was called incorrectly
Last modified: March 27, 2023

---

# Got error ‘PHP message: id was called incorrectly

 *  [jonasborneland](https://wordpress.org/support/users/jonasborneland/)
 * (@jonasborneland)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/got-error-php-message-id-was-called-incorrectly/)
 * Hi
 * Could you please look at fixing this error in your plugin? 😊
 *     ```wp-block-code
       [Mon Mar 27 2023] [proxy_fcgi:error] [pid x:tid x] [client x:0] AH01071: Got error 'PHP message: id was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WC_REST_CRUD_Controller->update_item, WC_REST_Orders_V2_Controller->save_object, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_completed'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array('woocommerce_order_status_completed_notification'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_Completed_Order->trigger, WC_Email->get_content, WC_Email_Customer_Completed_Order->get_content_html, wc_get_template_html, wc_get_template, include('/plugins/kadence-woocommerce-email-designer/templates/woo/emails/customer-completed-order.php'), do_action('woocomm...PHP message: id was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WC_REST_CRUD_Controller->update_item, WC_REST_Orders_V2_Controller->save_object, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_completed'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array('woocommerce_order_status_completed_notification'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_Completed_Order->trigger, WC_Email->get_content, WC_Email_Customer_Completed_Order->get_content_html, wc_get_template_html, wc_get_template, include('/plugins/kadence-woocommerce-email-designer/templates/woo/emails/customer-completed-order.php'), do_action('woocomm...PHP message: id was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WC_REST_CRUD_Controller->update_item, WC_REST_Orders_V2_Controller->save_object, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_completed'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array('woocommerce_order_status_completed_notification'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_Completed_Order->trigger, WC_Email->get_content, WC_Email_Customer_Completed_Order->get_content_html, wc_get_template_html, wc_get_template, include('/plugins/kadence-woocommerce-email-designer/templates/woo/emails/customer-completed-order.php'), do_action('woocomm...'
       ```
   

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

 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/got-error-php-message-id-was-called-incorrectly/#post-16600139)
 * Hi,
 *  I don’t think that is coming from our plugin. If you deactivate our plugin do
   you still get this? What page are you seeing this error come from?
 * Ben
 *  Thread Starter [jonasborneland](https://wordpress.org/support/users/jonasborneland/)
 * (@jonasborneland)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/got-error-php-message-id-was-called-incorrectly/#post-16602862)
 * Hi Ben
 * Thanks for your response.
   My error logs points to your plugin, but the trace 
   is too long, so not sure exactly where the error is.I’ve research it and scanned
   all the plugin files that have references to emails.
 * I am suspecting this could be the error:
   class-kadence-woomail-settings.phpOn
   line 3085$order_object = new WC_Order( $order->ID );
 * According to this:
   [https://stackoverflow.com/questions/43231684/order-properties-should-not-be-accessed-directly-woocommerce-3-0](https://stackoverflow.com/questions/43231684/order-properties-should-not-be-accessed-directly-woocommerce-3-0)
 * The above code should have been $order->get_id() ?
 * I could be wrong, but I hope this could solve it.
 * wp-content/plugins/kadence-woocommerce-email-designer/includes/class-kadence-
   woomail-settings.php
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/got-error-php-message-id-was-called-incorrectly/#post-16606246)
 * ok, I see, in the list in the settings this would only happen in the customizer.
   I’ve resolved that in the latest update.
 *  Thread Starter [jonasborneland](https://wordpress.org/support/users/jonasborneland/)
 * (@jonasborneland)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/got-error-php-message-id-was-called-incorrectly/#post-16606472)
 * Thats great to hear! Thank you very much.
 * I can see there is an update, so that would make sense – I will go ahead an get
   it installed 🙂

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

The topic ‘Got error ‘PHP message: id was called incorrectly’ is closed to new replies.

 * ![](https://ps.w.org/kadence-woocommerce-email-designer/assets/icon-256x256.png?
   rev=3115863)
 * [Kadence WooCommerce Email Designer](https://wordpress.org/plugins/kadence-woocommerce-email-designer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kadence-woocommerce-email-designer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/)
 * [Active Topics](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/reviews/)

## Tags

 * [error bug](https://wordpress.org/support/topic-tag/error-bug/)

 * 4 replies
 * 2 participants
 * Last reply from: [jonasborneland](https://wordpress.org/support/users/jonasborneland/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/got-error-php-message-id-was-called-incorrectly/#post-16606472)
 * Status: not resolved