PDF Templates no longer working

I have the same issue

I don’t think this 2017 thread will be helpful for people with PDF problems in 2021… it’s a separate issue. There are newer threads with this issue that you can search.

I am afraid I haven’t yet seen one with sufficiently technical information to be helpful for developers… it would be nice to see log messages, Javascript errors, call stacks…

In the php log the following error appears
[14-Nov-2021 13:39:38 UTC] PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\vendor\tecnickcom\tcpdf\include\tcpdf_static.php:1845
Stack trace:
#0 D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\vendor\tecnickcom\tcpdf\include\tcpdf_static.php(1899): TCPDF_STATIC::url_exists(‘http://127.0.0…’)
#1 D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\vendor\tecnickcom\tcpdf\tcpdf.php(24699): TCPDF_STATIC::file_exists(‘http://127.0.0…’)
#2 D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\vendor\tecnickcom\tcpdf\tcpdf.php(6926): TCPDF->fileExists(‘http://127.0.0…’)
#3 D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\vendor\tecnickcom\tcpdf\tcpdf.php(19068): TCPDF->Image(‘http://127.0.0…’, 16.060985797828, 17.060985797828, 0, 0, ‘’, ‘’, ‘B’, false, 300, ‘’, false, false, 0, false, false, true)
#4 D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\vendor\tecnickcom\tcpdf\tcpdf.php(18399): TCPDF->openHTMLTagHandler(Array, 2, true)
#5 D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\vendor\tecnickcom\tcpdf\tcpdf.php(5904): TCPDF->writeHTML(’{&quo…’, t in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\vendor\tecnickcom\tcpdf\include\tcpdf_static.php on line 1845

You need to install and enable the PHP curl extension.

:point_up: search for this error online, along with your OS name, to get help doing it

Curl is enabled.
Got it partially working by recreating the tables from the invoice