Page MenuHomePhabricator

Unable to delete a banner with bad HTML code
Open, MediumPublic

Description

MediaWiki:Centralnotice-template-WikiUNAM editathon had bad code. Trying to see the banner via https://meta.wikimedia.org/wiki/Special:CentralNoticeBanners/edit/WikiUNAM_editathon or remove it via Special:CentralNoticeBanners gives a MWException. Deleting the banner manually does not remove it either from Special:CentralNoticeBanners

Event Timeline

[WCHmRgpAEK8AAD0PmUAAAAAP] 2016-11-08 14:50:47: Fatal exception of type "MWException"
krenair@fluorine:~$ zgrep WBuRlQpAADwAADG2U1cAAAAD /a/mw-log/archive/exception.log-20161104.gz -A 20
2016-11-03 19:35:59 [WBuRlQpAADwAADG2U1cAAAAD] mw1265 metawiki 1.29.0-wmf.1 exception ERROR: [WBuRlQpAADwAADG2U1cAAAAD] /wiki/Special:CentralNoticeBanners/edit/WikiUNAM MWException from line 422 of /srv/mediawiki/php-1.29.0-wmf.1/includes/htmlform/HTMLFormField.php: Invalid name 'wpmessage-Participa en el Segundo Editatón WikiUNAM' passed to HTMLFormField::construct {"exception_id":"WBuRlQpAADwAADG2U1cAAAAD"} 
[Exception MWException] (/srv/mediawiki/php-1.29.0-wmf.1/includes/htmlform/HTMLFormField.php:422) Invalid name 'wpmessage-Participa en el Segundo Editatón WikiUNAM' passed to HTMLFormField::construct

#0 /srv/mediawiki/php-1.29.0-wmf.1/includes/htmlform/fields/HTMLTextAreaField.php(16): HTMLFormField->__construct(array)
#1 /srv/mediawiki/php-1.29.0-wmf.1/extensions/CentralNotice/includes/HtmlFormElements/HTMLCentralNoticeBannerMessage.php(43): HTMLTextAreaField->__construct(array)
#2 /srv/mediawiki/php-1.29.0-wmf.1/includes/htmlform/HTMLForm.php(492): HTMLCentralNoticeBannerMessage->__construct(array)
#3 /srv/mediawiki/php-1.29.0-wmf.1/includes/htmlform/HTMLForm.php(337): HTMLForm::loadInputFromParameters(string, array, CentralNoticeHtmlForm)
#4 /srv/mediawiki/php-1.29.0-wmf.1/extensions/CentralNotice/special/SpecialCentralNoticeBanners.php(427): HTMLForm->__construct(array, RequestContext, string)
#5 /srv/mediawiki/php-1.29.0-wmf.1/extensions/CentralNotice/special/SpecialCentralNoticeBanners.php(76): SpecialCentralNoticeBanners->showBannerEditor()
#6 /srv/mediawiki/php-1.29.0-wmf.1/includes/specialpage/SpecialPage.php(522): SpecialCentralNoticeBanners->execute(string)
#7 /srv/mediawiki/php-1.29.0-wmf.1/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(string)
#8 /srv/mediawiki/php-1.29.0-wmf.1/includes/MediaWiki.php(283): SpecialPageFactory::executePath(Title, RequestContext)
#9 /srv/mediawiki/php-1.29.0-wmf.1/includes/MediaWiki.php(861): MediaWiki->performRequest()
#10 /srv/mediawiki/php-1.29.0-wmf.1/includes/MediaWiki.php(522): MediaWiki->main()
#11 /srv/mediawiki/php-1.29.0-wmf.1/index.php(43): MediaWiki->run()
#12 /srv/mediawiki/w/index.php(3): include(string)
#13 {main}
ggellerman lowered the priority of this task from High to Medium.Nov 8 2016, 10:31 PM
ggellerman moved this task from Triage to Q4 FY21-22 on the Fundraising-Backlog board.
ggellerman moved this task from Q4 FY21-22 to Sprint +2 on the Fundraising-Backlog board.

It's not really a fundraising banner :)