Qhiliqq Posted July 14, 2023 Share Posted July 14, 2023 Hi together, I use the pdfInvoice() function in a hook to send invoices to my bookkeeping. Since my update to PHP 8.1 and WHMCS 8.7.3 the function just creates a blank pdf. Any ideas? function will be called like: $pdfdata = pdfInvoice($invoice_id); file_put_contents($invoice_id.'.pdf', $pdfdata); Regards Philipp 0 Quote Link to comment Share on other sites More sharing options...
Qhiliqq Posted July 26, 2023 Author Share Posted July 26, 2023 (edited) Or is there a other function to generate invoice pdfs in a hook/script? //EDIT: CLOSED: It was a failing module. Edited July 26, 2023 by Qhiliqq 0 Quote Link to comment Share on other sites More sharing options...
Qhiliqq Posted August 29, 2023 Author Share Posted August 29, 2023 So after a few weeks the same error still exists... If I run the hook again, the PDF will be created as usual. If the hook runs first time, a empty PDF will be generated... I try to use the pdfInvoice function in a InvoicePaid hook. This way it should generate a pdf invoice after marking the invoice as paid. This worked before upgrading to PHP8.1 and WHMCS 8.7.3 as a charme. Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.