Page 1 of 1

nuDisplayError() undefined

Posted: Thu May 27, 2021 2:58 pm
by vario
Help! Not sure what is causing this error when I try to use the report designer for a particular report. Other reports are OK, but this one just goes to a blank page when I click the "Report Designer" button.

Code: Select all

var/log/httpd/error_log:[Thu May 27 13:40:17.171547 2021] [php:error] [pid 168317] [client 192.168.92.7:47546] PHP Fatal error:  Uncaught Error: Call to undefined function nuDisplayError() in /var/www/forte/core/nucommon.php:1340\nStack trace:\n#0 /var/www/forte/core/nucommon.php(1304): nuExceptionHandler()\n#1 /var/www/forte/core/nucommon.php(1018): nuEval()\n#2 /var/www/forte/core/nucommon.php(1001): nuBuildTempTable()\n#3 /var/www/forte/core/nureportdesigner.php(30): nuTTList()\n#4 {main}\n  thrown in /var/www/forte/core/nucommon.php on line 1340, referer: https://xxxx.xxxx.co.uk/forte/index.php
Neil.

Re: nuDisplayError() undefined

Posted: Fri May 28, 2021 12:32 pm
by vario
I have managed to sort this one out.
It was caused by an undefine PHP variable in the report procedure.

I was using this:

Code: Select all

while ($row = db_fetch_row($qry))
{
   $rows[] = $row;
}
and I noticed each nuDisplayError() log entry was preceded by a PHP warning for undefined variable $rows. The addition of

Code: Select all

$rows=array();
sorted it out.

I don't think a PHP warning should give rise to a PHP Fatal error however, and I just can't see how the report should run OK but only give this error via Report Designer??