Page MenuHomePhabricator

Fatal error when adding already existing sitelink with Special:SetSiteLink
Closed, ResolvedPublic

Description

When trying to add a sitelink which is already used by another item with Special:SetSiteLink you'll get a fatal error:

Fatal error: Call to a member function parse() on a non-object in C:\xampp\htdocs\mediawiki\extensions\Wikibase\repo\includes\specials\SpecialModifyEntity.php on line 94


Version: unspecified
Severity: normal

Details

Reference
bz52614

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:58 AM
bzimport set Reference to bz52614.
bzimport added a subscriber: Unknown Object (MLST).

Change 78366 had a related patch set uploaded by Tobias Gritschacher:
(bug 52614) Fix error in Special:SetSiteLink

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

Reedy added a comment.Aug 10 2013, 8:54 AM

For reference, backtrace is:

[10-Aug-2013 08:38:51] Fatal error: Call to a member function parse() on a non-object at /usr/local/apache/common-local/php-1.22wmf12/extensions/Wikibase/repo/includes/specials/SpecialModifyEntity.php on line 94
Server: mw1038
Method: POST
URL: http://www.wikidata.org/wiki/Special:SetLabel
Backtrace:
#0 /usr/local/apache/common-local/php-1.22wmf12/extensions/Wikibase/repo/includes/specials/SpecialModifyEntity.php(94): SpecialModifyEntity::execute()
#1 /usr/local/apache/common-local/php-1.22wmf12/includes/SpecialPage.php(631): SpecialModifyEntity->execute(NULL)
#2 /usr/local/apache/common-local/php-1.22wmf12/includes/SpecialPageFactory.php(488): SpecialPage->run(NULL)
#3 /usr/local/apache/common-local/php-1.22wmf12/includes/Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#4 /usr/local/apache/common-local/php-1.22wmf12/includes/Wiki.php(565): MediaWiki->performRequest()
#5 /usr/local/apache/common-local/php-1.22wmf12/includes/Wiki.php(458): MediaWiki->main()
#6 /usr/local/apache/common-local/php-1.22wmf12/index.php(55): MediaWiki->run()
#7 /usr/local/apache/common-local/w/index.php(3): require('/usr/local/apac...')
#8 {main}

Change 78366 merged by Addshore:
(bug 52614) Fix error in Special:SetSiteLink

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