Page 1 of 1

Internal application error while displaying my_view_page.php

Posted: 26 May 2022, 12:18
by ntushar
Hi,

We have installed MantisBT 2.25.4 with PHP version 8.1.2. The issue we are facing is that whenever user logs in to his account, he is not able to view my view page. Attached error screenshot is attached. In the error log file we get below error

[php:notice] array_merge(): Argument #1 must be of type array, null given\n/my-path/mantis/my_view_inc.php: 256: - - - - array_merge()\n/my-path/mantis/my_view_page.php: 153: - - - - include( <string>'/my-path/mantis/my_view_inc.php' )\n, referer: http://my-Mantis-server-hostname/manage ... w_page.php.

Regards,
Tushar
mantis-error.png
mantis-error.png (14.33 KiB) Viewed 3667 times

Re: Internal application error while displaying my_view_page.php

Posted: 26 May 2022, 16:00
by atrol
Did you change the configuration option $g_my_view_boxes ?

Re: Internal application error while displaying my_view_page.php

Posted: 27 May 2022, 08:37
by ntushar
Yes, i have changed configuration option $g_my_view_boxes with below changes. Do you think these changes are cause for this issue. If yes could you please let me know how to resolve this issue keeping below changes.

$g_my_view_boxes = array (
'assigned' => '1',
'unassigned' => '2',
'reported' => '3',
'to_validate' => '4',
'recent_mod' => '5',
'monitored' => '6',
'closed' => '7'
);

Re: Internal application error while displaying my_view_page.php

Posted: 27 May 2022, 12:56
by atrol
These are the supported boxes that come with a standard installation

Code: Select all

$g_my_view_boxes = array(
	'assigned'      => '1',
	'unassigned'    => '2',
	'reported'      => '3',
	'resolved'      => '4',
	'recent_mod'    => '5',
	'monitored'     => '6',
	'feedback'      => '0',
	'verify'        => '0',
	'my_comments'   => '0'
);
"to_validate" and "closed" are not part of list.
I guess your problem will be solved if you remove these values.

Re: Internal application error while displaying my_view_page.php

Posted: 27 May 2022, 17:22
by ntushar
Removed "to_validate" and "closed" values but same error. Later tried setting below default values but still same error. This time error log shows referer path as login_password_page.php

$g_my_view_boxes = array(
'assigned' => '1',
'unassigned' => '2',
'reported' => '3',
'resolved' => '4',
'recent_mod' => '5',
'monitored' => '6',
'feedback' => '0',
'verify' => '0',
'my_comments' => '0'
);

array_merge(): Argument #1 must be of type array, null given\n/my-path/mantis/my_view_inc.php: 256: - - - - array_merge()\n/my-path/my_view_page.php: 153: - - - - include( <string>'/my-path/mantis/my_view_inc.php' )\n, referer: http://mantis-server-hostname/login_password_page.php

Re: Internal application error while displaying my_view_page.php

Posted: 28 May 2022, 15:05
by atrol
I am not able to reproduce.
I tried using PHP 8.1.4

When I tried your former settings, I got what I expected
SYSTEM WARNING
'Undefined array key "to_validate"' in 'C:\xampp814\htdocs\mantisbt\my_view_inc.php' line 242