Page 1 of 1

[Issue] Reports no longer working

Posted: Thu Oct 25, 2018 9:45 pm
by alf1976
Hi Steven,

Reports are no longer working. i have installed a the latest build off github and everytime i run a report i get

TCPDF ERROR: The font definition file has a bad format: /volume1/web/nuBuilder/tcpdf/fonts/uni2cid_ac15.php

I have an old github build (pre wordpress) and have installed that in a separate directory on the web server and running off the same database that generates reports fine.

i have tried copying the tcpdf folder from the old build into the latest build and it still generates the same error.

Andrew

Re: [Issue] Reports no longer working

Posted: Thu Oct 25, 2018 10:21 pm
by alf1976
it appears to be an issue with nuFontList() funcion in nucommon.php.
If i replace this with the older function

Code: Select all

function nuFontList()
{
	$l = [['Helvetica','Helvetica'],['Courier','Courier'],['Times','Times'],['Symbol','Symbol'],['aealarabiya','aealarabiya'],['aefurat','aefurat'],['dejavusans','dejavusans'],['dejavusanscondensed','dejavusanscondensed'],['dejavusansextralight','dejavusansextralight'],['dejavusansmono','dejavusansmono'],['dejavuserif','dejavuserif'],['dejavuserifcondensed','dejavuserifcondensed'],['freemono','freemono'],['freesans','freesans'],['freeserif','freeserif'],['pdfacourier','pdfacourier'],['pdfahelvetica','pdfahelvetica'],['pdfasymbol','pdfasymbol'],['pdfatimes','pdfatimes'],['cid0cs','cid0cs'],['cid0jp','cid0jp'],['cid0kr','cid0kr']];
	$fonts      		= [];						//-- nuGetFonts(); 

	for($i = 0 ; $i < count($fonts) ; $i ++){

		if(trim($fonts[$i]) != ''){
			
			$font   	= $fonts[$i];
			$l[] 		= [$font,$font];
			
		}

	}

	return json_encode($l);
	
}

The report then works correctly again

Re: [Issue] Reports no longer working

Posted: Fri Oct 26, 2018 1:38 am
by admin
Andrew,

That font problem should be fixed now in the latest on Github.

Please let me know after you check it.


Steven

Re: [Issue] Reports no longer working

Posted: Sat Oct 27, 2018 9:42 am
by alf1976
Works again

thank you

Andrew

Re: [Issue] Reports no longer working

Posted: Sat Oct 27, 2018 10:27 am
by admin
.