Project

General

Profile

Actions

Bug #5264

closed

Services Status widget crash after selecting hidden services

Added by Phillip Davis over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
10/06/2015
Due date:
% Done:

100%

Estimated time:

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.

Actions #1

Updated by Anonymous over 8 years ago

  • Status changed from New to Confirmed
  • Assignee set to Anonymous
Actions #2

Updated by Anonymous over 8 years ago

  • Status changed from Confirmed to Feedback
  • Assignee changed from Anonymous to Phillip Davis

select element name changes to array; name="servicestatusfilter[]"

Actions #3

Updated by Anonymous over 8 years ago

  • % Done changed from 0 to 100
Actions #4

Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to Resolved

fixed

Actions

Also available in: Atom PDF