Page MenuHomePhabricator

PHP Warning: Invalid argument supplied for foreach()
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Warning: Invalid argument supplied for foreach()
exception.trace
from /srv/mediawiki/php-1.40.0-wmf.24/extensions/CentralAuth/includes/GlobalRename/GlobalRenameDenylist.php(168)
#0 /srv/mediawiki/php-1.40.0-wmf.24/extensions/CentralAuth/includes/GlobalRename/GlobalRenameDenylist.php(168): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.40.0-wmf.24/extensions/CentralAuth/includes/Special/SpecialGlobalRenameUser.php(266): MediaWiki\Extension\CentralAuth\GlobalRename\GlobalRenameDenylist->checkUser(string)
#2 /srv/mediawiki/php-1.40.0-wmf.24/extensions/CentralAuth/includes/Special/SpecialGlobalRenameUser.php(290): MediaWiki\Extension\CentralAuth\Special\SpecialGlobalRenameUser->validate(array)
#3 /srv/mediawiki/php-1.40.0-wmf.24/includes/htmlform/HTMLForm.php(742): MediaWiki\Extension\CentralAuth\Special\SpecialGlobalRenameUser->onSubmit(array, HTMLForm)
#4 /srv/mediawiki/php-1.40.0-wmf.24/includes/htmlform/HTMLForm.php(622): HTMLForm->trySubmit()
#5 /srv/mediawiki/php-1.40.0-wmf.24/includes/htmlform/HTMLForm.php(638): HTMLForm->tryAuthorizedSubmit()
#6 /srv/mediawiki/php-1.40.0-wmf.24/includes/specialpage/FormSpecialPage.php(224): HTMLForm->show()
#7 /srv/mediawiki/php-1.40.0-wmf.24/extensions/CentralAuth/includes/Special/SpecialGlobalRenameUser.php(103): FormSpecialPage->execute(NULL)
#8 /srv/mediawiki/php-1.40.0-wmf.24/includes/specialpage/SpecialPage.php(700): MediaWiki\Extension\CentralAuth\Special\SpecialGlobalRenameUser->execute(NULL)
#9 /srv/mediawiki/php-1.40.0-wmf.24/includes/specialpage/SpecialPageFactory.php(1463): SpecialPage->run(NULL)
#10 /srv/mediawiki/php-1.40.0-wmf.24/includes/MediaWiki.php(324): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#11 /srv/mediawiki/php-1.40.0-wmf.24/includes/MediaWiki.php(917): MediaWiki->performRequest()
#12 /srv/mediawiki/php-1.40.0-wmf.24/includes/MediaWiki.php(573): MediaWiki->main()
#13 /srv/mediawiki/php-1.40.0-wmf.24/index.php(50): MediaWiki->run()
#14 /srv/mediawiki/php-1.40.0-wmf.24/index.php(46): wfIndexMain()
#15 /srv/mediawiki/w/index.php(3): require(string)
#16 {main}
Impact
Notes

Details

MediaWiki Version
1.40.0-wmf.24
Request URL
https://meta.wikimedia.org/wiki/Special:GlobalRenameUser

Event Timeline

There should be a warning "GlobalRenameDenylist failed to fetch global rename denylist." in the log before this exception.

But it is not good to fail this way, when the list could not be fetched. Working without a list also is not correct.