VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Stefan Korth on December 06, 2018, 12:37:41 PM

Title: Shop sends no email as it is unable to display invoices
Post by: Stefan Korth on December 06, 2018, 12:37:41 PM
Hi, I have the most current joomla and VM versions running. In October our hoster deactivated PHP5x, and so I switched to 7.1 for the shop. Since suddenly I received no notifications anymore when someone was buying. I looked into it, and realized it also is unable to display the invoice both in front end and in back end.

when completing an order, I get a failure notice: "TCPDF ERROR: Could not include font definition file: helvetica".

I have since updated both Joomla and VM to the most current versions ( I lagged one version behind), hoping that that would solve it. Nothing changed.


When turning on PHP developer mode, the error is displayed like this:

Notice: Use of undefined constant JPATH_VM_LIBRARIES - assumed 'JPATH_VM_LIBRARIES' in /data/web/1/000/017/312/23124/htdocs/drumstore3/libraries/tcpdf/config/tcpdf_config.php on line 51

Warning: opendir(JPATH_VM_LIBRARIES/tcpdf/fonts/): failed to open dir: No such file or directory in /data/web/1/000/017/312/23124/htdocs/drumstore3/libraries/tcpdf/tcpdf.php on line 4154
TCPDF ERROR: Could not include font definition file: helvetica

strange though, both directories exist, and the files too. I have uploaded new ones via FTP to check if they were corrupted, but nothing changed.

I yesterday gave the issue to a programmer who looked into it for several hours, charged me a lot of money and could not solve it. His solution would be seting up the whole store new. Not sure how much he would charge me for that. But he certainly has no experiences with VM despite what he said.

So maybe someone here has stumbled over this issue and might be helpful.
Title: Re: Shop sends no email as it is unable to display invoices
Post by: GJC Web Design on December 06, 2018, 12:46:44 PM
and have u upgraded to the latest versions? we see all the time "latest versions" but often they are not!



have u installed  http://dev.virtuemart.net/attachments/download/1137/com_tcpdf_1.0.5.zip ?
Title: Re: Shop sends no email as it is unable to display invoices
Post by: jenkinhill on December 06, 2018, 13:09:27 PM
Something is certainly "old" on your VM installation as it is looking for TCPDF in the wrong place. With current versions TCPDF is installed in libraries/vendor/tecnickcom/tcpdf  and not /libraries/tcpdf/
Title: Re: Shop sends no email as it is unable to display invoices
Post by: Three_d on March 15, 2019, 10:16:52 AM
I had the same problem after the update to Virtuemart 3.4.2.
When I finally discovered that it only happened when an invoice had to be generated, I ended up with my search for TCPDF.

To help others:
- Download in this example: http://dev.virtuemart.net/attachments/download/1144/com_virtuemart.3.4.2.9966_package_or_extract.zip
- Unpack it.
- Using the Joomla installer, install the ZIP-file: com_tcpdf_1.0.5.zip
- After install. Check if you can generate invoices in VirtueMart.