502 error returned when printing invoice
-
Hi,
So we’re having repeated problems using your plugin.
Essentially clicking the “Print Invoice” button within the Order CMS is presenting the user with a print window showing a 502 Bad gateway error.
Our error logs are below:
2021/01/13 15:04:13 [error] 31480#31480: *4312826 FastCGI sent in stderr: “PHP message: 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, add_custom_fields_to_invoice, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
PHP message: 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, add_custom_fields_to_invoice, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
PHP message: 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_templatThis seems to be an issue with the plugin files and using incorrect / deprecated methods.
We’re using the most recent version of the plugin available to us which is 4.6.2.
Wordpress version 5.6.
Do you have any plans to resolve these issues? The plugin is currently unusable.
The topic ‘502 error returned when printing invoice’ is closed to new replies.