Hi all,
I’ve change hosting company and the new one has a higher php version (5.3.4) and now, when I try to save a pdf invoice, it returns a full page of error like these:
Deprecated: Assigning the return value of new by reference is deprecated in /home/…/public_html/lib/html2pdf/pipeline.factory.class.php on line 7
Deprecated: Assigning the return value of new by reference is deprecated in /home…/public_html/lib/html2pdf/pipeline.class.php on line 325
Deprecated: Assigning the return value of new by reference is deprecated in /home/…/public_html/lib/html2pdf/pipeline.class.php on line 451
Deprecated: Assigning the return value of new by reference is deprecated in /home/…/public_html/lib/html2pdf/pipeline.class.php on line 454
Deprecated: Assigning the return value of new by reference is deprecated in /home/…/public_html/lib/html2pdf/pipeline.class.php on line 589
Deprecated: Assigning the return value of new by reference is deprecated in /home/…/public_html/lib/html2pdf/pipeline.class.php on line 695
and it keeps going and going and at the end of the page it puts a lot of symbols like:
-Zg�������x�`�17E��r��|4&����Y��k/�jI�����a�ކ��#tM����6h�3�/B�� id{?�M>�UY�i�3kg}x�I�[�����nO�:�?�P� endstream endobj 6 0 obj << /Type /Annot /Subtype /Link /Rect [207.25 663.23 273.53 656.48] /Border [0 0 0] /A <> >> endobj 7 0 obj << /Type /Annot /Subtype /Link /Rect [167.67 608.15 235.66 601.39] /Border [0 0 0] /A <> >> endobj 1 0 obj <> endobj 9 0 obj << /Type /Encoding /BaseEncoding /WinAnsiEncoding /Differences [128 /u0080 /u0081 /u0082 /u0083 /u0084 /u0085 /u0086 /u0087/u0096 /u0097 /u0098 /u0099 /u009A /u009B /u009C /u009D /u009E /u009F] >> endobj 3 0 obj << /Length 3653 >> stream /CIDInit /ProcSet findresource begin 12 dict begin begincmap CIDSystemInfo << /Registry (Adobe) /Ordering (UCS) /Supplement 0 >> def /CMapName /Adobe-Identity-UCS def /CMapType 2 def 1 begincodespacerange <0000> endcodespacerange 256 beginbfchar <00> <0000> <01> <0001> <02> <0002> <03> <0003> <04> <0004> <05> <0005> <06> <0006> <07> <0007> <08> <0008> <09> <0009> <0A> <000A> <0B> <000B> <0C> <000C> <0D> <000D> <0E> <000E> <0F>
does someone have any idea why and how to solve it?
Thank you,
Tania
html2pdf does not work with PHP 5.3+ and CS doesn’t want to fix the problem, been their done that - Sno
From what I could investigate, the problem resides in the & symbol because it’s obsolete for 5.3 php versions, the problem is I don’t know in what file to change that. Still waiting for a knight in a shining armour to come and rescue me from this deprecated problem
What version of the cart are you running? You should have this in your config.local.php file
if (version_compare(PHP_VERSION, "5.3.0", ">=")) {
error_reporting(error_reporting() & ~E_DEPRECATED);
}
While it won’t fix the warnings, it will not annoy you with them. Note, they are Warnings and not Errors.
Thanks tbirnseth, I already replied to you on another thread But yes, it seems you are right