Print As PDF Error

So when using one of the default templates in the system for a quote when clicking print as PDF downloads the PDF file to my computer. However if you try to open the PDF file in anything but Microsoft edge you get a erorr and the PDF won’t open in chrome or in just adobe pdf reader. If you goto the PDF itself inside of notepad there are a bunch of PHP errors at the top of the file. I added this line to my php.ini “error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED” However that did not fix it even after a quick repair. Anyone have any ideas on how to fix this issue? I am using the latest version of the software.

Here are the errors in notepad when viewing the pdf

<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in 

Thanks!

I’ve seen this error, and I was waiting for it to appear again so we can take this in the direction of a solution.

Can you reproduce it in the live demo? I would need the exact data and steps to reproduce this error on our end, so we can fix it… thanks

So I went into the live demo created a PDF template for quotes, created a test product, then went to quotes section which looks slightly different now as I’m on version 7.11.0 and not the latest you just released however I then went to “Print as PDF” the PDF downloaded and it actually worked. So should I try updating my version or what could be the issue on my setup?

I think you probably got a warning during the last upgrade telling you to run “composer install” but disregarded it. This may happen because the text in that warning is not very clear :huh:

If you can please run “composer install” you will get upgrades to 3rd party components, including the PDF generator. Let’s see if that changes anything…

I had tried this previously and it did nothing but caused the app to crash more often. So I rolled back to a previous version but now when I type that again it just says composer not found but can be installed with apt install composer… however like i said I tried this before and it just lead to more crashes.

Sorry, I was giving wrong instructions, the correct command is “composer install”, not “composer update” (which breaks SuiteCRM…!)

If necessary (after the proper backups), you can try a full reset by

  • renaming the “vendor” directory that composer creates (later you can delete it)
  • running “composer install --no-dev” to get everything fresh

I did your instructions and then restarted apache2. and still get “Failed to load PDF document” when i click to open the PDF after downloading it when trying to open it with chrome. If I try to open it with adobe acrobat pdf pro it does the same thing. The only program that will open it is Microsoft edge and absolutely no one uses that.

If you open it in notepad you see all these errors at the top of the file:

<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  count(): Parameter must be an array or an object that implements Countable in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>1760</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32025</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32025</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Cannot assign an empty string to a string offset in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1070</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1146</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1150</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1349</b><br />
<br />
<b>Warning</b>:  Illegal string offset 'ID' in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line <b>1353</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32025</b><br />
<br />

Same as before. Any other suggestions??

Oh and I am on the latest version 11.7.2 just in case your wondering.

Thanks,
Robert

Hi. I would very much like to be able to replicate this “PHP warnings inside PDF” issue in my server so I can go about fixing it. I have seen several people complaining in the past weeks, there is definitely a bug here somewhere, but so far I no one has been able to provide a list of “steps to reproduce” that I can use.

Can you get me that, please?

And tell me also which is your OS and PHP version. Thanks!

Here is the information you requested:

OS Ubuntu -version - 18.10
PHP - version - 7.2
Suitecrm - 11.7.2 (newest)

  • Created a PDF template for quotes or even while using one of your system templates.
  • Created a test product,
  • Inside of quotes section
  • Click on “Print as PDF” the PDF
  • PDF downloads and then will not open in chrome or in Adobe PDF
  • Only will open in Microsoft edge.
  • If you open it in notepad you see the errors at the top of document which I have previously posted.

Sorry, those steps for me generate a perfectly valid PDF, no warnings here when I open it in Notepad :frowning:

This is the problem in one of our dependencies:

https://github.com/mpdf/mpdf/issues/278

It’s probably happening only to people who have a new version of PHP (>= 7.1) and an old version of mPDF.

But I don’t see how those could be different between my installation and yours. So there migth an additional factor at play here.

what should I do to try to resolve that issue with that dependency or what might be the best course of action to try as a next step in fixing on my end?

If you want you can try adding this change in line 1065 of modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php

https://github.com/salesagility/SuiteCRM/compare/master...pgorod:patch-10

That’s just a hack. The proper fix is for us to upgrade mPDF to a much newer version, but that involves some extra work…

Anyway please tell me if it fixes it for you.

I had the adjustment to the code in that file but still end up with it saying a error when trying to open the PDF in either chrome or pdf reader.

here is the updated output in the top of the file from notepad:

<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  count(): Parameter must be an array or an object that implements Countable in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>1760</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32025</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32025</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32025</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in <b>/var/www/html/suitecrm/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line <b>32062</b><br />
<br />
<b>Warning</b>:  A non-numeric value encountered in 

I dont see any of the cssmgr errors however I see a lot of the mpdf error on top of the file. Do you have a workaround for this also so that maybe it will open?

I could go chasing each of those bugs, but It’s hard to make this work without upgrading mPDF.

To solve your problem you could downgrade your PHP to before 7.1, or else (and this is probably easier) edit your php.ini to lower the warning levels.

error_reporting = E_ALL & ~E_WARNING  & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

i wouldn’t normally recommend hiding warnings, but if it solves your problem for now, until a better fix is done…

Ok thanks! That finally fixed it in combination with the previous adjustment we made to the code. However I will have to remember this was done whenever we upgrade on your next release.

For reference, I opened an issue here for the long-term solution:

https://github.com/salesagility/SuiteCRM/issues/7111

Having the same issue and unfortunately, the hosting service does not allow going back to an older php version. Lowering warning levels doesn’t appear to solve the issue for me. What else to try until the long term solution is implemented?

See if this helps

I’m also having the same issue. can anyone pls tell me a suggestion?