Bug #5264
closedServices Status widget crash after selecting hidden services
100%
Description
1) Add the Services Status widget to the dashboard
2) Open its settings tool
3) Select 1 or more services to hide and save
Warning: array_intersect(): Argument #2 is not an array in /usr/local/www/widgets/widgets/services_status.widget.php on line 50 Call Stack: 0.0005 230848 1. {main}() /usr/local/www/widgets/widgets/services_status.widget.php:0 0.1587 1258536 2. array_intersect() /usr/local/www/widgets/widgets/services_status.widget.php:50 Warning: implode(): Invalid arguments passed in /usr/local/www/widgets/widgets/services_status.widget.php on line 50 Call Stack: 0.0005 230848 1. {main}() /usr/local/www/widgets/widgets/services_status.widget.php:0 0.1598 1258760 2. implode() /usr/local/www/widgets/widgets/services_status.widget.php:50 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/widgets/widgets/services_status.widget.php:50) in /usr/local/www/widgets/widgets/services_status.widget.php on line 52 Call Stack: 0.0005 230848 1. {main}() /usr/local/www/widgets/widgets/services_status.widget.php:0 0.6941 1271392 2. header() /usr/local/www/widgets/widgets/services_status.widget.php:52
The "multiple" field seems to only be passing a string containing the last service in the list that is selected. The code assumes it is getting an array and dies trying to array_intersect() an aray and a string together.
Updated by Anonymous about 9 years ago
- Status changed from New to Confirmed
- Assignee set to Anonymous
Updated by Anonymous about 9 years ago
- Status changed from Confirmed to Feedback
- Assignee changed from Anonymous to Phillip Davis
select element name changes to array; name="servicestatusfilter[]"
Updated by Anonymous about 9 years ago
- % Done changed from 0 to 100
Applied in changeset pfsense:4670142b31d3f5f499611c08aeb8d090b49544b7.