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