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
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
[Issue] Reports no longer working
-
- Posts: 75
- Joined: Tue Dec 26, 2017 8:58 pm
Re: [Issue] Reports no longer working
it appears to be an issue with nuFontList() funcion in nucommon.php.
If i replace this with the older function
The report then works correctly again
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);
}
Re: [Issue] Reports no longer working
Andrew,
That font problem should be fixed now in the latest on Github.
Please let me know after you check it.
Steven
That font problem should be fixed now in the latest on Github.
Please let me know after you check it.
Steven
-
- Posts: 75
- Joined: Tue Dec 26, 2017 8:58 pm