Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

[Issue] Reports no longer working

Questions related to using nuBuilder Forte.
Locked
alf1976
Posts: 75
Joined: Tue Dec 26, 2017 8:58 pm

[Issue] Reports no longer working

Unread post 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
alf1976
Posts: 75
Joined: Tue Dec 26, 2017 8:58 pm

Re: [Issue] Reports no longer working

Unread post 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
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: [Issue] Reports no longer working

Unread post by admin »

Andrew,

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

Please let me know after you check it.


Steven
alf1976
Posts: 75
Joined: Tue Dec 26, 2017 8:58 pm

Re: [Issue] Reports no longer working

Unread post by alf1976 »

Works again

thank you

Andrew
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: [Issue] Reports no longer working

Unread post by admin »

.
Locked