News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Shop sends no email as it is unable to display invoices

Started by Stefan Korth, December 06, 2018, 12:37:41 PM

Previous topic - Next topic

Stefan Korth

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

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 ?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

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/
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

Three_d

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.