Hi @baperrou,
Are you aware if you are using a code snippet to customize your paper size and/or orientation?
Could you check the WooCommerce logs to see if there are errors with the wpo-wcpdf or fatal-errors prefix? If so, please share the logs with us. You’ll find the logs under WooCommerce > Status > Logs. See Where to find error logs
Also, go to WooCommerce > Status > System Status, click on Get system report, then click on Copy for support, paste it on https://pastebin.com/ (set a paste expiration for one week, just in case), and finally paste the pastebin.com link in your reply here.
Thanks Yordan. I did a search to see if I was using any custom sizes, I couldn’t find any. I will go to the errors now.
2023-02-09T06:50:53+00:00 CRITICAL Fatal error: Argument 2 passed to Dompdf\Dompdf::setPaper() must be of the type string, null given, called in /home/customer/www/dev.doitsimply.co.uk/public_html/chilli/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php on line 52 (/home/customer/www/dev.doitsimply.co.uk/public_html/chilli/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php:968)
https://pastebin.com/pNSYXmiG
My apology @baperrou, I was not able to check your system report on time, and it was already deleted (for any reason, some notifications from ww.wp.xz.cn went to the spam folder).
Could you please re-upload it on https://pastebin.com? Set a paste expiration for one week again: This time I’ll give priority to your case, and I make sure to check it and reply faster.
No problem Yordan. I had another investigation today. I realised that I was changing the paper orientation for some documents and was only returning the $paper_orientation variable sometimes, now always. hence the error. Thank you for pointing me in the right direction.
Beth
I’m glad to hear that you finally found the root of this issue 🙂
Let us know if you need anything else!