WooCommerce PDF Invoices 200: parsererror
-
Hello!
I’m trying to access PDF Invoices page from Woocommerce Extensions tab and I get this error 200: parsererror
Also, earlier I had an order paid with Stripe Payments and after setting the order to complete, when I clicked on the Invoice icon to download it I got this error:
Fatal error: Call to a member function get_upe_enabled_payment_method_ids() on nullCan you help me, please?
-
Hello @rpetrache
That seems more a Stripe plugin error, and not related to our plugin, see here. Do you have the stack trace of the error? You could see that under WooCommerce > Status > Logs > Fatal errors.
Hello and thanks for your reply! I’ve spoken with Stripe guys and they’ve told me everything is OK on their side. They received the payment so they pointed me to you since in the fatal error it’s mentioned woocommerce-gateway-stripe
This is the log message (I’ve replaced domain path with /domain.path/):
2022-07-31T14:07:19+00:00 CRITICAL Uncaught Error: Call to a member function get_upe_enabled_payment_method_ids() on null in /domain.path/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php:664 Stack trace: #0 /domain.path/wp-includes/class-wp-hook.php(309): WC_Stripe->checkout_update_email_field_priority(Array) #1 /domain.path/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array) #2 /domain.path/wp-content/plugins/woocommerce/includes/class-wc-countries.php(1616): apply_filters('woocommerce_bil...', Array, 'RO') #3 /domain.path/wp-content/plugins/kadence-woo-extras/lib/checkout_editor/kt-checkout-editor.php(831): WC_Countries->get_address_fields('RO', 'billing_') #4 /domain.path/wp-content/plugins/kadence-woo-extras/lib/checkout_editor/kt-checkout-editor.php(198): kt_checkout_editor->get_fields('billing') #5 /domain.path/wp-includes/class-wp-hook.php(307): kt_checkout_editor->order_billing_address_details_on_account_page('Client Name<br/...', Array, Object(Automattic\WooCommerce\Admin\Overrides\Order)) #6 /domain.path/wp-includes/plugin.php(191): WP_Hook->apply_filters('Lea Sabotic<br/...', Array) #7 /domain.path/wp-content/plugins/woocommerce/includes/class-wc-order.php(929): apply_filters('woocommerce_ord...', 'Client Name<br/...', Array, Object(Automattic\WooCommerce\Admin\Overrides\Order)) #8 /domain.path/wp-content/plugins/kadence-woocommerce-email-designer/templates/woo/emails/email-addresses.php(31): WC_Order->get_formatted_billing_address() #9 /domain.path/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/antivirus...') #10 /domain.path/wp-content/plugins/woocommerce/includes/class-wc-emails.php(589): wc_get_template('emails/email-ad...', Array) #11 /domain.path/wp-includes/class-wp-hook.php(309): WC_Emails->email_addresses(Object(Automattic\WooCommerce\Admin\Overrides\Order), false, false) #12 /domain.path/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #13 /domain.path/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #14 /domain.path/wp-content/plugins/kadence-woocommerce-email-designer/templates/woo/emails/customer-note.php(62): do_action('woocommerce_ema...', Object(Automattic\WooCommerce\Admin\Overrides\Order), false, false, Object(WC_Email_Customer_Note)) #15 /domain.path/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/antivirus...') #16 /domain.path/wp-content/plugins/woocommerce/includes/wc-core-functions.php(364): wc_get_template('emails/customer...', Array, '', '') #17 /domain.path/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-note.php(128): wc_get_template_html('emails/customer...', Array) #18 /domain.path/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(545): WC_Email_Customer_Note->get_content_html() #19 /domain.path/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-note.php(107): WC_Email->get_content() #20 /domain.path/wp-includes/class-wp-hook.php(307): WC_Email_Customer_Note->trigger(Array) #21 /domain.path/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #22 /domain.path/wp-includes/plugin.php(524): WP_Hook->do_action(Array) #23 /domain.path/wp-content/plugins/woocommerce/includes/class-wc-emails.php(170): do_action_ref_array('woocommerce_new...', Array) #24 /domain.path/wp-includes/class-wp-hook.php(307): WC_Emails::send_transactional_email(Array) #25 /domain.path/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #26 /domain.path/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #27 /domain.path/wp-content/plugins/woocommerce/includes/class-wc-order.php(1751): do_action('woocommerce_new...', Array) #28 /domain.path/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(1513): WC_Order->add_order_note('Hello Lea,\n\nYou...', 1, true) #29 /domain.path/wp-includes/class-wp-hook.php(307): WC_AJAX::add_order_note('') #30 /domain.path/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #31 /domain.path/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #32 /domain.path/wp-admin/admin-ajax.php(187): do_action('wp_ajax_woocomm...') #33 {main} thrown in /domain.path/wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php on line 664
-
This reply was modified 2 years, 11 months ago by
Robert.
Hi @rpetrache
The error doesn’t seem related to our plugin but with the WooCommerce Stripe Payment Gateway plugin instead. I think you already reported this same issue there and they provided you some sort of temporary solution here.
Yes, My bad. Sorry!
-
This reply was modified 2 years, 11 months ago by
- The topic ‘WooCommerce PDF Invoices 200: parsererror’ is closed to new replies.