Bug with Woocommerce

Bug Released
October 24, 2020 14: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
October 25, 2020 06:24:18
E2Pdf
Topics: 7
Messages: 3617
Support
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!
October 26, 2020 00: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!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.