https://bugzilla.wikimedia.org/show_bug.cgi?id=69536

            Bug ID: 69536
           Summary: Uncaught exception if a badge id does not exist
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: wikidata-b...@lists.wikimedia.org
          Reporter: aude.w...@gmail.com
                CC: wikidata-b...@lists.wikimedia.org
       Web browser: ---
   Mobile Platform: ---

If one of the items in my badgeItems setting does not exist (e.g. deleted or
misconfigured), then I get an uncaught exception on Special:SetSiteLink:

Unexpected non-MediaWiki exception encountered, of type "UserInputException"
[7e14a62b] /index.php?title=Special:SetSiteLink Exception from line 145 of
/Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialWikibaseRepoPage.php:
Entity id is unknown
Backtrace:
#0
/Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialSetSiteLink.php(348):
Wikibase\Repo\Specials\SpecialWikibaseRepoPage->loadEntity(Wikibase\DataModel\Entity\ItemId)
#1
/Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialSetSiteLink.php(333):
Wikibase\Repo\Specials\SpecialSetSiteLink->getTitleForBadge(Wikibase\DataModel\Entity\ItemId)
#2
/Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialSetSiteLink.php(260):
Wikibase\Repo\Specials\SpecialSetSiteLink->getBadgesOptionsHtml()
#3
/Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialModifyEntity.php(205):
Wikibase\Repo\Specials\SpecialSetSiteLink->getFormElements(NULL)
#4
/Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/specials/SpecialModifyEntity.php(99):
Wikibase\Repo\Specials\SpecialModifyEntity->setForm(NULL)
#5
/Library/WebServer/Documents/php-master/includes/specialpage/SpecialPage.php(357):
Wikibase\Repo\Specials\SpecialModifyEntity->execute(NULL)
#6
/Library/WebServer/Documents/php-master/includes/specialpage/SpecialPageFactory.php(516):
SpecialPage->run(NULL)
#7 /Library/WebServer/Documents/php-master/includes/MediaWiki.php(300):
SpecialPageFactory::executePath(Title, RequestContext)
#8 /Library/WebServer/Documents/php-master/includes/MediaWiki.php(609):
MediaWiki->performRequest()
#9 /Library/WebServer/Documents/php-master/includes/MediaWiki.php(460):
MediaWiki->main()
#10 /Library/WebServer/Documents/php-master/index.php(46): MediaWiki->run()
#11 {main}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to