Page MenuHomePhabricator

PHP Notice: Trying to access array offset on value of type null (in HTMLCentralNoticeBannerMessage)
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Notice: Trying to access array offset on value of type null
exception.trace
from /srv/mediawiki/php-1.39.0-wmf.28/extensions/CentralNotice/includes/HtmlFormElements/HTMLCentralNoticeBannerMessage.php(42)
#0 /srv/mediawiki/php-1.39.0-wmf.28/extensions/CentralNotice/includes/HtmlFormElements/HTMLCentralNoticeBannerMessage.php(42): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.39.0-wmf.28/includes/htmlform/HTMLForm.php(559): HTMLCentralNoticeBannerMessage->__construct(array)
#2 /srv/mediawiki/php-1.39.0-wmf.28/includes/htmlform/HTMLForm.php(407): HTMLForm::loadInputFromParameters(string, array, CentralNoticeHtmlForm)
#3 /srv/mediawiki/php-1.39.0-wmf.28/includes/htmlform/HTMLForm.php(384): HTMLForm->addFields(array)
#4 /srv/mediawiki/php-1.39.0-wmf.28/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(506): HTMLForm->__construct(array, RequestContext, string)
#5 /srv/mediawiki/php-1.39.0-wmf.28/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(93): SpecialCentralNoticeBanners->showBannerEditor()
#6 /srv/mediawiki/php-1.39.0-wmf.28/includes/specialpage/SpecialPage.php(701): SpecialCentralNoticeBanners->execute(string)
#7 /srv/mediawiki/php-1.39.0-wmf.28/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run(string)
#8 /srv/mediawiki/php-1.39.0-wmf.28/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#9 /srv/mediawiki/php-1.39.0-wmf.28/includes/MediaWiki.php(904): MediaWiki->performRequest()
#10 /srv/mediawiki/php-1.39.0-wmf.28/includes/MediaWiki.php(562): MediaWiki->main()
#11 /srv/mediawiki/php-1.39.0-wmf.28/index.php(50): MediaWiki->run()
#12 /srv/mediawiki/php-1.39.0-wmf.28/index.php(46): wfIndexMain()
#13 /srv/mediawiki/w/index.php(3): require(string)
#14 {main}
Impact
Notes

Only a single spike of ~18 events

image.png (270×652 px, 10 KB)

Details

Request URL
https://meta.wikimedia.org/wiki/Special:CentralNoticeBanners/edit/Discussion_Tools_feedback2

Event Timeline

Umherirrender renamed this task from PHP Notice: Trying to access array offset on value of type null to PHP Notice: Trying to access array offset on value of type null (in HTMLCentralNoticeBannerMessage).Sep 16 2022, 9:27 PM
Umherirrender added a project: PHP 7.4 support.

Change 832709 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/CentralNotice@master] HTMLCentralNoticeBannerMessage: Do not use mParams in constructor

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

Change 832709 merged by jenkins-bot:

[mediawiki/extensions/CentralNotice@master] HTMLCentralNoticeBannerMessage: Do not use mParams in constructor

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