Author Topic: TCPDF Error  (Read 275 times)

Mooncastyre

  • Beginner
  • *
  • Posts: 7
  • VirtueMart Version: 3.4.2
TCPDF Error
« on: October 08, 2018, 08:27:26 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8200
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: TCPDF Error
« Reply #1 on: October 08, 2018, 10:34:01 am »
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9667
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: TCPDF Error
« Reply #2 on: October 08, 2018, 11:48:49 am »
Hmm
Code: [Select]
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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Mooncastyre

  • Beginner
  • *
  • Posts: 7
  • VirtueMart Version: 3.4.2
Re: TCPDF Error
« Reply #3 on: October 09, 2018, 06:34:58 am »
I 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

  • Beginner
  • *
  • Posts: 44
Re: TCPDF Error
« Reply #4 on: October 18, 2018, 15:39:37 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8200
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: TCPDF Error
« Reply #5 on: October 18, 2018, 17:08:29 pm »
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 http://www.gjcwebdesign.com
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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

caesarsk

  • Beginner
  • *
  • Posts: 44
Re: TCPDF Error
« Reply #6 on: October 18, 2018, 17:58:18 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8200
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: TCPDF Error
« Reply #7 on: October 18, 2018, 18:54:32 pm »
lost me -- just update to all most recent stable -- tcp vm 5 - vm3.4.2
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

caesarsk

  • Beginner
  • *
  • Posts: 44
Re: TCPDF Error
« Reply #8 on: October 18, 2018, 19:04:24 pm »
advice from you is nice, but updating VM for me means a lot of work.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8200
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: TCPDF Error
« Reply #9 on: October 18, 2018, 23:15:53 pm »
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 http://www.gjcwebdesign.com
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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

caesarsk

  • Beginner
  • *
  • Posts: 44
Re: TCPDF Error
« Reply #10 on: Yesterday at 10:06:50 »
big shop, own extensions, a few core hack hits.

but, after update to v3.4.2 it is solved