Error loop on export tcpdf_fonts XAMPP 8.0.0

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Error loop on export tcpdf_fonts XAMPP 8.0.0

Postby ferv » 06. December 2020 05:52

i have this error, when try export databases

Deprecation Notice in ./vendor/tecnickcom/tcpdf/include/tcpdf_fonts.php#1998
Required parameter $currentfont follows optional parameter $isunicode

Backtrace

tcpdf.php#115: require_once()
ClassLoader.php#444: include(./vendor/tecnickcom/tcpdf/tcpdf.php)
ClassLoader.php#322: Composer\Autoload\includeFile(string '/opt/lampp/phpmyadmin/vendor/composer/../tecnickcom/tcpdf/tcpdf.php')
Composer\Autoload\ClassLoader->loadClass(string 'TCPDF')
ExportPdf.php#25: class_exists(string 'TCPDF')
Plugins.php#107: include_once(./libraries/classes/Plugins/Export/ExportPdf.php)
Export.php#692: PhpMyAdmin\Plugins::getPlugins(
string 'export',
string 'libraries/classes/Plugins/Export/',
array,
)
erver_export.php#49: PhpMyAdmin\Display\Export->getDisplay(
string 'server',
string '',
string '',
string '',
integer 0,
integer 0,
ferv
 
Posts: 4
Joined: 21. January 2020 01:59
XAMPP version: 8.2.12
Operating System: fedora 39 x86_64

Re: Error loop on export tcpdf_fonts XAMPP 8.0.0

Postby wizwych » 07. January 2021 16:49

I have managed to make a temporary fix for this my issue was I couldn't use the EXPORT function from Phpmyadmin without getting the errors.. so anything that had EXAMPLE....

1998 public static function UTF8StringToArray($str, $isunicode=true, &$currentfont)

I had to change to

1998 public static function UTF8StringToArray($str, $isunicode, &$currentfont)

as with the following lines from vendor\tecnickcom\tcpdf\include\tcpdf_fonts.php

2024 public static function UTF8ToLatin1($str, $isunicode, &$currentfont)
2040 public static function UTF8ToUTF16BE($str, $setbom, $isunicode, &$currentfont)
2060 public static function utf8StrRev($str, $setbom, $forcertl, $isunicode, &$currentfont)
2077 public static function utf8StrArrRev($arr, $str, $setbom, $forcertl, $isunicode, &$currentfont)
2093 public static function utf8Bidi($ta, $str, $forcertl, $isunicode, &$currentfont)

also file vendor\tecnickcom\tcpdf\include\tcpdf_static.php

lines to be changed

1139 public static function fixHTMLCode($html, $default_css, $tagvs, $tidy_options, &$tagvspaces)
2510 public static function setPageBoxes($page, $type, $llx, $lly, $urx, $ury, $points, $k, $pagedim=array())

the edits above are just portions of the code from each line but shows what to replace aswell as keeping extra line data..

my export now works on
phpmyadmin version = Version information: 5.0.4
PHP version 8.0...

hope this helps anyone

ALWAYS BACKUP FILES BEFORE EDITING....
wizwych
 
Posts: 4
Joined: 31. May 2020 17:11
XAMPP version: 7.2.31
Operating System: windows 10


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 76 guests