Page MenuHomePhabricator

PHP Warning: Invalid argument supplied for foreach()
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Warning: Invalid argument supplied for foreach()
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.7/extensions/GrowthExperiments/includes/WelcomeSurvey.php(152)
#0 /srv/mediawiki/php-1.37.0-wmf.7/extensions/GrowthExperiments/includes/WelcomeSurvey.php(152): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.37.0-wmf.7/extensions/GrowthExperiments/includes/WelcomeSurvey.php(347): GrowthExperiments\WelcomeSurvey->getQuestions(string)
#2 /srv/mediawiki/php-1.37.0-wmf.7/extensions/GrowthExperiments/includes/WelcomeSurveyHooks.php(80): GrowthExperiments\WelcomeSurvey->getRedirectUrl(string)
#3 /srv/mediawiki/php-1.37.0-wmf.7/includes/HookContainer/HookContainer.php(160): GrowthExperiments\WelcomeSurveyHooks->onBeforeWelcomeCreation(string, string)
#4 /srv/mediawiki/php-1.37.0-wmf.7/includes/HookContainer/HookRunner.php(1032): MediaWiki\HookContainer\HookContainer->run(string, array)
#5 /srv/mediawiki/php-1.37.0-wmf.7/includes/specials/SpecialCreateAccount.php(157): MediaWiki\HookContainer\HookRunner->onBeforeWelcomeCreation(string, string)
#6 /srv/mediawiki/php-1.37.0-wmf.7/includes/specialpage/LoginSignupSpecialPage.php(357): SpecialCreateAccount->successfulAction(boolean)
#7 /srv/mediawiki/php-1.37.0-wmf.7/includes/specialpage/SpecialPage.php(646): LoginSignupSpecialPage->execute(NULL)
#8 /srv/mediawiki/php-1.37.0-wmf.7/includes/specialpage/SpecialPageFactory.php(1390): SpecialPage->run(NULL)
#9 /srv/mediawiki/php-1.37.0-wmf.7/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#10 /srv/mediawiki/php-1.37.0-wmf.7/includes/MediaWiki.php(917): MediaWiki->performRequest()
#11 /srv/mediawiki/php-1.37.0-wmf.7/includes/MediaWiki.php(551): MediaWiki->main()
#12 /srv/mediawiki/php-1.37.0-wmf.7/index.php(53): MediaWiki->run()
#13 /srv/mediawiki/php-1.37.0-wmf.7/index.php(46): wfIndexMain()
#14 /srv/mediawiki/w/index.php(3): require(string)
#15 {main}
Impact

Just one instance in last 12 hours. See also T284735: PHP Warning: in_array() expects parameter 2 to be array, null given

Notes

Details

Request URL
https://sk.wikipedia.org/wiki/%C5%A0peci%C3%A1lne:Vytvorenie%C3%9A%C4%8Dtu

Event Timeline

kostajh created this task.

This might have already been solved by updates made to operations/mediawiki-config for other tasks around the welcome survey percentage updates.

I think this was fixed already, by other configuration changes. I'll check
later when I'm back home.

kostajh claimed this task.

Not happening any more.