Page MenuHomePhabricator

Category display broken
Closed, ResolvedPublic


[Wed Sep 28 10:30:59 2016] [hphp] [8017:7f8a78fff700:104705:000032] [] \nNotice: Undefined property: stdClass::$page_title in /srv/mediawiki/tags/2016-09-28_08:05:49/includes/Title.php on line 451
[Wed Sep 28 10:30:59 2016] [hphp] [8017:7f8a78fff700:104705:000033] [] \nNotice: Undefined property: stdClass::$page_namespace in /srv/mediawiki/tags/2016-09-28_08:05:49/includes/Title.php on line 45

Event Timeline

Happens for example on

git bisect does not help, things just start throwing fatal errors (e.g. CirrusSeach).

Trying to find the caller:

[Wed Sep 28 10:49:47 2016] [hphp] [26310:7f75c2fff700:19:000061] [] \nNotice: Undefined property: stdClass::$page_title in /www/ on line 454
[Wed Sep 28 10:49:47 2016] [hphp] [26310:7f75c2fff700:19:000062] [] MediaWiki->run/MediaWiki->main/MediaWiki->performRequest/MediaWiki->performAction/ViewAction->show/CategoryPage->view/CategoryPage->closeShowCategory/CategoryViewer->getHTML/CategoryViewer->doCategoryQuery/Title::newFromRow
2016-09-28 08:49:47 dev_translatewiki_net-bw_: [313f8e91b6646d0ff8eb54ec] /wiki/Category:User_sk-2   ErrorException from line 454 of /www/ PHP Notice: Undefined property: stdClass::$page_namespace
#0 /www/ MWExceptionHandler::handleError(integer, string, string, integer, array, array)
#1 /www/ Title::newFromRow(stdClass)
#2 /www/ CategoryViewer->doCategoryQuery()
#3 /www/ CategoryViewer->getHTML()
#4 /www/ CategoryPage->closeShowCategory()
#5 /www/ CategoryPage->view()
#6 /www/ ViewAction->show()
#7 /www/ MediaWiki->performAction(CategoryTreeCategoryPage, Title)
#8 /www/ MediaWiki->performRequest()
#9 /www/ MediaWiki->main()
#10 /www/ MediaWiki->run()
#11 {main}
Nikerabbit triaged this task as Unbreak Now! priority.Sep 28 2016, 9:01 AM
Nikerabbit edited projects, added MediaWiki-Categories; removed MediaWiki-General.
Nikerabbit added subscribers: aaron, Legoktm.

By checking out 129839c4c7756f1e9feb84dc698078c7a58cb175 for CirrusSearch and 950cf6016c10953213e5f985dfc18a32d8673197 for core, the error does not happen which leads me to conclude 1885a1ac462c08a3f25e8e8d47205cb18213821b is the cause. It removes page_title and page_namespace which are not included in LinkCache::getSelectFields. Adding people from the patch to CC. In addition of the errors, no pages are displayed in the category.

Nikerabbit renamed this task from PHP notices from Title::newFromRow to Category display broken.Sep 28 2016, 9:01 AM
Nikerabbit added a project: Regression.

Change 313191 had a related patch set uploaded (by Legoktm):
Fix display of categories

Change 313191 merged by jenkins-bot:
Fix display of categories

Nikerabbit claimed this task.

Thanks to both of you for resolving this quickly.