Page MenuHomePhabricator

PHP Fatal Error: Call to undefined method MediaWiki\MediaWikiServices::getAssociated()
Closed, DuplicatePublic

Description

Error

Request URL: https://meta.wikimedia.org/w/index.php?limit=5000&title=Special%3AContributions&contribs=user&target=Hashar&namespace=2&nsInvert=1&associated=1
Request ID: INSERT_ID

message
PHP Fatal Error: Call to undefined method MediaWiki\MediaWikiServices::getAssociated()
trace
#0 /srv/mediawiki/php-1.34.0-wmf.5/includes/specials/pagers/ContribsPager.php(389): NO_FUNCTION_GIVEN()
#1 /srv/mediawiki/php-1.34.0-wmf.5/includes/specials/pagers/ContribsPager.php(346): ContribsPager->getNamespaceCond()
#2 /srv/mediawiki/php-1.34.0-wmf.5/includes/pager/IndexPager.php(426): ContribsPager->getQueryInfo()
#3 /srv/mediawiki/php-1.34.0-wmf.5/includes/pager/RangeChronologicalPager.php(105): IndexPager->buildQueryInfo(string, integer, boolean)
#4 /srv/mediawiki/php-1.34.0-wmf.5/includes/specials/pagers/ContribsPager.php(187): RangeChronologicalPager->buildQueryInfo(string, integer, boolean)
#5 /srv/mediawiki/php-1.34.0-wmf.5/includes/pager/IndexPager.php(257): ContribsPager->reallyDoQuery(string, integer, boolean)
#6 /srv/mediawiki/php-1.34.0-wmf.5/includes/pager/IndexPager.php(602): IndexPager->doQuery()
#7 /srv/mediawiki/php-1.34.0-wmf.5/includes/specials/SpecialContributions.php(237): IndexPager->getNumRows()
#8 /srv/mediawiki/php-1.34.0-wmf.5/includes/specialpage/SpecialPage.php(570): SpecialContributions->execute(NULL)
#9 /srv/mediawiki/php-1.34.0-wmf.5/includes/specialpage/SpecialPageFactory.php(575): SpecialPage->run(NULL)
#10 /srv/mediawiki/php-1.34.0-wmf.5/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#11 /srv/mediawiki/php-1.34.0-wmf.5/includes/MediaWiki.php(865): MediaWiki->performRequest()
#12 /srv/mediawiki/php-1.34.0-wmf.5/includes/MediaWiki.php(515): MediaWiki->main()
#13 /srv/mediawiki/php-1.34.0-wmf.5/index.php(42): MediaWiki->run()
#14 /srv/mediawiki/w/index.php(3): include(string)
#15 {main}

Impact

Notes

Event Timeline

hashar created this task.May 16 2019, 1:36 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 16 2019, 1:36 PM

Caused by 2e1ac38485b9c78890944413cba074474c06bd34

commit 2e1ac38485b9c78890944413cba074474c06bd34
Author: Aryeh Gregor <ayg@aryeh.name>
Date:   Sun Aug 5 20:58:51 2018 +0300

    Mass conversion to NamespaceInfo
    
    Change-Id: I2fef157ceec772f304c0923a1cd8c0eef2e82a0f

diff --git a/includes/specials/pagers/ContribsPager.php b/includes/specials/pagers/ContribsPager.php
index a187a44489..e0db715925 100644
--- a/includes/specials/pagers/ContribsPager.php
+++ b/includes/specials/pagers/ContribsPager.php
@@ -386,7 +386,7 @@ class ContribsPager extends RangeChronologicalPager {
                        }
 
                        $associatedNS = $this->mDb->addQuotes(
-                               MWNamespace::getAssociated( $this->namespace )
+                               MediaWikiServices::getInstance()->getAssociated( $this->namespace )
                        );
 
                        return [
mmodell changed the subtype of this task from "Task" to "Production Error".Wed, Aug 28, 11:07 PM