• Hi

    Could you please look at fixing this error in your plugin? ??

    [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)
  • 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

    (@jonasborneland)

    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.php
    On 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

    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

    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

    (@jonasborneland)

    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.