Author Topic: After updating TCPDF, invoices can't be downloaded from back-end.  (Read 506 times)

mailblade

  • Jr. Member
  • **
  • Posts: 105
  • A beginner
Hi guys!

VM version: 3.2.4
Joomla version:  3.9.1
TCPDF:  1.0.4

I decided to update my TCPDF library to the latest version of 1.0.8. 

After doing this,  I can no longer download order invoice PDF's from the back-end of Virtuemart. If I click on the button to download the PDF, I get the following error:

Quote
Call to undefined method vmDefines::tcpdf()

If I order through the website I still get the PDF attachment in the email. 

I have tried re-installing TCPDF, re-installing VM itself and nothing worked.

I did not want to update VM since I did a lot of custom work to it and would lose almost everything. Has anyone had this issue before? Any advice would be greatly appreciated.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9496
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: After updating TCPDF, invoices can't be downloaded from back-end.
« Reply #1 on: March 09, 2020, 10:03:23 am »
no, no, no....

Quote
VM version: 3.2.4
????

Why do u update your TCP but NOT your VM?  and for that matter your Joomla?
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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27674
  • Always on vacation
    • Jenkin Hill Internet
Re: After updating TCPDF, invoices can't be downloaded from back-end.
« Reply #2 on: March 09, 2020, 12:13:40 pm »
VM3.2.4 is over 2.5 years old and is known to be insecure, as is your Joomla version. If your custom work was done using file overrides then normally the modifications are not removed during updates, but you would need to test.
I understand your predicament but running an insecure store could result in hacking, loss of customer data and reputation, and possible fines under GDPR data laws.

http://forum.virtuemart.net/index.php?topic=118683
Kelvyn

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 3.6.11 10292 on Joomla 3.9.16 PHP 7.0.33

mailblade

  • Jr. Member
  • **
  • Posts: 105
  • A beginner
Re: After updating TCPDF, invoices can't be downloaded from back-end.
« Reply #3 on: March 09, 2020, 13:07:37 pm »
Ok I will be updating VM and TCPDF and come back to you guys

mailblade

  • Jr. Member
  • **
  • Posts: 105
  • A beginner
Re: After updating TCPDF, invoices can't be downloaded from back-end.
« Reply #4 on: April 01, 2020, 12:51:57 pm »
After updating VM itself as well as TCPDF, my issue was resolved.

Also, I did not have as much work to do as I originally thought regarding custom edits and so on. From now on I'll be sure to always keep VM updated! Thanks a lot!