I've migrated my server to AWS linux 2 and re-installed wkhtmltopdf. But when I run pdf in mydbr, it gave me error and error.log as below. (I've no problem running wkhtmltopdf in command line directly in linux console) Please kindly help
Thanks a lot.
[Tue Aug 18 03:03:18.830837 2020] [php7:error] [pid 3603] [client 99.228.141.151:53050] PHP Fatal error: Uncaught PHPExcel_Writer_Exception: PDF Rendering library has not been defined. in /var/www/vhosts/dreamware.com.hk/httpdocs/ischool/DBR/lib/external/phpExcel/PHPExcel/Writer/PDF.php:56\nStack trace:\n#0 /var/www/vhosts/dreamware.com.hk/httpdocs/ischool/DBR/lib/external/phpExcel/PHPExcel/IOFactory.php(141): PHPExcel_Writer_PDF->__construct(Object(PHPExcel))\n#1 /var/www/vhosts/dreamware.com.hk/httpdocs/ischool/DBR/lib/export.php(3568): PHPExcel_IOFactory::createWriter(Object(PHPExcel), 'PDF')\n#2 /var/www/vhosts/dreamware.com.hk/httpdocs/ischool/DBR/lib/export.php(3741): mydbrExport->output_excel()\n#3 /var/www/vhosts/dreamware.com.hk/httpdocs/ischool/DBR/apps/showReport.php(8765): mydbrExport->print_report('pdf')\n#4 /var/www/vhosts/dreamware.com.hk/httpdocs/ischool/DBR/report.php(473): unknown()\n#5 {main}\n thrown in /var/www/vhosts/dreamware.com.hk/httpdocs/ischool/DBR/lib/external/phpExcel/PHPExcel/Writer/PDF.php on line 56, referer: http://18.162.199.109/ischool/DBR/report.php?r=114&m=8&h=2e8fbc4458f2ecb083bed69b3b1bad470a798bca&export=pdf&i=1