Page MenuHomePhabricator

PHP Warning: Undefined property: stdClass::$cat_title
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • service.version: 1.46.0-wmf.21
  • timestamp: 2026-03-26T15:10:45.856Z
  • labels.phpversion: 8.3.30
  • trace.id: c84e333c-25ae-41b2-8ac3-5b98265489c4
  • Find trace.id in Logstash
labels.normalized_message
[{reqId}] {exception_url}   PHP Warning: Undefined property: stdClass::$cat_title
FrameLocationCall
from/srv/mediawiki/php-1.46.0-wmf.21/includes/Category/Category.php(211)
#0/srv/mediawiki/php-1.46.0-wmf.21/includes/Category/Category.php(211)MediaWiki\Exception\MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.46.0-wmf.21/extensions/CategoryTree/includes/CategoryCache.php(91)MediaWiki\Category\Category::newFromRow(stdClass)
#2/srv/mediawiki/php-1.46.0-wmf.21/extensions/CategoryTree/includes/Hooks.php(295)MediaWiki\Extension\CategoryTree\CategoryCache->fillFromQuery(Wikimedia\Rdbms\FakeResultWrapper)
#3/srv/mediawiki/php-1.46.0-wmf.21/includes/HookContainer/HookContainer.php(135)MediaWiki\Extension\CategoryTree\Hooks->onCategoryViewer__doCategoryQuery(string, Wikimedia\Rdbms\FakeResultWrapper)
#4/srv/mediawiki/php-1.46.0-wmf.21/includes/HookContainer/HookRunner.php(1159)MediaWiki\HookContainer\HookContainer->run(string, array)
#5/srv/mediawiki/php-1.46.0-wmf.21/includes/Category/CategoryViewer.php(412)MediaWiki\HookContainer\HookRunner->onCategoryViewer__doCategoryQuery(string, Wikimedia\Rdbms\FakeResultWrapper)
#6/srv/mediawiki/php-1.46.0-wmf.21/includes/Category/CategoryViewer.php(117)MediaWiki\Category\CategoryViewer->doCategoryQuery()
#7/srv/mediawiki/php-1.46.0-wmf.21/includes/Page/CategoryPage.php(101)MediaWiki\Category\CategoryViewer->getHTML()
#8/srv/mediawiki/php-1.46.0-wmf.21/includes/Page/CategoryPage.php(53)MediaWiki\Page\CategoryPage->closeShowCategory()
#9/srv/mediawiki/php-1.46.0-wmf.21/includes/Actions/ViewAction.php(71)MediaWiki\Page\CategoryPage->view()
#10/srv/mediawiki/php-1.46.0-wmf.21/includes/Actions/ActionEntryPoint.php(752)MediaWiki\Actions\ViewAction->show()
#11/srv/mediawiki/php-1.46.0-wmf.21/includes/Actions/ActionEntryPoint.php(511)MediaWiki\Actions\ActionEntryPoint->performAction(MediaWiki\Page\CategoryPage, MediaWiki\Title\Title)
#12/srv/mediawiki/php-1.46.0-wmf.21/includes/Actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#13/srv/mediawiki/php-1.46.0-wmf.21/includes/MediaWikiEntryPoint.php(180)MediaWiki\Actions\ActionEntryPoint->execute()
#14/srv/mediawiki/php-1.46.0-wmf.21/index.php(44)MediaWiki\MediaWikiEntryPoint->run()
#15/srv/mediawiki/w/index.php(3)require(string)
#16{main}
Impact
Notes

Details

Request URL
https://ro.wikipedia.org/wiki/Categorie:G%C4%83ri_din_ora%C8%99ul_Fukushima?useparsoid=*
Related Changes in Gerrit:

Event Timeline

There is a comment in Category about this situation

		# NOTE: the row often results from a LEFT JOIN on categorylinks. This may result in
		#       all the cat_xxx fields being null, if the category page exists, but nothing
		#       was ever added to the category. This case should be treated link an empty
		#       category, if possible.

		if ( $row->cat_title === null ) {

But with the rewrite for virutal domain from 23a9dfc624dfc9887d6650289ca5a1234e7c5868 there is no left join which would provide the null columns. In this special case the cat_* columns are not there at all.

Not sure how to trigger this special case. Maybe the row in category is from a defered update or job. When looking at the linked url the category page and the subcat were created in the same minute.

Change #1268289 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@master] CategoryViewer: Always set category fields in the query

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

Change #1268289 merged by jenkins-bot:

[mediawiki/core@master] CategoryViewer: Always set category fields in the query

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

Zabe added a project: DBA.
Zabe moved this task from Triage to Done on the DBA board.