Page 1 of 1

PDFs not working in TNG V11

Posted: Thu Feb 01, 2018 3:47 pm
by steven
When I tried to generate a PDF with TNG I received the following error:

Warning: Declaration of UFPDF::_dounderline($x, $y, $width, $txt) should be compatible with FPDF::_dounderline($x, $y, $txt) in /volume1/web/syno/ufpdf.php on line 20 FPDF error: Some data has already been output, can't send PDF file.
Darrin found the problem which only occurs if you are running php version 7.0 or higher. Locate the code below in the fpdf.php file. (About line 1489 in V11.1.2)

Code: Select all

function_dounderline($x,$y,$txt)
and replace with the code below:

Code: Select all

function_dounderline($x,$y,$width,$txt)
Alternately you can download the patched file here:
fpdf.zip
(10.34 KiB) Downloaded 755 times