Page 1 of 1

Report designer - Undefined array key "id"

Posted: 06 Mar 2023, 22:05
by dgnet
On Version 3.3.1

Report designer.

When I use a PHP type html block in the Report designer I always get this Warning message from Apache, whatever PHP code I insert, even a simple $output_value="hello!";
This is the Warning message:
mod_fcgid: stderr: PHP Warning: Undefined array key "id" in
/var/www/vhosts/MYDOMAIN.it/httpdocs/plugins/ext/classes/report_page/blocks_php.php on line 39, referer: https://www.MYDOMAIN.it/index.php?modul ... e/view&id= 6

Can this be fixed somehow?

Re: Report designer - Undefined array key "id"

Posted: 07 Mar 2023, 09:06
by support
File from archive replace to plugins\ext\classes\report_page\

Re: Report designer - Undefined array key "id"

Posted: 07 Mar 2023, 20:07
by dgnet
The file I downloaded and then uploaded online is identical to the one that already exists on the server. In fact the warning remains the same.

Re: Report designer - Undefined array key "id"

Posted: 11 Mar 2023, 18:54
by support
Strange. Try this one.

Re: Report designer - Undefined array key "id"

Posted: 15 Mar 2023, 12:04
by dgnet
This file is the correct one.
Line no. 39:
$this->item['id']??0,
in the previous file it was like this:
$this->item['id'],