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.
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.
Thanks it's working fine with the last version.
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.
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
Hello,
it's working, thanks for the answer.
