Page MenuHomePhabricator

Error: Call to a member function getFullURL() on null
Closed, ResolvedPublic2 Estimated Story PointsPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   Error: Call to a member function getFullURL() on null
error.stack_trace
from /srv/mediawiki/php-1.43.0-wmf.6/extensions/MobileFrontend/includes/MobileContext.php(865)
#0 /srv/mediawiki/php-1.43.0-wmf.6/extensions/MobileFrontend/includes/MobileFrontendHooks.php(140): MobileContext->doToggling()
#1 /srv/mediawiki/php-1.43.0-wmf.6/includes/HookContainer/HookContainer.php(159): MobileFrontendHooks->onRequestContextCreateSkin(MediaWiki\Context\RequestContext, NULL)
#2 /srv/mediawiki/php-1.43.0-wmf.6/includes/HookContainer/HookRunner.php(3262): MediaWiki\HookContainer\HookContainer->run(string, array)
#3 /srv/mediawiki/php-1.43.0-wmf.6/includes/context/RequestContext.php(576): MediaWiki\HookContainer\HookRunner->onRequestContextCreateSkin(MediaWiki\Context\RequestContext, NULL)
#4 /srv/mediawiki/php-1.43.0-wmf.6/includes/context/RequestContext.php(547): MediaWiki\Context\RequestContext->getSkinFromHook()
#5 /srv/mediawiki/php-1.43.0-wmf.6/includes/context/RequestContext.php(536): MediaWiki\Context\RequestContext->fetchSkinName()
#6 /srv/mediawiki/php-1.43.0-wmf.6/skins/Vector/includes/Hooks.php(616): MediaWiki\Context\RequestContext->getSkinName()
#7 /srv/mediawiki/php-1.43.0-wmf.6/includes/HookContainer/HookContainer.php(159): MediaWiki\Skins\Vector\Hooks->onGetBetaFeaturePreferences(MediaWiki\User\User, array)
#8 /srv/mediawiki/php-1.43.0-wmf.6/extensions/BetaFeatures/includes/Hooks/HookRunner.php(28): MediaWiki\HookContainer\HookContainer->run(string, array)
#9 /srv/mediawiki/php-1.43.0-wmf.6/extensions/BetaFeatures/includes/Hooks.php(144): MediaWiki\Extension\BetaFeatures\Hooks\HookRunner->onGetBetaFeaturePreferences(MediaWiki\User\User, array)
#10 /srv/mediawiki/php-1.43.0-wmf.6/includes/HookContainer/HookContainer.php(159): MediaWiki\Extension\BetaFeatures\Hooks->onSaveUserOptions(MediaWiki\User\User, array, array)
#11 /srv/mediawiki/php-1.43.0-wmf.6/includes/HookContainer/HookRunner.php(4404): MediaWiki\HookContainer\HookContainer->run(string, array)
#12 /srv/mediawiki/php-1.43.0-wmf.6/includes/user/Options/UserOptionsManager.php(453): MediaWiki\HookContainer\HookRunner->onSaveUserOptions(MediaWiki\User\User, array, array)
#13 /srv/mediawiki/php-1.43.0-wmf.6/includes/user/Options/UserOptionsManager.php(421): MediaWiki\User\Options\UserOptionsManager->saveOptionsInternal(MediaWiki\User\User, Wikimedia\Rdbms\DBConnRef)
#14 /srv/mediawiki/php-1.43.0-wmf.6/includes/user/User.php(2651): MediaWiki\User\Options\UserOptionsManager->saveOptions(MediaWiki\User\User)
#15 /srv/mediawiki/php-1.43.0-wmf.6/includes/auth/AuthManager.php(1967): MediaWiki\User\User->addToDatabase()
#16 /srv/mediawiki/php-1.43.0-wmf.6/includes/Setup.php(586): MediaWiki\Auth\AuthManager->autoCreateUser(MediaWiki\User\User, string, boolean)
#17 /srv/mediawiki/php-1.43.0-wmf.6/includes/WebStart.php(85): require_once(string)
#18 /srv/mediawiki/php-1.43.0-wmf.6/index.php(50): require(string)
#19 /srv/mediawiki/w/index.php(3): require(string)
#20 {main}
Notes

Details

Request URL
https://en.wikipedia.org/wiki/*?mobileaction=*

Event Timeline

Jdlrobson lowered the priority of this task from High to Low.Jun 4 2024, 4:26 PM
Jdlrobson subscribed.

Lowering priority given error rate - we seem to have only 16 exceptions in last month.

@thcipriani are we correct in our understanding that this error has happened 10-20 times in the last month? Your notes seem to imply a larger volume, so I'm worried we're missing them

@thcipriani are we correct in our understanding that this error has happened 10-20 times in the last month? Your notes seem to imply a larger volume, so I'm worried we're missing them

you're correct, it's happened 19 times over the past 30 days. I didn't mean to imply a large volume of errors, "Happening across many wikis and many MediaWiki versions" was meant to convey that this bug is:

  • Not a new bug in the latest code version
  • Not limited to a specific wiki, set of wikis, or language version

Sorry to worry you :)

Gotcha - no worries, and thank you! We are aiming to address this in the current sprint, although it will probably get worked on next week then

SToyofuku-WMF subscribed.

Also gonna take my face off this, since I'm currently working on something higher priority

I swapped this out for T361717 since they are both two points, and T361717 is more important to fix and now ready (and already estimated).

Change #1048065 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/MobileFrontend@master] Check for null from IContextSource::getTitle in MobileContext

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

Change #1048065 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Check for null from IContextSource::getTitle in MobileContext

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

Fix will go live 27th June. I can verify this when that's happened.