error while exporting grouped view to pdf

Questionserror while exporting grouped view to pdf
Gerd Huber asked 4 years ago

I got the following error message when exporting a grouped view to excel or pdf

 

Unbekannter Fehlertyp: [2] “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”?
in Zeile 17786 in der Datei /home/www/doc/8060/hhc-freudental.de/www/phpgrid/lib/inc/tcpdf/tcpdf.php Unbekannter Fehlertyp: [2] include(/home/www/doc/8060/hhc-freudental.de/www/phpgrid/lib/inc/tcpdf/fonts/uni2cid_aj16.php): failed to open stream: No such file or directory
in Zeile 13 in der Datei /home/www/doc/8060/hhc-freudental.de/www/phpgrid/lib/inc/tcpdf/fonts/cid0jp.php

 

what can i do ?

 

Regards Gerd

5 Answers
Gerd Huber answered 4 years ago

Hallo Abu,

 

do you need anything else ?

 

Regards Gerd

Abu Ghufran Staff answered 4 years ago

Hi,

This warning is a PHP 7.3 incompatibility warning

Quick fix is to go to that file and line and change “continue;” to “continue 2;”

I’ll be updating latest tcpdf to see if this is gone and make sure it’s fixed in next release.

Ref: tcpdf wordpress error in PHP even tho i followed the tcpdf example 1by1 – Stack Overflow

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Gerd Huber answered 4 years ago

Thank you !!

 

Now i get another error:

Unbekannter Fehlertyp: [2] chr() expects parameter 1 to be int, string given
in Zeile 1671 in der Datei S:\o\HHC-FreudentalWebsite_neu\phpgrid\lib\inc\tcpdf\include\tcpdf_fonts.php Fehler im Script, Admin wurde verständigt.

 

Regards Gerd

Abu Ghufran Staff answered 4 years ago

A good solution would be to download TCPDF latest build from this link.

Rename old lib/inc/tcpdf folder to tcpdf-old.

Extract files of new build in lib/inc/tcpdf

Copy following 2 files from tcpdf-old to tcpdf:
class.PDFImage.php
class.TCPDF.EasyTable.php

Hopefully it should solve php7.3+ compat issues.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Gerdhuber answered 4 years ago

Hallo Abu,

it works Fine, thank you

regards Gerd

Your Answer

11 + 4 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?