We recently upgraded MyDBR to version 4.5.1 however following that upgrade we are now experiencing an error when trying to view a PDF report.
Following the upgrade we updated both Ion Cube and Chart Director however we seem to be having issues with wkhtmltopdf.
The error on screen is:
There was an error (code:11) producing the pdf document
Failed command: wkhtmltopdf -q --header-html https://atm-reporting.powerplaydestination.com/whr/user/export_header_pdf.php --margin-top 20 --header-spacing 8 /tmp/mydbr_export_1025719429.html -
The Apache logs show the following:
'QPixmap: Cannot create a QPixmap when no GUI is being used' when trying to generate the pdf
I googled for that and it suggested an upgrade to wkhtmltopdf but I tried version 0.10.0_rc2 and it has the same issue.
That said, I am able to run wkhtmltopdf from the command line without error - generates a PDF perfectly as expected.
Any ideas on what could be happening? Not sure where to go from here.