Symptoms
- The notification was sent but its PDF version was not attached to the email.
Attempt to download PDF version of the AR Document (invoice, payment, etc) fails with an error:
"Error on executing external command: "
In MESSAGE.log there is an exception:
PHP Notice: Undefined index: scalepoints in /usr/local/html2pdf/pipeline.class.php on line 649
Cannot open
PHP Fatal error: Allowed memory size of X bytes exhausted (tried to allocate X bytes) in /usr/local/html2pdf/box.generic.php on line 98
...[1] *** INTERRUPTED BY EXCEPTION *** virtual RealBlob bEmailMessage::convertHTML2PDF(Str)
Cause
The memory_limit setting does not meet the requirement for PDF generation to complete.
Resolution
The limit is defined by the function ini_set in
/usr/local/html2pdf/html2pdf.sh
Increase the value of 'memory_limit', test different values to determine the appropriate one.