Error when printing PDF Invoice

This is the error that I get when I go print PDF invoice as admin or user.

Parse error: syntax error, unexpected T_VARIABLE in /home/issy/public_html/lib/html2pdf/ on line 83

This is line 83 in

// Check if there’s any data between and

$html = preg_replace(“#({$close})(.+)({$chtml})#is”,“\2\1\3”,$html);

Any ideas?

Thanks in advance.

If you're using 2.2.4, I would upload a fresh file. I am showing that the lines of code you posted are on line 91 & 92.

Thank you!!

That fixed the problem, I updated the cart from 2.2.3 to 2.2.4 through the upgrade center, I'm wondering if the upgrad was done correctly!!

How would I make sure I have all the 2.2.4 files?


Typical upgrade.

The only way is to compare the directories/files to a fresh install. I use Beyond Compare for doing this. Others use WinMerge.