• Hello,
    In my WP debug log I got a lot of this warning:
    id was called incorrectly.
    Order properties should not be accessed directly.

    Backtrace:
    	do_action('wp_ajax_print_order'),
    	WP_Hook->do_action,
    	WP_Hook->apply_filters,
    	WCDN_Print->template_redirect_admin,
    	WCDN_Print->generate_template,
    	wc_get_template,
    	include('/plugins/woocommerce-delivery-notes/templates/print-order/print-order.php'),
    	do_action('wcdn_loop_content'),
    	WP_Hook->do_action,
    	WP_Hook->apply_filters,
    	wcdn_content,
    	wcdn_get_template_content,
    	wc_get_template,
    	include('/plugins/woocommerce-delivery-notes/templates/print-order/print-content.php'),
    	apply_filters('wcdn_order_info_fields'),
    	WP_Hook->apply_filters,
    	print_custom_order_fields,
    	WC_Abstract_Legacy_Order->__get,
    	wc_doing_it_wrong.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ucsendre

    (@ucsendre)

    Print Invoice & Delivery Notes for WooCommerce version: 4.6.5
    WooCommerce version: 6.7.0
    WordPress version: 6.0.1
    PHP version: 7.4.30

    moksha shah

    (@mokshasharmila13)

    Hi @ucsendre,

    We tried all these versions on our site but the issue does not replicate. We couldn’t upgrade PHP version: 7.4.30 but we have checked this issue in PHP version: 7.4.1 and PHP version 8.0.0.

    Regards,
    moksha.

    Thread Starter ucsendre

    (@ucsendre)

    Hi @mokshasharmila13
    It is not a PHP error, it is about the function you are using to access order data.
    A lot of these functions are outdated and considered wrong by woocommerce since version 3.0
    Do you have wordpress debugging enabled? Please check wordpress debug.log file.
    Thanks and regards,
    Endre

    moksha shah

    (@mokshasharmila13)

    Hi @ucsendre,

    I am not suggesting that it is a PHP error. We were just letting you know that we tried different PHP versions but we don’t see those error messages.

    Yes, the debug mode is enabled and we are checking in the WordPress debug.log file.

    Can you tell me when you see this error? Is it when a particular action is initiated?

    Regards,
    moksha.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WooCommerce error: id was called incorrectly’ is closed to new replies.