Page MenuHomeMiraheze

Internal Error when attempting to add tags
Closed, InvalidPublic

Description

When attempting to apply tags to log entries on nycsubwaywiki, I get
[95ac141e31d593ebc4e6eba5] 2023-05-10 00:20:51: Fatal exception of type "TypeError"
every single time. Renders a central feature of MediaWiki unusable.

Event Timeline

AmandaCath created this task.
Agent_Isai lowered the priority of this task from High to Normal.May 10 2023, 00:41
Agent_Isai added a project: Production Error.
Argument 2 passed to ChangeTagsLogList::updateChangeTagsOnAll() must be of the type array, null given, called in /srv/mediawiki/w/includes/specials/SpecialEditTags.php on line 440
from /srv/mediawiki/w/includes/changetags/ChangeTagsLogList.php(75)
#0 /srv/mediawiki/w/includes/specials/SpecialEditTags.php(440): ChangeTagsLogList->updateChangeTagsOnAll(array, NULL, NULL, string, User)
#1 /srv/mediawiki/w/includes/specials/SpecialEditTags.php(158): SpecialEditTags->submit()
#2 /srv/mediawiki/w/includes/specialpage/SpecialPage.php(701): SpecialEditTags->execute(NULL)
#3 /srv/mediawiki/w/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run(NULL)
#4 /srv/mediawiki/w/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#5 /srv/mediawiki/w/includes/MediaWiki.php(904): MediaWiki->performRequest()
#6 /srv/mediawiki/w/includes/MediaWiki.php(562): MediaWiki->main()
#7 /srv/mediawiki/w/index.php(50): MediaWiki->run()
#8 /srv/mediawiki/w/index.php(46): wfIndexMain()
#9 {main}
Agent_Isai added a project: Upstream.

This is an upstream bug fixed in MediaWiki 1.40 (not 1.39 unfortunately). Once we upgrade, this should work. See https://phabricator.wikimedia.org/T318079 for reference.