Woocommerce Backorders Issue

Bug Released
15 March, 2021 00:47:49
jstraete
Topics: 34
Messages: 111
I am having an issue with orders on Woocommerce being placed when the item is ordered as a Backordered product. Apparently the customers on the front end when placing the order will get an error message and the order will go through unknown to them, and then on the backend the "Refund via Woocommerce Payments" button isn't visible for me to refund the duplicate orders. I had this issue once before here: https://e2pdf.com/support/desk/bug-with-woocommerce

When working with Woocommerce support on this latest issue and sending them the fatal errors log, this was their response:
---
If you search that error log for the order id 562919 you will find:
2021-03-13T15:58:26+00:00 CRITICAL Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string,
Likewise, searching 562827 surfaces the same thing with a different timestamp:
2021-03-13T14:16:05+00:00
I have since made that change. However, I still don’t see the “Refund via Woocommerce Payments” button option available on my backordered item orders
Right. The cause of the button missing is, I suspect, missing data that is directly caused by the fact that a fatal error occurred during the processing of the order by WooCommerce. Resolving any errors won't restore that data.
Anyhow, the above errors are related to the same plugin that you mentioned before, i.e. e2PDF. The code of that plugin is passing an array value where the value should be of a type object or string. This, in turn, is causing corrupted/incomplete data stored in the order which results in a missing refund button. Please do contact their support team for resolution or disable that plugin.
---
So, you can see in their response that they believe my current issue is related to the e2PDF plugin here. If you could look into this and see if there is anything that can be done to resolve it or if you need anything else from me to troubleshoot that'd be great.

Thanks,

Jesse
15 March, 2021 07:36:32
E2Pdf
Support
Topics: 7
Messages: 3345
Hi,

We just released an update 1.13.07 (RC 1.14.06) which must solve the issue. It's connected with PHP8. Please update plugin and let us know please if issue resolved. Thank you.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
15 March, 2021 10:56:27
jstraete
Topics: 34
Messages: 111
Yes it appears to be fixed now, thanks!