Page MenuHomePhabricator

BannerExistenceException: Banner by that name already exists!
Closed, ResolvedPublic2 Estimated Story PointsPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   BannerExistenceException: Banner by that name already exists!
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.12/extensions/CentralNotice/includes/Banner.php(1140)
#0 /srv/mediawiki/php-1.37.0-wmf.12/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(989): Banner->cloneBanner(string, User, string)
#1 /srv/mediawiki/php-1.37.0-wmf.12/includes/htmlform/HTMLForm.php(718): SpecialCentralNoticeBanners->processEditBanner(array, CentralNoticeHtmlForm)
#2 /srv/mediawiki/php-1.37.0-wmf.12/includes/htmlform/HTMLForm.php(608): HTMLForm->trySubmit()
#3 /srv/mediawiki/php-1.37.0-wmf.12/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(497): HTMLForm->tryAuthorizedSubmit()
#4 /srv/mediawiki/php-1.37.0-wmf.12/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(93): SpecialCentralNoticeBanners->showBannerEditor()
#5 /srv/mediawiki/php-1.37.0-wmf.12/includes/specialpage/SpecialPage.php(646): SpecialCentralNoticeBanners->execute(string)
#6 /srv/mediawiki/php-1.37.0-wmf.12/includes/specialpage/SpecialPageFactory.php(1362): SpecialPage->run(string)
#7 /srv/mediawiki/php-1.37.0-wmf.12/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#8 /srv/mediawiki/php-1.37.0-wmf.12/includes/MediaWiki.php(917): MediaWiki->performRequest()
#9 /srv/mediawiki/php-1.37.0-wmf.12/includes/MediaWiki.php(551): MediaWiki->main()
#10 /srv/mediawiki/php-1.37.0-wmf.12/index.php(53): MediaWiki->run()
#11 /srv/mediawiki/php-1.37.0-wmf.12/index.php(46): wfIndexMain()
#12 /srv/mediawiki/w/index.php(3): require(string)
#13 {main}
Impact

Noise, but appears to be working as expected.

Notes

From POST requests on metawiki Special:CentralNoticeBanners. Backend is correctly rejecting it but then rendering a fatal error instead of a normal client error.

Details

Request URL
https://meta.wikimedia.org/wiki/Special:CentralNoticeBanners/edit/B2122_0714_jaJP_m_p1_lg_txt_cnt
Related Changes in Gerrit:

Event Timeline

Last seen Dec 18

