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
Internal application error while displaying my_view_page.php
Moderators: Developer, Contributor
Re: Internal application error while displaying my_view_page.php
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'
);
$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
These are the supported boxes that come with a standard installation
"to_validate" and "closed" are not part of list.
I guess your problem will be solved if you remove these values.
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'
);
I guess your problem will be solved if you remove these values.
Re: Internal application error while displaying my_view_page.php
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
$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
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
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