Page MenuHomePhabricator

OpenStackNovaController.php: PHP Notice: Undefined variable: projects
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

Request ID: INSERT_ID

message
[{exception_id}] {exception_url} ErrorException from line 438 of /srv/mediawiki/php-1.32.0-wmf.24/extensions/OpenStackManager/nova/OpenStackNovaController.php: PHP Notice: Undefined variable: projects
trace
#1 /srv/mediawiki/php-1.32.0-wmf.24/extensions/OpenStackManager/nova/OpenStackNovaUser.php(190): OpenStackNovaController->getRoleAssignmentsForUser(string)
#2 /srv/mediawiki/php-1.32.0-wmf.24/extensions/OpenStackManager/nova/OpenStackNovaUser.php(574): OpenStackNovaUser->getRoles()
#3 /srv/mediawiki/php-1.32.0-wmf.24/includes/Hooks.php(174): OpenStackNovaUser::DynamicSidebarGetGroups(array)
#4 /srv/mediawiki/php-1.32.0-wmf.24/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#5 /srv/mediawiki/php-1.32.0-wmf.24/extensions/DynamicSidebar/includes/DynamicSidebar.php(96): Hooks::run(string, array)
#6 /srv/mediawiki/php-1.32.0-wmf.24/extensions/DynamicSidebar/includes/DynamicSidebar.php(22): DynamicSidebar::doGroupSidebar(User)
#7 /srv/mediawiki/php-1.32.0-wmf.24/includes/Hooks.php(174): DynamicSidebar::modifySidebar(SkinVector, array)
#8 /srv/mediawiki/php-1.32.0-wmf.24/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#9 /srv/mediawiki/php-1.32.0-wmf.24/includes/skins/Skin.php(1319): Hooks::run(string, array)
#10 /srv/mediawiki/php-1.32.0-wmf.24/includes/skins/SkinTemplate.php(461): Skin->buildSidebar()
#11 /srv/mediawiki/php-1.32.0-wmf.24/includes/skins/SkinTemplate.php(225): SkinTemplate->prepareQuickTemplate()
#12 /srv/mediawiki/php-1.32.0-wmf.24/includes/OutputPage.php(2455): SkinTemplate->outputPage()
#13 /srv/mediawiki/php-1.32.0-wmf.24/includes/MediaWiki.php(875): OutputPage->output(boolean)
#14 /srv/mediawiki/php-1.32.0-wmf.24/includes/MediaWiki.php(887): Closure$MediaWiki::main()
#15 /srv/mediawiki/php-1.32.0-wmf.24/includes/MediaWiki.php(525): MediaWiki->main()
#16 /srv/mediawiki/php-1.32.0-wmf.24/index.php(42): MediaWiki->run()

Impact

Unknown.

Notes

This PHP Notice causes the method to return null instead of an array. This in turn causes a PHP Warning later during the program as cascading effect when the value is used in a foreach statement

PHP Warning: Invalid argument supplied for foreach()

#0 /srv/mediawiki/php-1.32.0-wmf.24/extensions/OpenStackManager/nova/OpenStackNovaUser.php(195)
#1 /srv/mediawiki/php-1.32.0-wmf.24/extensions/OpenStackManager/nova/OpenStackNovaUser.php(574): OpenStackNovaUser->getRoles()
#2 /srv/mediawiki/php-1.32.0-wmf.24/includes/Hooks.php(174): OpenStackNovaUser::DynamicSidebarGetGroups(array)
#3 /srv/mediawiki/php-1.32.0-wmf.24/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#4 /srv/mediawiki/php-1.32.0-wmf.24/extensions/DynamicSidebar/includes/DynamicSidebar.php(96): Hooks::run(string, array)
#5 /srv/mediawiki/php-1.32.0-wmf.24/extensions/DynamicSidebar/includes/DynamicSidebar.php(22): DynamicSidebar::doGroupSidebar(User)
#6 /srv/mediawiki/php-1.32.0-wmf.24/includes/Hooks.php(174): DynamicSidebar::modifySidebar(SkinVector, array)
#7 /srv/mediawiki/php-1.32.0-wmf.24/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#8 /srv/mediawiki/php-1.32.0-wmf.24/includes/skins/Skin.php(1319): Hooks::run(string, array)
#9 /srv/mediawiki/php-1.32.0-wmf.24/includes/skins/SkinTemplate.php(461): Skin->buildSidebar()
#10 /srv/mediawiki/php-1.32.0-wmf.24/includes/skins/SkinTemplate.php(225): SkinTemplate->prepareQuickTemplate()
#11 /srv/mediawiki/php-1.32.0-wmf.24/includes/OutputPage.php(2455): SkinTemplate->outputPage()
#12 /srv/mediawiki/php-1.32.0-wmf.24/includes/MediaWiki.php(875): OutputPage->output(boolean)
#13 /srv/mediawiki/php-1.32.0-wmf.24/includes/MediaWiki.php(887): Closure$MediaWiki::main()
#14 /srv/mediawiki/php-1.32.0-wmf.24/includes/MediaWiki.php(525): MediaWiki->main()
#15 /srv/mediawiki/php-1.32.0-wmf.24/index.php(42): MediaWiki->run()