SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
jerdyy
Posts: 4
Joined: 31 Mar 2022, 16:30

SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2

Post by jerdyy »

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.
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2

Post by atrol »

Which version did you use before the upgrade?
Please use Search before posting and read the Manual
jerdyy
Posts: 4
Joined: 31 Mar 2022, 16:30

Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2

Post by jerdyy »

Hi atrol,

I've upgraded from version 2.9.0.
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2

Post by atrol »

Did you change configuration option $g_my_view_boxes ?
Which PHP version do you use?
Please use Search before posting and read the Manual
jerdyy
Posts: 4
Joined: 31 Mar 2022, 16:30

Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2

Post by jerdyy »

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.
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2

Post by atrol »

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 ?
Please use Search before posting and read the Manual
jerdyy
Posts: 4
Joined: 31 Mar 2022, 16:30

Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2

Post by jerdyy »

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?
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: SYSTEM WARNING with 'Undefined array key "new"' when upgrading to 2.25.2

Post by atrol »

jerdyy wrote: 01 Apr 2022, 10:48 Will it be easier if I change to PHP lower than 8?
It would be great if you could try latest 8.0.x (which should work) and/or latest 7.4.x
Please use Search before posting and read the Manual
Post Reply