VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: thefbi on June 27, 2019, 11:05:04 AM

Title: TCPDF problem when generating of delivery note
Post by: thefbi on June 27, 2019, 11:05:04 AM
Hello,
i have a problem when i want to generating a delivery note, in the order in VM panel.

I have the 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 /home/clients/xxxxxxxxxx/web1_boutique-energie/libraries/src/Document/PdfDocument.php on line 111
Error: Class 'TCPDF_STATIC' not found: Class 'vmDefines' not found

I have try to re-install the TCPDF from VM, have now the 1.0.7
My Joomla version is 3.9.8
VM version is 3.4.3
PHP 7.2

Regards
Title: Re: TCPDF problem when generating of delivery note
Post by: jenkinhill on June 27, 2019, 11:57:22 AM
Which 3.4.3? eg 3.4.3.10031  - which used TCPDF 1.0.6

There were several iterations of TCPDF 1.0.7 which is used with VM 3.4.5.###  so maybe try the version included in com_virtuemart.3.4.5.10063_package_or_extract or at least compare it with your current version.

VM 3.6.0.### uses TCPDF 1.0.8  but all development versions after 3.4.5.10063 are not yet available on http://dev.virtuemart.net/projects/virtuemart/repository
Title: Re: TCPDF problem when generating of delivery note
Post by: thefbi on June 27, 2019, 13:55:53 PM
I have 3.4.3.10020.
I have downloaded and installer the version in the com_virtuemart.3.4.5.10063_package_or_extract, but it is the same version 1.0.7 and the problem still here.
Title: Re: TCPDF problem when generating of delivery note
Post by: youssefbaroudi on September 05, 2019, 16:13:10 PM
hello,
i'm runing the same problem when in uninstalled the VirtueMart.

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

do you have any idear ho to fix that, please?
Title: Re: TCPDF problem when generating of delivery note
Post by: thefbi on September 05, 2019, 16:46:06 PM
It is ok now for me with the latest version of VM 3.6 and tcpdf
Title: Re: TCPDF problem when generating of delivery note
Post by: Milbo on September 09, 2019, 19:30:33 PM
Thank you for reporting. Yes the new tcpdf 1.0.8 and the new vm3.6 fit. Or old vm3.4 and old tcpdf1.06