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.
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 ?
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/
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.