Symptoms

Attempt to download PDF version of the AR Document (invoice, payment, etc) fails with an error:

"Error on executing external command: <pdf_conversion_command>"

In the MESSAGE.log file on the PBA Application Server (a.k.a. PBA Management Node) there is an exception:

PHP Notice:  Undefined index:  scalepoints in /usr/local/html2pdf/pipeline.class.php on line 649
Cannot open
PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /usr/local/html2pdf/css.property.handler.class.php on line 30
...[1] *** INTERRUPTED BY EXCEPTION *** virtual RealBlob bEmailMessage::convertHTML2PDF(Str)

Cause

PHP settings do not meet the requirements for PDF generation to complete - 30 seconds is not enough to generate some big PDF documents (e.g. the reseller's invoices consisting of many details).

Resolution

Increase the max_execution_time parameter in the php.ini file on the PBA Application Server:

  1. Find the php.ini that is used by the system:

    php -i |grep php.ini
    
  2. Edit the max_execution_time parameter value in the php.ini.

Internal content