Author Topic: TCPDF problem when generating of delivery note  (Read 408 times)

thefbi

  • Jr. Member
  • **
  • Posts: 105
TCPDF problem when generating of delivery note
« 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27501
  • Always on vacation
    • Jenkin Hill Internet
Re: TCPDF problem when generating of delivery note
« Reply #1 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
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.1.10121 on Joomla 3.9.11 PHP 7.0.33
Testing 3.6.1.10129 on Joomla 3.9.11

thefbi

  • Jr. Member
  • **
  • Posts: 105
Re: TCPDF problem when generating of delivery note
« Reply #2 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.

youssefbaroudi

  • Beginner
  • *
  • Posts: 5
  • A beginner
Re: TCPDF problem when generating of delivery note
« Reply #3 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?

thefbi

  • Jr. Member
  • **
  • Posts: 105
Re: TCPDF problem when generating of delivery note
« Reply #4 on: September 05, 2019, 16:46:06 pm »
It is ok now for me with the latest version of VM 3.6 and tcpdf

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9918
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: TCPDF problem when generating of delivery note
« Reply #5 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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/