I just upgraded to 2.25.2 version but I got the below error on My View page and it can't be displayed at all. could anyone help?
SYSTEM WARNING
'Undefined array key "new"' in '/usr/share/nginx/html/lqa_new/my_view_inc.php' line 243
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2
Moderators: Developer, Contributor
Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2
Hi atrol,
I've upgraded from version 2.9.0.
I've upgraded from version 2.9.0.
Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2
Yes, I changed as below.
$g_my_view_boxes = array(
'assigned' => '1',
'unassigned' => '2',
'reported' => '3',
'resolved' => '4',
'recent_mod' => '0',
'monitored' => '0',
'feedback' => '0',
'verify' => '0',
'my_comments' => '0'
);
I'm using PHP 8.1.3. I also upgraded another site from Mantis 2.21.1 and it works fine.
$g_my_view_boxes = array(
'assigned' => '1',
'unassigned' => '2',
'reported' => '3',
'resolved' => '4',
'recent_mod' => '0',
'monitored' => '0',
'feedback' => '0',
'verify' => '0',
'my_comments' => '0'
);
I'm using PHP 8.1.3. I also upgraded another site from Mantis 2.21.1 and it works fine.
Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2
PHP 8.1 is not fully supported at the moment, as the underlying 3rd party component ADOdb that is redistributed with 2.25.2 is not compatible with it.
E.g. one of the side effects is https://www.mantisbt.org/bugs/view.php?id=29462
I expect there are some more side effects because of this.
I have no time to have a deeper look at the moment,
Could you try, if you get the issue also if you do not change $g_my_view_boxes ?
E.g. one of the side effects is https://www.mantisbt.org/bugs/view.php?id=29462
I expect there are some more side effects because of this.
I have no time to have a deeper look at the moment,
Could you try, if you get the issue also if you do not change $g_my_view_boxes ?
Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2
I just deleted the customized $g_my_view_boxes from config_inc.php but I still get the issue. Will it be easier if I change to PHP lower than 8?
Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2
It would be great if you could try latest 8.0.x (which should work) and/or latest 7.4.x