Bug with Woocommerce

Bug Released
24 October, 2020 07:14:44
jstraete
Topics: 34
Messages: 111
So I have been having an issue on my website over about the past month (likely since the latest e2pdf plugin update) where an order or two a day will have an issue where the payment goes through, but the customer thinks it doesn't as they aren't taken to the Order Received page and it just shows instead what looks like an error on the payment page after trying to place the order: https://snipboard.io/SUtwyR.jpg

After troubleshooting this with Woocommerce support, they noted the logs showing the issue being with the e2pdf plugin, and it's occurring when backordered items are placed on the order. They recommended that I disable the option to receive notifications when items go out of stock on the site in the meantime, which I have (I already had it set to not receive notifications for low stock, which may have caused this issue also). To test for sure, I placed an order for a backordered item that previously gave me that error after disabling the e2pdf plugin, and it then went through successfully.

I asked them what I can send you to fix the conflict on the e2pdf plugin, and this is what they gave me:

"If you send them the full error message, they should be able to resolve the issue based on this:

2020-10-24T12:19:33+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_items() in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php:298 Stack trace: #0 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): Extension_E2pdf_Woocommerce->filter_woocommerce_email_attachments(Array, 'no_stock', Object(WC_Product_Simple), NULL) #1 /home/jstraete/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #2 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(661): apply_filters('woocommerce_ema...', Array, 'no_stock', Object(WC_Product_Simple), NULL) #3 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): WC_Emails->no_stock(Object(WC_Product_Simple)) #4 /home/jstraete/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #5 /home/jstraete/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array) #6 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php on line 298"

Here is the full error log for reference:

2020-10-24T03:39:18+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_items() in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php:298
Stack trace:
#0 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): Extension_E2pdf_Woocommerce->filter_woocommerce_email_attachments(Array, 'no_stock', Object(WC_Product_Simple), NULL)
#1 /home/jstraete/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(661): apply_filters('woocommerce_ema...', Array, 'no_stock', Object(WC_Product_Simple), NULL)
#3 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): WC_Emails->no_stock(Object(WC_Product_Simple))
#4 /home/jstraete/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#5 /home/jstraete/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#6 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php on line 298

2020-10-24T03:39:59+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_items() in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php:298
Stack trace:
#0 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): Extension_E2pdf_Woocommerce->filter_woocommerce_email_attachments(Array, 'no_stock', Object(WC_Product_Simple), NULL)
#1 /home/jstraete/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(661): apply_filters('woocommerce_ema...', Array, 'no_stock', Object(WC_Product_Simple), NULL)
#3 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): WC_Emails->no_stock(Object(WC_Product_Simple))
#4 /home/jstraete/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#5 /home/jstraete/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#6 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php on line 298

2020-10-24T03:42:08+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_items() in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php:298
Stack trace:
#0 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): Extension_E2pdf_Woocommerce->filter_woocommerce_email_attachments(Array, 'no_stock', Object(WC_Product_Simple), NULL)
#1 /home/jstraete/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(661): apply_filters('woocommerce_ema...', Array, 'no_stock', Object(WC_Product_Simple), NULL)
#3 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): WC_Emails->no_stock(Object(WC_Product_Simple))
#4 /home/jstraete/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#5 /home/jstraete/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#6 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php on line 298

2020-10-24T03:44:58+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_items() in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php:298
Stack trace:
#0 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): Extension_E2pdf_Woocommerce->filter_woocommerce_email_attachments(Array, 'no_stock', Object(WC_Product_Simple), NULL)
#1 /home/jstraete/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(661): apply_filters('woocommerce_ema...', Array, 'no_stock', Object(WC_Product_Simple), NULL)
#3 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): WC_Emails->no_stock(Object(WC_Product_Simple))
#4 /home/jstraete/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#5 /home/jstraete/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#6 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php on line 298

2020-10-24T03:46:53+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_items() in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php:298
Stack trace:
#0 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): Extension_E2pdf_Woocommerce->filter_woocommerce_email_attachments(Array, 'no_stock', Object(WC_Product_Simple), NULL)
#1 /home/jstraete/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(661): apply_filters('woocommerce_ema...', Array, 'no_stock', Object(WC_Product_Simple), NULL)
#3 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): WC_Emails->no_stock(Object(WC_Product_Simple))
#4 /home/jstraete/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#5 /home/jstraete/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#6 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php on line 298

2020-10-24T06:49:22+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_items() in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php:298
Stack trace:
#0 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): Extension_E2pdf_Woocommerce->filter_woocommerce_email_attachments(Array, 'no_stock', Object(WC_Product_Simple), NULL)
#1 /home/jstraete/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(661): apply_filters('woocommerce_ema...', Array, 'no_stock', Object(WC_Product_Simple), NULL)
#3 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): WC_Emails->no_stock(Object(WC_Product_Simple))
#4 /home/jstraete/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#5 /home/jstraete/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#6 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php on line 298

2020-10-24T12:17:02+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_items() in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php:298
Stack trace:
#0 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): Extension_E2pdf_Woocommerce->filter_woocommerce_email_attachments(Array, 'no_stock', Object(WC_Product_Simple), NULL)
#1 /home/jstraete/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(661): apply_filters('woocommerce_ema...', Array, 'no_stock', Object(WC_Product_Simple), NULL)
#3 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): WC_Emails->no_stock(Object(WC_Product_Simple))
#4 /home/jstraete/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#5 /home/jstraete/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#6 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php on line 298

2020-10-24T12:19:33+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Product_Simple::get_items() in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php:298
Stack trace:
#0 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): Extension_E2pdf_Woocommerce->filter_woocommerce_email_attachments(Array, 'no_stock', Object(WC_Product_Simple), NULL)
#1 /home/jstraete/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(661): apply_filters('woocommerce_ema...', Array, 'no_stock', Object(WC_Product_Simple), NULL)
#3 /home/jstraete/public_html/wp-includes/class-wp-hook.php(287): WC_Emails->no_stock(Object(WC_Product_Simple))
#4 /home/jstraete/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#5 /home/jstraete/public_html/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#6 /home/jstraete/public_html/wp-content/plugins/woocommerce/includes/class-wc in /home/jstraete/public_html/wp-content/plugins/e2pdf/classes/extension/e2pdf-woocommerce.php on line 298
24 October, 2020 23:24:18
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

We are sorry for inconvenience.

We just released a hot-fix (1.13.04) which must solve current error. Please update plugin to latest version and let us know please if issue resolved. Thank you.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
25 October, 2020 17:20:26
jstraete
Topics: 34
Messages: 111
I would say that this issue is now resolved as I had someone place an order earlier today that had the issue initially stated, then I updated the plugin, and then I replicated their order and it processed successfully. If I happen to have any further issues I will let you know. Thanks!