Page MenuHomePhabricator

PHP Warning: Undefined array key "EventMeetingCountry"
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.45.0-wmf.15
  • timestamp: 2025-08-20T17:46:37.971Z
  • phpversion: 8.1.33
  • reqId: 1afa26c2-c9d2-4d4f-b4ba-6b670b7587fa
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   PHP Warning: Undefined array key "EventMeetingCountry"
FrameLocationCall
from/srv/mediawiki/php-1.45.0-wmf.15/extensions/CampaignEvents/src/Special/AbstractEventRegistrationSpecialPage.php(708)
#0/srv/mediawiki/php-1.45.0-wmf.15/extensions/CampaignEvents/src/Special/AbstractEventRegistrationSpecialPage.php(708)MediaWiki\Exception\MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.45.0-wmf.15/includes/htmlform/HTMLForm.php(825)MediaWiki\Extension\CampaignEvents\Special\AbstractEventRegistrationSpecialPage->onSubmit(array, MediaWiki\HTMLForm\OOUIHTMLForm)
#2/srv/mediawiki/php-1.45.0-wmf.15/includes/htmlform/HTMLForm.php(706)MediaWiki\HTMLForm\HTMLForm->trySubmit()
#3/srv/mediawiki/php-1.45.0-wmf.15/includes/htmlform/HTMLForm.php(740)MediaWiki\HTMLForm\HTMLForm->tryAuthorizedSubmit()
#4/srv/mediawiki/php-1.45.0-wmf.15/includes/specialpage/FormSpecialPage.php(211)MediaWiki\HTMLForm\HTMLForm->showAlways()
#5/srv/mediawiki/php-1.45.0-wmf.15/extensions/CampaignEvents/src/Special/AbstractEventRegistrationSpecialPage.php(185)MediaWiki\SpecialPage\FormSpecialPage->execute(string)
#6/srv/mediawiki/php-1.45.0-wmf.15/extensions/CampaignEvents/src/Special/SpecialEditEventRegistration.php(132)MediaWiki\Extension\CampaignEvents\Special\AbstractEventRegistrationSpecialPage->execute(string)
#7/srv/mediawiki/php-1.45.0-wmf.15/includes/specialpage/SpecialPage.php(725)MediaWiki\Extension\CampaignEvents\Special\SpecialEditEventRegistration->execute(string)
#8/srv/mediawiki/php-1.45.0-wmf.15/includes/specialpage/SpecialPageFactory.php(1732)MediaWiki\SpecialPage\SpecialPage->run(string)
#9/srv/mediawiki/php-1.45.0-wmf.15/includes/actions/ActionEntryPoint.php(499)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#10/srv/mediawiki/php-1.45.0-wmf.15/includes/actions/ActionEntryPoint.php(143)MediaWiki\Actions\ActionEntryPoint->performRequest()
#11/srv/mediawiki/php-1.45.0-wmf.15/includes/MediaWikiEntryPoint.php(198)MediaWiki\Actions\ActionEntryPoint->execute()
#12/srv/mediawiki/php-1.45.0-wmf.15/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#13/srv/mediawiki/w/index.php(3)require(string)
#14{main}
Impact

Harmless, logspam only.

Notes

Event Timeline

Restricted Application added a project: Connection-Team. · View Herald Transcript
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Daimona updated the task description. (Show Details)

This is a known issue; I'd included a fix in r1176268 since it was small and harmless, but that hasn't been merged yet. So, I'll make a separate patch.

Change #1180633 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Avoid PHP notice in AbstractEventRegistrationSpecialPage for event country

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

Change #1180633 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Avoid PHP notice in AbstractEventRegistrationSpecialPage (country field)

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

Change #1180907 had a related patch set uploaded (by Reedy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@wmf/1.45.0-wmf.15] Avoid PHP notice in AbstractEventRegistrationSpecialPage (country field)

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

Change #1180907 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@wmf/1.45.0-wmf.15] Avoid PHP notice in AbstractEventRegistrationSpecialPage (country field)

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

Mentioned in SAL (#wikimedia-operations) [2025-08-21T17:08:39Z] <reedy@deploy1003> Started scap sync-world: Backport for [[gerrit:1180905|Replace use of deprecated ParsoidExtensionAPI::addModuleStyles() (T402370)]], [[gerrit:1180907|Avoid PHP notice in AbstractEventRegistrationSpecialPage (country field) (T402441)]]

Mentioned in SAL (#wikimedia-operations) [2025-08-21T17:15:02Z] <reedy@deploy1003> reedy: Backport for [[gerrit:1180905|Replace use of deprecated ParsoidExtensionAPI::addModuleStyles() (T402370)]], [[gerrit:1180907|Avoid PHP notice in AbstractEventRegistrationSpecialPage (country field) (T402441)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-08-21T17:22:51Z] <reedy@deploy1003> Finished scap sync-world: Backport for [[gerrit:1180905|Replace use of deprecated ParsoidExtensionAPI::addModuleStyles() (T402370)]], [[gerrit:1180907|Avoid PHP notice in AbstractEventRegistrationSpecialPage (country field) (T402441)]] (duration: 14m 12s)