Hi there,
On a new site install we have a rule that sends PDF tickets when an order is complete, the tickets are being sent but there is an error message shown and the following comes up in the logs:
Warning: imagepng(/tmp/commerce_event_ticket/pdf-cache__tcpdf_imgmask_alpha_64656c0b18cb3393006638dcf7d8669d): failed to open stream: Permission denied in TCPDF->ImagePngAlpha() (line 7333 of /sites/all/libraries/tcpdf/tcpdf.php).
Warning: imagecreatefrompng(/tmp/commerce_event_ticket/pdf-cache__tcpdf_imgmask_alpha_64656c0b18cb3393006638dcf7d8669d): failed to open stream: No such file or directory in TCPDF->Image() (line 7067 of /sites/all/libraries/tcpdf/tcpdf.php).
Warning: unlink(/tmp/commerce_event_ticket/pdf-cache__tcpdf_imgmask_plain_64656c0b18cb3393006638dcf7d8669d): No such file or directory in TCPDF->ImagePngAlpha() (line 7359 of /sites/all/libraries/tcpdf/tcpdf.php).
I figured it was a permission issue but cannot see any problems.
Thanks,
Comments
Comment #1
pjcdawkins commentedIt's an error in generating the PDF in the first place. The module is trying to add the site logo to the PDF and that is producing the permission error. Perhaps try visiting the PDF configuration (admin/commerce/event-ticket/PDF) and unchecking the logo option, does the error go away?
Comment #2
gc11 commentedThanks for this. It was a folder permission error.