Article ID: 117312, created on Sep 17, 2013, last review on May 10, 2014

  • Applies to:
  • Business Automation

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.

Search Words

Allowed memory size

Download PDF

Error on executing external command

Allowed memory size of X bytes exhausted

198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF