Jump to content

pdfInvoice() function


Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated