Forum

[SOLVED] Error gene...
 
Notifications
Retirer tout

[SOLVED] Error generating document with templateReport

6 Posts
2 Utilisateurs
0 Reactions
2,193 Vu
(@brunof782)
Posts: 45
Active Member
Début du sujet
 
[#7520]

hello,

we are using the plug-in templateReport (v2.2) and just installed the last version of projeqtor (v9.1.3). When generating a document with the template report

nothing happened (everything was fine before) and the log is : 

2021-05-03 09:55:14.312 ** ERROR ** [V9.1.3] EXCEPTION **
2021-05-03 09:55:14.312
** ERROR ** [V9.1.3] on file '/var/www/projeqtor/view/print.php' at line (146)
2021-05-03 09:55:14.312
** ERROR ***** [V9.1.3] cause = Call to undefined method TemplateReport::getOutputFileName() 

Thanks for your help.


 
Posté : 3 Mai PM 12:055
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Best is to migrate to new version of plugin.
This version is adapted to new V9.0 GUI.

Other solution is to change line 149 in view/print.php from

$tmpName=$tmp->getOutputFileName($obj);

to

$tmpName=(method_exists($tmp, getOutputFileName))?$tmp->getOutputFileName($obj):null;

This fix will be included in patch V9.1.4.


 
Posté : 3 Mai PM 14:055
(@brunof782)
Posts: 45
Active Member
Début du sujet
 

Thanks it's working fine with the last version.


 
Posté : 5 Mai PM 14:055
(@brunof782)
Posts: 45
Active Member
Début du sujet
 

Hello,

we installed the last version of projeqtor : 

 

and have the issue previoulsy signaled :

2021-08-09 09:12:11.727 ** ERROR ** [V9.2.1] ERROR **
2021-08-09 09:12:11.727
** ERROR ** [V9.2.1] on file '/var/www/projeqtor/view/print.php' at line (146)
2021-08-09 09:12:11.727
** ERROR ***** [V9.2.1] cause = Use of undefined constant getOutputFileName - assumed 'getOutputFileName' (this will throw an Error in a future version of PHP)

It is written that the plug-in is deployed on the previous version, do we have to install again the report again to resolve the problem ? (i don't remember having to do that previously)

Thansk for your help.
 


 
Posté : 9 Août AM 11:088
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

This seem to be a bug.
To fix it replace line 146 in projeqtor/view/print.php from

$tmpName=(method_exists($tmp, getOutputFileName))?$tmp->getOutputFileName($obj):null;

to 

$tmpName=(method_exists($tmp, 'getOutputFileName'))?$tmp->getOutputFileName($obj):null;

This fix will be included in V9.2.3


 
Posté : 9 Août PM 15:088
(@brunof782)
Posts: 45
Active Member
Début du sujet
 

Hello,

it's working, thanks for the answer.


 
Posté : 16 Août AM 10:088
Share:
Retour en haut