Error
normalized_message
[{reqId}] {exception_url}   BannerExistenceException: Banner by that name already exists!
exception.trace
from /srv/mediawiki/php-1.42.0-wmf.9/extensions/CentralNotice/includes/Banner.php(1149)
#0 /srv/mediawiki/php-1.42.0-wmf.9/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(993): Banner->cloneBanner(string, MediaWiki\User\User, string)
#1 /srv/mediawiki/php-1.42.0-wmf.9/includes/htmlform/HTMLForm.php(751): SpecialCentralNoticeBanners->processEditBanner(array, CentralNoticeHtmlForm)
#2 /srv/mediawiki/php-1.42.0-wmf.9/includes/htmlform/HTMLForm.php(631): HTMLForm->trySubmit()
#3 /srv/mediawiki/php-1.42.0-wmf.9/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(498): HTMLForm->tryAuthorizedSubmit()
#4 /srv/mediawiki/php-1.42.0-wmf.9/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(95): SpecialCentralNoticeBanners->showBannerEditor()
#5 /srv/mediawiki/php-1.42.0-wmf.9/includes/specialpage/SpecialPage.php(727): SpecialCentralNoticeBanners->execute(string)
#6 /srv/mediawiki/php-1.42.0-wmf.9/includes/specialpage/SpecialPageFactory.php(1652): MediaWiki\SpecialPage\SpecialPage->run(string)
#7 /srv/mediawiki/php-1.42.0-wmf.9/includes/MediaWiki.php(359): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#8 /srv/mediawiki/php-1.42.0-wmf.9/includes/MediaWiki.php(962): MediaWiki->performRequest()
#9 /srv/mediawiki/php-1.42.0-wmf.9/includes/MediaWiki.php(615): MediaWiki->main()
#10 /srv/mediawiki/php-1.42.0-wmf.9/index.php(50): MediaWiki->run()
#11 /srv/mediawiki/php-1.42.0-wmf.9/index.php(46): wfIndexMain()
#12 /srv/mediawiki/w/index.php(3): require(string)
#13 {main}
Error
normalized_message
[{reqId}] {exception_url}   BannerExistenceException: Banner by that name already exists!
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/Banner.php(1171)
#0/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(993)Banner->cloneBanner(string, MediaWiki\User\User, string)
#1/srv/mediawiki/php-1.44.0-wmf.20/includes/htmlform/HTMLForm.php(824)SpecialCentralNoticeBanners->processEditBanner(array, CentralNoticeHtmlForm)
#2/srv/mediawiki/php-1.44.0-wmf.20/includes/htmlform/HTMLForm.php(705)MediaWiki\HTMLForm\HTMLForm->trySubmit()
#3/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(497)MediaWiki\HTMLForm\HTMLForm->tryAuthorizedSubmit()
#4/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(97)SpecialCentralNoticeBanners->showBannerEditor()
#5/srv/mediawiki/php-1.44.0-wmf.20/includes/specialpage/SpecialPage.php(729)SpecialCentralNoticeBanners->execute(string)
#6/srv/mediawiki/php-1.44.0-wmf.20/includes/specialpage/SpecialPageFactory.php(1737)MediaWiki\SpecialPage\SpecialPage->run(string)
#7/srv/mediawiki/php-1.44.0-wmf.20/includes/actions/ActionEntryPoint.php(503)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#8/srv/mediawiki/php-1.44.0-wmf.20/includes/actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#9/srv/mediawiki/php-1.44.0-wmf.20/includes/MediaWikiEntryPoint.php(202)MediaWiki\Actions\ActionEntryPoint->execute()
#10/srv/mediawiki/php-1.44.0-wmf.20/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#11/srv/mediawiki/w/index.php(3)require(string)
#12{main}
Impact
Notes
Error
normalized_message
[{reqId}] {exception_url}   BannerExistenceException: Banner by that name already exists!
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.25/extensions/CentralNotice/includes/Banner.php(1148)
#0/srv/mediawiki/php-1.44.0-wmf.25/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(991)Banner->cloneBanner(string, MediaWiki\User\User, string)
#1/srv/mediawiki/php-1.44.0-wmf.25/includes/htmlform/HTMLForm.php(823)SpecialCentralNoticeBanners->processEditBanner(array, CentralNoticeHtmlForm)
#2/srv/mediawiki/php-1.44.0-wmf.25/includes/htmlform/HTMLForm.php(704)MediaWiki\HTMLForm\HTMLForm->trySubmit()
#3/srv/mediawiki/php-1.44.0-wmf.25/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(495)MediaWiki\HTMLForm\HTMLForm->tryAuthorizedSubmit()
#4/srv/mediawiki/php-1.44.0-wmf.25/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(99)SpecialCentralNoticeBanners->showBannerEditor()
#5/srv/mediawiki/php-1.44.0-wmf.25/includes/specialpage/SpecialPage.php(729)SpecialCentralNoticeBanners->execute(string)
#6/srv/mediawiki/php-1.44.0-wmf.25/includes/specialpage/SpecialPageFactory.php(1738)MediaWiki\SpecialPage\SpecialPage->run(string)
#7/srv/mediawiki/php-1.44.0-wmf.25/includes/actions/ActionEntryPoint.php(499)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#8/srv/mediawiki/php-1.44.0-wmf.25/includes/actions/ActionEntryPoint.php(143)MediaWiki\Actions\ActionEntryPoint->performRequest()
#9/srv/mediawiki/php-1.44.0-wmf.25/includes/MediaWikiEntryPoint.php(202)MediaWiki\Actions\ActionEntryPoint->execute()
#10/srv/mediawiki/php-1.44.0-wmf.25/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#11/srv/mediawiki/w/index.php(3)require(string)
#12{main}
Impact
Notes
Error
  • mwversion: 1.46.0-wmf.2
  • timestamp: 2025-11-12T20:34:08.676Z
  • phpversion: 8.3.26
  • reqId: 6fc51569-3d68-44d3-beac-5df1bee1cdc0
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   BannerExistenceException: Banner by that name already exists!
FrameLocationCall
from/srv/mediawiki/php-1.46.0-wmf.2/extensions/CentralNotice/includes/Banner.php(1156)
#0/srv/mediawiki/php-1.46.0-wmf.2/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(995)Banner->cloneBanner(string, MediaWiki\User\User, string)
#1/srv/mediawiki/php-1.46.0-wmf.2/includes/HTMLForm/HTMLForm.php(812)SpecialCentralNoticeBanners->processEditBanner(array, CentralNoticeHtmlForm)
#2/srv/mediawiki/php-1.46.0-wmf.2/includes/HTMLForm/HTMLForm.php(693)MediaWiki\HTMLForm\HTMLForm->trySubmit()
#3/srv/mediawiki/php-1.46.0-wmf.2/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(501)MediaWiki\HTMLForm\HTMLForm->tryAuthorizedSubmit()
#4/srv/mediawiki/php-1.46.0-wmf.2/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(105)SpecialCentralNoticeBanners->showBannerEditor()
#5/srv/mediawiki/php-1.46.0-wmf.2/includes/SpecialPage/SpecialPage.php(711)SpecialCentralNoticeBanners->execute(string)
#6/srv/mediawiki/php-1.46.0-wmf.2/includes/SpecialPage/SpecialPageFactory.php(1743)MediaWiki\SpecialPage\SpecialPage->run(string)
#7/srv/mediawiki/php-1.46.0-wmf.2/includes/Actions/ActionEntryPoint.php(499)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#8/srv/mediawiki/php-1.46.0-wmf.2/includes/Actions/ActionEntryPoint.php(143)MediaWiki\Actions\ActionEntryPoint->performRequest()
#9/srv/mediawiki/php-1.46.0-wmf.2/includes/MediaWikiEntryPoint.php(184)MediaWiki\Actions\ActionEntryPoint->execute()
#10/srv/mediawiki/php-1.46.0-wmf.2/index.php(44)MediaWiki\MediaWikiEntryPoint->run()
#11/srv/mediawiki/w/index.php(3)require(string)
#12{main}
Impact
Notes

This code seems unrelated to the change that's just gone out. Seems like it is just thrown when the user enters a name that's already in use. I guess we (still) need to catch it and display a proper error in the UI.

Change #1205227 had a related patch set uploaded (by Ejegg; author: Ejegg):

[mediawiki/extensions/CentralNotice@master] Show error on duplicate banner name when cloning

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

Change #1205227 merged by jenkins-bot:

[mediawiki/extensions/CentralNotice@master] Show error on duplicate banner name when cloning

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

Deployed and verified - now cloning to an existing name shows an error in the UI (although you have to scroll down to see it) and does not make an entry in LogStash

Damilare triaged this task as Medium priority.
Damilare set the point value for this task to 2.