Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] Error gene...
 
Notifications
Clear all

[SOLVED] Error generating document with templateReport

6 Posts
2 Users
0 Reactions
2,219 Views
(@brunof782)
Posts: 45
Active Member
Topic starter
 
[#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.


 
Posted : 03 May 2021 12H03
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 03 May 2021 14H33
(@brunof782)
Posts: 45
Active Member
Topic starter
 

Thanks it's working fine with the last version.


 
Posted : 05 May 2021 14H02
(@brunof782)
Posts: 45
Active Member
Topic starter
 

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.
 


 
Posted : 09 Aug 2021 11H20
babynus
(@babynus)
Posts: 14966
Main Contributor 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


 
Posted : 09 Aug 2021 15H27
(@brunof782)
Posts: 45
Active Member
Topic starter
 

Hello,

it's working, thanks for the answer.


 
Posted : 16 Aug 2021 10H34
Share:

Scroll to Top