Page MenuHomePhabricator

GoogleNewSitemap: Cannot use object of type Message as array
Closed, ResolvedPublic

Description

PHP Fatal error: Cannot use object of type Message as array in /usr/local/apache/common-local/php-1.21wmf5/extensions/GoogleNewsSitemap/GoogleNewsSitemap_body.php on line 541

PHP Fatal error: Cannot use object of type Message as array in /usr/local/apache/common-local/php-1.21wmf5/extensions/GoogleNewsSitemap/GoogleNewsSitemap_body.php on line 548

Stack traces to come


Version: unspecified
Severity: major

Details

Reference
bz42648

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:13 AM
bzimport set Reference to bz42648.

[03-Dec-2012 16:25:40] Fatal error: Cannot use object of type Message as array at /usr/local/apache/common-local/php-1.21wmf5/extensions/GoogleNewsSitemap/GoogleNewsSitemap_body.php on line 541
Server: srv192
Method: GET
URL: http://en.wikinews.org/w/index.php?title=Special:NewsFeed&feed=atom&categories=Published&notcategories=No%20publish|Archived|AutoArchived|disputed&namespace=0&count=30&hourcount=124&ordermethod=categor$
Backtrace:
#0 /usr/local/apache/common-local/php-1.21wmf5/extensions/GoogleNewsSitemap/GoogleNewsSitemap_body.php(541): GoogleNewsSitemap::getKeywords()
#1 /usr/local/apache/common-local/php-1.21wmf5/extensions/GoogleNewsSitemap/GoogleNewsSitemap_body.php(182): GoogleNewsSitemap->getKeywords(Object(Title))
#2 /usr/local/apache/common-local/php-1.21wmf5/extensions/GoogleNewsSitemap/GoogleNewsSitemap_body.php(98): GoogleNewsSitemap->makeFeed(Object(AtomFeed), Object(ResultWrapper))
#3 /usr/local/apache/common-local/php-1.21wmf5/includes/SpecialPage.php(612): GoogleNewsSitemap->execute(NULL)
#4 /usr/local/apache/common-local/php-1.21wmf5/includes/SpecialPageFactory.php(497): SpecialPage->run(NULL)
#5 /usr/local/apache/common-local/php-1.21wmf5/includes/Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#6 /usr/local/apache/common-local/php-1.21wmf5/includes/Wiki.php(555): MediaWiki->performRequest()
#7 /usr/local/apache/common-local/php-1.21wmf5/includes/Wiki.php(448): MediaWiki->main()
#8 /usr/local/apache/common-local/php-1.21wmf5/index.php(59): MediaWiki->run()
#9 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#10 {main}

[03-Dec-2012 11:37:10] Fatal error: Cannot use object of type Message as array at /usr/local/apache/common-local/php-1.21wmf5/extensions/GoogleNewsSitemap/GoogleNewsSitemap_body.php on line 548
Server: srv210
Method: GET
URL: http://fa.wikinews.org/w/index.php?title=%D9%88%DB%8C%DA%98%D9%87:%D8%AE%D9%88%D8%B1%D8%A7%DA%A9_%D8%A7%D8%AE%D8%A8%D8%A7%D8%B1&feed=atom&categories=%D9%85%D9%86%D8%AA%D8%B4%D8%B1%D8%B4%D8%AF%D9%87&not$
Backtrace:
#0 /usr/local/apache/common-local/php-1.21wmf5/extensions/GoogleNewsSitemap/GoogleNewsSitemap_body.php(548): GoogleNewsSitemap::getKeywords()
#1 /usr/local/apache/common-local/php-1.21wmf5/extensions/GoogleNewsSitemap/GoogleNewsSitemap_body.php(182): GoogleNewsSitemap->getKeywords(Object(Title))
#2 /usr/local/apache/common-local/php-1.21wmf5/extensions/GoogleNewsSitemap/GoogleNewsSitemap_body.php(98): GoogleNewsSitemap->makeFeed(Object(AtomFeed), Object(ResultWrapper))
#3 /usr/local/apache/common-local/php-1.21wmf5/includes/SpecialPage.php(612): GoogleNewsSitemap->execute(NULL)
#4 /usr/local/apache/common-local/php-1.21wmf5/includes/SpecialPageFactory.php(497): SpecialPage->run(NULL)
#5 /usr/local/apache/common-local/php-1.21wmf5/includes/Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#6 /usr/local/apache/common-local/php-1.21wmf5/includes/Wiki.php(555): MediaWiki->performRequest()
#7 /usr/local/apache/common-local/php-1.21wmf5/includes/Wiki.php(448): MediaWiki->main()
#8 /usr/local/apache/common-local/php-1.21wmf5/index.php(59): MediaWiki->run()
#9 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#10 {main}

Error is occurring rather frequently on 1.21wmf5 wikis

gerrit change 26593 needs to be reverted.

Specificly it introduced the line:
$catMap = $this->msg( 'googlenewssitemap_categorymap' );

Where $catMap was already the name of a variable being used for something else.

Apparently gerrit allows me to revert things even though I'm on a computer where i don't have git or anything :).

Anyhow, gerrit change 36786

Non-revert fix in gerrit 36791.

(In reply to comment #5)

Non-revert fix in Gerrit change #36791.

Merged by Brian Wolff on the 4th.