Page MenuHomePhabricator

Unsupported operand types at Language.php
Closed, ResolvedPublicPRODUCTION ERROR

Description

[18-Oct-2012 16:28:38] Fatal error: Unsupported operand types at /usr/local/apache/common-local/php-1.21wmf1/languages/Language.php on line 479
Server: srv278
URL: http://[unknown-host]
Backtrace:
#0 /usr/local/apache/common-local/php-1.21wmf1/languages/Language.php(479): Language::getGenderNsText()
#1 /usr/local/apache/common-local/php-1.21wmf1/includes/Title.php(727): Language->getGenderNsText(2, 'unknown')
#2 /usr/local/apache/common-local/php-1.21wmf1/includes/Title.php(1107): Title->getNsText()
#3 /usr/local/apache/common-local/php-1.21wmf1/includes/Title.php(1119): Title->prefix('FilipeFalc??o')
#4 /usr/local/apache/common-local/php-1.21wmf1/includes/parser/Preprocessor_DOM.php(928): Title->getPrefixedDBkey()
#5 /usr/local/apache/common-local/php-1.21wmf1/includes/parser/Preprocessor_DOM.php(55): PPFrame_DOM->__construct(Object(Preprocessor_DOM))
#6 /usr/local/apache/common-local/php-1.21wmf1/includes/parser/Parser.php(3035): Preprocessor_DOM->newFrame()
#7 /usr/local/apache/common-local/php-1.21wmf1/includes/parser/Parser.php(1141): Parser->replaceVariables(''''Wikip??dia''...')
#8 /usr/local/apache/common-local/php-1.21wmf1/includes/parser/Parser.php(370): Parser->internalParse(''''Wikip??dia''...')
#9 /usr/local/apache/common-local/php-1.21wmf1/includes/job/RefreshLinksJob.php(78): Parser->parse(''''Wikip??dia''...', Object(Title), Object(ParserOptions), true, true, 32602891)
#10 /usr/local/apache/common-local/php-1.21wmf1/includes/job/RefreshLinksJob.php(194): RefreshLinksJob::runForTitleInternal(Object(Title), Object(Revision), 'RefreshLinksJob...')
#11 /usr/local/apache/common-local/php-1.21wmf1/maintenance/runJobs.php(92): RefreshLinksJob2->run()
#12 /usr/local/apache/common-local/php-1.21wmf1/maintenance/doMaintenance.php(110): RunJobs->execute()
#13 /usr/local/apache/common-local/php-1.21wmf1/maintenance/runJobs.php(122): require_once('/usr/local/apac...')
#14 /usr/local/apache/common-local/multiversion/MWScript.php(73): require_once('/usr/local/apac...')
#15 {main}


Version: 1.21.x
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:01 AM
bzimport set Reference to bz41194.
bzimport added a subscriber: Unknown Object (MLST).

Not enough information.

$wgExtraGenderNamespaces + self::$dataCache->getItem( $this->mCode, 'namespaceGenderAliases' );

Either one of them could be not an array. In latter case we need to know the language code and whether it is reproducible.

(In reply to comment #0)

#3 /usr/local/apache/common-local/php-1.21wmf1/includes/Title.php(1119):
Title->prefix('FilipeFalc??o')

Looks like [[User:FilipeFalcão]].
https://meta.wikimedia.org/w/index.php?title=Special:GlobalUsers&username=FilipeFalc&limit=1

/usr/local/apache/common-local/php-1.21wmf1/includes/parser/Parser.php(1141):
Parser->replaceVariables(''''Wikip??dia''...')

If this is sitename, can only be fr, hu, oc, pt or sk.

Parser->parse(''''Wikip??dia''...', Object(Title), Object(ParserOptions), true,
true, 32602891)

https://pt.wikipedia.org/?oldid=32602891 is his user page on pt.

Could this be related to bug 31986??

(In reply to comment #3)

Could this be related to bug 31986??

I don't think so.

Reedy: Did this happen recently again (at all)?
Also wondering how to provide more info...

I've seen it a few times, but it's never very common

Found r102414 where there was a fatal error for the other call in Languages.php

Should this fixed in the same way?

Change 192071 had a related patch set uploaded (by Umherirrender):
Add explicit array cast in Language::getGenderNsText

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

Patch-For-Review

Change 192071 merged by jenkins-bot:
Add explicit array cast in Language::getGenderNsText

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

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:12 PM