Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Questions related to using nuBuilder Forte.
vario
Posts: 149 Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 1 time
Been thanked: 1 time
Unread post
by vario » Thu May 27, 2021 2:58 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: 149 Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 1 time
Been thanked: 1 time
Unread post
by vario » Fri May 28, 2021 12:32 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
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??