nuDisplayError() undefined

Questions related to using nuBuilder Forte.

nuDisplayError() undefined

Unread postby vario » Thu May 27, 2021 10:28 pm

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.
vario
 
Posts: 69
Joined: Mon Dec 05, 2011 8:53 pm
Location: Newton Abbot, UK
nuBuilder Version: 4.5

Re: nuDisplayError() undefined

Unread postby vario » Fri May 28, 2021 8:02 pm

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??
vario
 
Posts: 69
Joined: Mon Dec 05, 2011 8:53 pm
Location: Newton Abbot, UK
nuBuilder Version: 4.5


Return to General

Who is online

Users browsing this forum: No registered users and 15 guests