VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: trevorbicewebdesign on September 19, 2015, 11:54:14 AM

Title: TCPDF error: Could not include font definition file
Post by: trevorbicewebdesign on September 19, 2015, 11:54:14 AM
Running VM 3.0.9.10, encountering the following error when trying to open an Order PDF from the Joomla / Virtuemart Admin

TCPDF error: Could not include font definition file

I am also receiving a another (likely related) error when trying to process an order on the front end.

[19-Sep-2015 04:07:39 CST6CDT] PHP Fatal error:  Call to undefined method VmVendorPDF::convertHTMLColorToDec() in /home/makuacof/public_html/jupgrade/components/com_virtuemart/helpers/vmpdf.php on line 129

I just tried re-installing the Virtuemart AIO in case that would clear the issue - it did not. Any chance someone else has solved this one before I start tracing code?
Title: Re: TCPDF error: Could not include font definition file
Post by: Milbo on September 19, 2015, 13:04:13 PM
Seems you run the old tcpdf version.
Title: Re: TCPDF error: Could not include font definition file
Post by: GJC Web Design on September 20, 2015, 10:07:03 AM
try installing  http://dev.virtuemart.net/attachments/download/896/com_tcpdf_1.0.0.zip
Title: Re: TCPDF error: Could not include font definition file
Post by: trevorbicewebdesign on September 21, 2015, 20:58:27 PM
Thanks for the tip, I'll try that next time. I wound up manually updating my TCPDF library instead. I suspect that VM did not update the old TCPDF library from my 1.18x installation during my Migration? Seems like a good idea to include a check in the updater to see if the local TCPDF library is up to date or at least compatible with the current version?