Last modified: 2013-11-07 19:30:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43194, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41194 - Unsupported operand types at Language.php
Unsupported operand types at Language.php
Status: NEW
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-18 23:32 UTC by Sam Reed (reedy)
Modified: 2013-11-07 19:30 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2012-10-18 23:32:06 UTC
[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}
Comment 1 Niklas Laxström 2012-10-19 08:30:19 UTC
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.
Comment 2 Nemo 2012-10-19 08:53:20 UTC
(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.
Comment 3 Nemo 2012-10-24 12:58:42 UTC
Could this be related to bug 31986??
Comment 4 Niklas Laxström 2012-10-24 13:42:07 UTC
(In reply to comment #3)
> Could this be related to bug 31986??

I don't think so.
Comment 5 Andre Klapper 2013-04-18 11:24:08 UTC
Reedy: Did this happen recently again (at all)?
Also wondering how to provide more info...
Comment 6 Sam Reed (reedy) 2013-04-18 11:44:38 UTC
I've seen it a few times, but it's never very common
Comment 7 Umherirrender 2013-11-07 19:30:48 UTC
Found r102414 where there was a fatal error for the other call in Languages.php

Should this fixed in the same way?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links