Just like title says, I'm trying to save invoices as PDFs. Whenever I use the Print as PDF option, the output is un-openable (Acrobat says it's been damaged). When I use the E-Mail PDF option, the output is fine.
On the Invoice page, I'm getting some php warnings:
Notice: Undefined variable: module_sub_panels in /srv/http/suitecrm/include/SubPanel/SubPanelTiles.php on line 402
Warning: array_map(): Expected parameter 2 to be an array, null given in /srv/http/suitecrm/include/SubPanel/SubPanelTiles.php on line 402
My logs are kind of a mess, I'm getting the same error hundreds of times (up to 4 times per second):
Tue Feb 12 15:44:03 2019 [26955][1][ERROR] Pop error level. Try to remove the error_reporting() function from your code.
but other than that I can't see anything specific about PDF errors.
Any ideas on getting readable PDFs or on resolving the pop error?