News:

Looking for documentation? Take a look on our wiki

Main Menu

TCPDF error

Started by youssefbaroudi, September 02, 2019, 12:20:00 PM

Previous topic - Next topic

youssefbaroudi

Hello,

i recently uninstalled Virtumart and its module/plugin, but i still have this fatal error :

Error: Class 'TCPDF_STATIC' not found: Class 'VmConfig' not found

for information i have component to open my PDF invoices, that worked well before installing VirtuMart and its TCPDF.

Please can you help as my pdf invoices doesnt work :(

Jörgen

Pdf invoices ?
What program has created these invoices ? Is virtuemart realyy uninstalled? The error message sais different.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

youssefbaroudi

Thank you for your response,

i had installed joomprod products that contain a component for invoicing and it was working well.

https://www.joomprod.com/products/classified-ads.html

for some reason i wanted to test VirtueMart but unfortunately when i uninstalled give this headacke.

i uninstalled all files from and did a  clean in my databases.  there is nothing left from virtuemart in my system. (no pluging no module no tables)

but when i call that pdf invoice in the page :
www.website.com/my-invoices/Factura/49?tmpl=component&format=pdf

its throw this error :

Warning: Use of undefined constant K_CELL_HEIGHT_RATIO - assumed 'K_CELL_HEIGHT_RATIO' (this will throw an Error in a future version of PHP) in /htdocs/libraries/src/Document/PdfDocument.php on line 111
Error: Class 'TCPDF_STATIC' not found: Class 'VmConfig' not found

it looks like some where there is a load of this error before loading the joomprod invoice pdf (that uses also tcpdf classes)

NB: the pdf file is well formed and sent to the client

GJC Web Design

VM uses a refactored version of TCPDF ... If u installed that then I guess the solution is to uninstall the VM TCP component then re-install the  https://www.joomprod.com/products/classified-ads.html thing
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

youssefbaroudi

#4
hello,

for the VM TCP its already uninstalled as i did the all clean.

is there any other solution because the site is in the production environment. i run a big risk

thanks

GJC Web Design

find exactly which file is triggering 'Error: Class 'TCPDF_STATIC' not found: Class 'VmConfig' not found' by logs, debugging etc
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

youssefbaroudi

#6
i do not know that the problem with virtuemart.

i'm not a devloper and virtuemart seems to modify the system joomla files (big errors from VM team if the case)

fyi : i reinstalled the original "joomprod" invoicing component with success.
but the error is still there as




GJC Web Design

if the Class 'VmConfig' is being called a file is calling it ... 

use the standard error finding techniques as suggested to find what that file is

http://forum.virtuemart.net/index.php?topic=117042.0
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

Jörgen

There must be something left that you have not uninstalled. My advice is to search for VM in joomla installed components, modules and plugins. I bet that you will find something still there.
By the way, installing a software in a production just to test is very bad practice. This counts for all improvements and updates and add ons. You will probably solve this, but be more careful next time you try this. This is a caring thought not anything else.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.