News:

Support the VirtueMart project and become a member

Main Menu

TCPDF Error

Started by Mooncastyre, October 08, 2018, 08:27:26 AM

Previous topic - Next topic

Mooncastyre

Hello!

I am building a Virtuemart site on a new install.  I am setting up the beginning configuration and shop settings.

I am at the Invoices/Emails tab under SHOP>Shop trying to get my invoices configured and previewed.  I click on the preview page ("Here you can configure the look of invoices, delivery notes etc. You can take a look at a preview page (after saving the changes) HERE.")

This gives me a TCPDF error:

vmError: vmPdf: For the pdf, you must install the tcpdf library at /home/sassafrasmoon/public_html/libraries/tcpdf

I installed TCPDF with Virtuemart.  But just to be sure, I also extracted the Virtuemart installer and installed the file com_tcpdf_1.0.5.zip in my Joomla backend.  I'm getting the confirmation that TCPDF is installed.  But I'm still receiving the error.  I double checked my components list, and TCPDF is indeed installed.

Any idea why I would be receiving this error and how I can fix it?

Joomla Version:  3.8.12
Virtuemart Version:  3.4.1
PHP Version:  5.6.38

I am using a Joomlashine template called JSN Kido 2, which features Virtuemart styling.

My site is not yet live, but is currently being built at sassafrasmoon.com

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
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
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation

Milbo

Hmm

public function samplePDF() {
if(!class_exists('VmVendorPDF')){
vmError('vmPdf: For the pdf, you must install the tcpdf library at '.VMPATH_LIBS.'/tcpdf');
return 0;
}

$pdf = new VmVendorPDF();
$pdf->AddPage();
$pdf->PrintContents(vmText::_('COM_VIRTUEMART_PDF_SAMPLEPAGE'));
$pdf->Output("vminvoice_sample.pdf", 'I');
JFactory::getApplication()->close();
}

I must admit, I did not update this function, i thought it is deprecated. It checks for a wrong path
Should I fix your bug, please support the VirtueMart project and become a [url=http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail]member[/url]
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Mooncastyre

Quote from: Milbo on October 08, 2018, 11:48:49 AMI must admit, I did not update this function, i thought it is deprecated. It checks for a wrong path

Thank you for the quick reply!  Will there be a fix released soon?

caesarsk

#4
is it solved in version 3.4.2? is there a solution for version 3.2.14?

//edit
This error appeared after updating TCPDF on VM v3.2.14. The /libraries/tcpdf folder also disappeared (therefore, VM can not find this folder).

GJC Web Design

I  have no such problems on my sites -- VM3.4.2

u can always simply install the tcp directly

http://dev.virtuemart.net/attachments/download/1137/com_tcpdf_1.0.5.zip
GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
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
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation

caesarsk

yes, but...

I do not know what version was originally installed on my the system (VM3.2.14). J! update offered me an update TCPDF, so I updated. Immediately afterwards it proved this error. the first thing I thought was to go back to the previous version of TCPDF from VM3.2.14. Unfortunately, the error remained.

GJC Web Design

lost me -- just update to all most recent stable -- tcp vm 5 - vm3.4.2
GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
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
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation

caesarsk

advice from you is nice, but updating VM for me means a lot of work.

GJC Web Design

um - why?

for all my sites I maintain an up to date clone .. and test upgrades on that -
GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
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
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation

caesarsk

big shop, own extensions, a few core hack hits.

but, after update to v3.4.2 it is solved

Milbo

 ::) definitly the right decision. and nice that the fix worked. and as you read already here http://forum.virtuemart.net/index.php?topic=141282.0 you can override core function and keep them when you update. But it is still dangerous. you should always compare the new file to the old, even if anything is still running.
Should I fix your bug, please support the VirtueMart project and become a [url=http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail]member[/url]
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

netfactory

joomla 3.9 VM3.4.2

vmError: vmPdf: For the pdf, you must install the tcpdf library
i install the tcpdf (com_virtuemart.3.4.2.9966_package_or_extract.zip)

GJC Web Design

If that is from clicking the "preview invoice" link in the admin invoice tab afaik this is broken  ( so ignore) ..
GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
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
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation

Milbo

Should be fixed in the vm3.4.3
Should I fix your bug, please support the VirtueMart project and become a [url=http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail]member[/url]
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/