Page MenuHomePhabricator

makeMailingList.php: "in_array() expects parameter 2 to be array, null given" and "Undefined index: central-lists"
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Warning: in_array() expects parameter 2 to be array, null given
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.19/extensions/SecurePoll/cli/wm-scripts/makeMailingList.php(150)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.37.0-wmf.19/extensions/SecurePoll/cli/wm-scripts/makeMailingList.php(150): in_array(string, NULL)
#2 /srv/mediawiki/php-1.37.0-wmf.19/maintenance/doMaintenance.php(108): MediaWiki\Extensions\SecurePoll\MakeMailingList->execute()
#3 /srv/mediawiki/php-1.37.0-wmf.19/extensions/SecurePoll/cli/wm-scripts/makeMailingList.php(336): require_once(string)
#4 /srv/mediawiki/multiversion/MWScript.php(116): require_once(string)
#5 {main}

Also:

normalized_message
[{reqId}] {exception_url}   PHP Notice: Undefined index: central-lists
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.19/extensions/SecurePoll/cli/wm-scripts/makeMailingList.php(150)
#0 /srv/mediawiki/php-1.37.0-wmf.19/extensions/SecurePoll/cli/wm-scripts/makeMailingList.php(150): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.37.0-wmf.19/maintenance/doMaintenance.php(108): MediaWiki\Extensions\SecurePoll\MakeMailingList->execute()
#2 /srv/mediawiki/php-1.37.0-wmf.19/extensions/SecurePoll/cli/wm-scripts/makeMailingList.php(336): require_once(string)
#3 /srv/mediawiki/multiversion/MWScript.php(116): require_once(string)
#4 {main}
Impact

I don't know if there's any user-facing impact to this. I noticed these in logs just now when logspam-watch was taking an unusually long time for a single run through logfiles.

Notes

Approximately 1,278,000 instances of each of these.

cc: @tstarling

Event Timeline

Change 714060 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/extensions/SecurePoll@master] Fix look up of 'central-lists'

https://gerrit.wikimedia.org/r/714060

Urbanecm subscribed.

Low, because this happened only because someone was manually running the script to generate mailinglists for board elections.

Change 714060 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Fix look up of 'central-lists'

https://gerrit.wikimedia.org/r/714060

Urbanecm assigned this task to Zabe.