Page MenuHomePhabricator

"TypeError: Flow\Model\WikiReference::__construct argument Title null given" from Flow\ReferenceClarifier->loadReferencesForPage on Special:WhatLinksHere
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   TypeError: Argument 8 passed to Flow\Model\WikiReference::__construct() must be an instance of MediaWiki\Title\Title, null given, called in /srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Model/WikiReference.php on li
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Model/WikiReference.php(28)
#0/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Model/WikiReference.php(82)Flow\Model\WikiReference->__construct(Flow\Model\UUID, string, Flow\Model\UUID, MediaWiki\Title\Title, string, Flow\Model\UUID, string, null)
#1/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Data/Mapper/BasicObjectMapper.php(40)Flow\Model\WikiReference::fromStorageRow(array, null)
#2/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Data/ObjectLocator.php(314)Flow\Data\Mapper\BasicObjectMapper->fromStorageRow(array)
#3/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Data/ObjectManager.php(307)Flow\Data\ObjectLocator->load(array)
#4/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Data/ObjectLocator.php(118)Flow\Data\ObjectManager->load(array)
#5/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Data/ObjectLocator.php(69)Flow\Data\ObjectLocator->findMulti(array, array)
#6/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Data/ManagerGroup.php(127)Flow\Data\ObjectLocator->find(array)
#7/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Data/ManagerGroup.php(139)Flow\Data\ManagerGroup->call(string, array)
#8/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/ReferenceClarifier.php(115)Flow\Data\ManagerGroup->find(string, array)
#9/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/ReferenceClarifier.php(76)Flow\ReferenceClarifier->loadReferencesForPage(MediaWiki\Title\Title)
#10/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/ReferenceClarifier.php(30)Flow\ReferenceClarifier->getWikiReferences(MediaWiki\Title\Title, MediaWiki\Title\Title)
#11/srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Hooks.php(1163)Flow\ReferenceClarifier->getWhatLinksHereProps(stdClass, MediaWiki\Title\Title, MediaWiki\Title\Title)
#12/srv/mediawiki/php-1.44.0-wmf.19/includes/HookContainer/HookContainer.php(155)Flow\Hooks->onWhatLinksHereProps(stdClass, MediaWiki\Title\Title, MediaWiki\Title\Title, array)
#13/srv/mediawiki/php-1.44.0-wmf.19/includes/HookContainer/HookRunner.php(4647)MediaWiki\HookContainer\HookContainer->run(string, array)
#14/srv/mediawiki/php-1.44.0-wmf.19/includes/specials/SpecialWhatLinksHere.php(533)MediaWiki\HookContainer\HookRunner->onWhatLinksHereProps(stdClass, MediaWiki\Title\Title, MediaWiki\Title\Title, array)
#15/srv/mediawiki/php-1.44.0-wmf.19/includes/specials/SpecialWhatLinksHere.php(479)MediaWiki\Specials\SpecialWhatLinksHere->listItem(stdClass, MediaWiki\Title\Title, MediaWiki\Title\Title)
#16/srv/mediawiki/php-1.44.0-wmf.19/includes/specials/SpecialWhatLinksHere.php(475)MediaWiki\Specials\SpecialWhatLinksHere->showIndirectLinks(int, MediaWiki\Title\Title, int)
#17/srv/mediawiki/php-1.44.0-wmf.19/includes/specials/SpecialWhatLinksHere.php(117)MediaWiki\Specials\SpecialWhatLinksHere->showIndirectLinks(int, MediaWiki\Title\Title, int, int, int, string)
#18/srv/mediawiki/php-1.44.0-wmf.19/includes/specialpage/FormSpecialPage.php(245)MediaWiki\Specials\SpecialWhatLinksHere->onSuccess()
#19/srv/mediawiki/php-1.44.0-wmf.19/includes/specialpage/SpecialPage.php(729)MediaWiki\SpecialPage\FormSpecialPage->execute(string)
#20/srv/mediawiki/php-1.44.0-wmf.19/includes/specialpage/SpecialPageFactory.php(1737)MediaWiki\SpecialPage\SpecialPage->run(string)
#21/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(503)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#22/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#23/srv/mediawiki/php-1.44.0-wmf.19/includes/MediaWikiEntryPoint.php(202)MediaWiki\Actions\ActionEntryPoint->execute()
#24/srv/mediawiki/php-1.44.0-wmf.19/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#25/srv/mediawiki/w/index.php(3)require(string)
#26{main}
Impact
Notes

Details

Request URL
https://www.mediawiki.org/w/index.php?title=Special:WhatLinksHere/Help:Tabular_data&limit=500

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Looks like some sort of bad data in the Flow links DB. Probably not going to be fixed before Flow undeploy.

Krinkle renamed this task from TypeError: Argument 8 passed to Flow\Model\WikiReference::__construct() must be an instance of MediaWiki\Title\Title, null given, called in /srv/mediawiki/php-1.44.0-wmf.19/extensions/Flow/includes/Model/WikiReference.php on li to "TypeError: Flow\Model\WikiReference::__construct argument Title null given" from Flow\ReferenceClarifier->loadReferencesForPage on Special:WhatLinksHere.May 20 2025, 5:52 PM
Krinkle changed Request URL from https://www.mediawiki.org/w/index.php?mobileaction=*&title=* to https://www.mediawiki.org/w/index.php?title=Special:WhatLinksHere/Help:Tabular_data&limit=500.
Krinkle subscribed.

I can't reproduce this today via https://www.mediawiki.org/w/index.php?title=Special:WhatLinksHere/Help:Tabular_data&limit=500.

I queryied Logstash as liberally as I can for the same or similar issues, by searching the following on the unfiltered "mediawiki" Logstash dashboard for:

message:"null given" AND exception.trace:Flow

And the only results in the last 7 days were instead for T394751: "TypeError: WikiReference::__construct(): Argument Title null" from Flow LinksTableUpdater->getReferencesForTitle while parsing a page.

Making as resolved as such, until it is found again.