Internal application error while displaying my_view_page.php

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
ntushar
Posts: 20
Joined: 07 Apr 2022, 06:49

Internal application error while displaying my_view_page.php

Post 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 2162 times
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Internal application error while displaying my_view_page.php

Post by atrol »

Did you change the configuration option $g_my_view_boxes ?
Please use Search before posting and read the Manual
ntushar
Posts: 20
Joined: 07 Apr 2022, 06:49

Re: Internal application error while displaying my_view_page.php

Post 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'
);
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Internal application error while displaying my_view_page.php

Post 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.
Please use Search before posting and read the Manual
ntushar
Posts: 20
Joined: 07 Apr 2022, 06:49

Re: Internal application error while displaying my_view_page.php

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

Re: Internal application error while displaying my_view_page.php

Post 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
Please use Search before posting and read the Manual
Post Reply