VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: youssefbaroudi on September 02, 2019, 12:20:00 PM

Title: TCPDF error
Post by: youssefbaroudi on September 02, 2019, 12:20:00 PM
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 :(
Title: Re: TCPDF error
Post by: Jörgen on September 02, 2019, 16:15:13 PM
Pdf invoices ?
What program has created these invoices ? Is virtuemart realyy uninstalled? The error message sais different.

Jörgen @ Kreativ Fotografi
Title: Re: TCPDF error
Post by: youssefbaroudi on September 05, 2019, 13:55:25 PM
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
Title: Re: TCPDF error
Post by: GJC Web Design on September 05, 2019, 15:54:57 PM
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
Title: Re: TCPDF error
Post by: youssefbaroudi on September 05, 2019, 15:59:37 PM
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
Title: Re: TCPDF error
Post by: GJC Web Design on September 05, 2019, 16:15:29 PM
find exactly which file is triggering 'Error: Class 'TCPDF_STATIC' not found: Class 'VmConfig' not found' by logs, debugging etc
Title: Re: TCPDF error
Post by: youssefbaroudi on September 05, 2019, 16:37:58 PM
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



Title: Re: TCPDF error
Post by: GJC Web Design on September 05, 2019, 16:46:04 PM
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
Title: Re: TCPDF error
Post by: Jörgen on September 05, 2019, 17:47:12 PM
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