Report designer - Undefined array key "id"

Post Reply
dgnet
Posts: 13
Joined: 09 Jun 2022, 18:55
Name: Stefano Romoli Fenu
Location: Firenze Italy
Company Name: dgnet srl
Contact:

Report designer - Undefined array key "id"

Post 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?
Stefano Romoli Fenu
dgnet srl
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Report designer - Undefined array key "id"

Post by support »

File from archive replace to plugins\ext\classes\report_page\
Attachments
blocks_php.zip
(1.49 KiB) Downloaded 66 times
dgnet
Posts: 13
Joined: 09 Jun 2022, 18:55
Name: Stefano Romoli Fenu
Location: Firenze Italy
Company Name: dgnet srl
Contact:

Re: Report designer - Undefined array key "id"

Post 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.
Stefano Romoli Fenu
dgnet srl
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Report designer - Undefined array key "id"

Post by support »

Strange. Try this one.
Attachments
blocks_php_2.zip
(1.49 KiB) Downloaded 73 times
dgnet
Posts: 13
Joined: 09 Jun 2022, 18:55
Name: Stefano Romoli Fenu
Location: Firenze Italy
Company Name: dgnet srl
Contact:

Re: Report designer - Undefined array key "id"

Post 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'],
Stefano Romoli Fenu
dgnet srl
Post Reply