Error downloading invoice PDF

Good Day all!

I’m just getting started with playing around with IP 1.4.7 and so far I like what I see. The biggest problem I’m running into so far is that I’m unable to download a PDF of an invoice and e-mailing it as well. It seems to be failing whenever the PDF is attempting to be generated. I’ve turned on PHP errors and I get the following when clicking on “Download PDF”.

Parse error: syntax error, unexpected ‘[’ in /var/www/billing/application/helpers/mpdf/mpdf.php on line 9407

I’ve searched through the forum and not found this exact issue. Any help would be much appreciated.
Thank you!

Could you please verify that the file you have is exactly this file?
Because this is a syntax error that can’t be caused by any user input or configuration.

1 Like

I do, I did even copy the contents of that file you linked too and created a new mpdf.php after backing up my old one and I’m getting the same error.

The MD5 hash for that file is: 971f04fcbb8b5a3cad37a464918a3b2a

Thanks for your help!

I retract my statement, I had transferred this to a linux box and it was on PHP5.3. I updated it and viola!

Sorry to have caused the grief!
All is good now, thanks again for this system!