Author Topic: Shop sends no email as it is unable to display invoices  (Read 539 times)

Stefan Korth

  • Jr. Member
  • **
  • Posts: 51
Shop sends no email as it is unable to display invoices
« 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8873
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Shop sends no email as it is unable to display invoices
« Reply #1 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 ?
GJC Web Design
VirtueMart and Joomla Developers - php developers
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
Contact for any VirtueMart or Joomla development & customisation


  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27387
  • Always on vacation
    • Jenkin Hill Internet
Re: Shop sends no email as it is unable to display invoices
« Reply #2 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/

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM on Joomla 3.9.6 PHP 7.0.33
Testing VM on Joomla 3.9.6


  • Jr. Member
  • **
  • Posts: 58
Re: Shop sends no email as it is unable to display invoices
« Reply #3 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:
- Unpack it.
- Using the Joomla installer, install the ZIP-file:
- After install. Check if you can generate invoices in VirtueMart.