Page MenuHomePhabricator

PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.20/includes/Html/Html.php(872)
#0[internal function]MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.44.0-wmf.20/includes/Html/Html.php(872)substr(null, int, int)
#2/srv/mediawiki/php-1.44.0-wmf.20/includes/htmlform/fields/HTMLTextAreaField.php(109)MediaWiki\Html\Html::textarea(string, null, array)
#3/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/HtmlFormElements/HTMLCentralNoticeBannerMessage.php(79)MediaWiki\HTMLForm\Field\HTMLTextAreaField->getInputHTML(null)
#4/srv/mediawiki/php-1.44.0-wmf.20/includes/htmlform/HTMLFormField.php(703)HTMLCentralNoticeBannerMessage->getInputHTML(string)
#5/srv/mediawiki/php-1.44.0-wmf.20/includes/htmlform/HTMLForm.php(2119)MediaWiki\HTMLForm\HTMLFormField->getDiv(string)
#6/srv/mediawiki/php-1.44.0-wmf.20/includes/htmlform/HTMLForm.php(2040)MediaWiki\HTMLForm\HTMLForm->formatField(HTMLCentralNoticeBannerMessage, string)
#7/srv/mediawiki/php-1.44.0-wmf.20/includes/htmlform/HTMLForm.php(2057)MediaWiki\HTMLForm\HTMLForm->displaySection(array, string, string, bool)
#8/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/specials/CentralNoticeHtmlForm.php(11)MediaWiki\HTMLForm\HTMLForm->displaySection(array, string, string)
#9/srv/mediawiki/php-1.44.0-wmf.20/includes/htmlform/HTMLForm.php(1425)CentralNoticeHtmlForm->getBody()
#10/srv/mediawiki/php-1.44.0-wmf.20/includes/htmlform/HTMLForm.php(1369)MediaWiki\HTMLForm\HTMLForm->getHTML(bool)
#11/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(516)MediaWiki\HTMLForm\HTMLForm->displayForm(bool)
#12/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/specials/SpecialCentralNoticeBanners.php(97)SpecialCentralNoticeBanners->showBannerEditor()
#13/srv/mediawiki/php-1.44.0-wmf.20/includes/specialpage/SpecialPage.php(729)SpecialCentralNoticeBanners->execute(string)
#14/srv/mediawiki/php-1.44.0-wmf.20/includes/specialpage/SpecialPageFactory.php(1737)MediaWiki\SpecialPage\SpecialPage->run(string)
#15/srv/mediawiki/php-1.44.0-wmf.20/includes/actions/ActionEntryPoint.php(503)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#16/srv/mediawiki/php-1.44.0-wmf.20/includes/actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#17/srv/mediawiki/php-1.44.0-wmf.20/includes/MediaWikiEntryPoint.php(202)MediaWiki\Actions\ActionEntryPoint->execute()
#18/srv/mediawiki/php-1.44.0-wmf.20/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#19/srv/mediawiki/w/index.php(3)require(string)
#20{main}
Impact
Notes

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

Change #1128410 had a related patch set uploaded (by Paladox; author: Paladox):

[mediawiki/core@master] Html: Fix "substr(): Passing null to parameter #1 ($string) of type string is deprecated"

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

Jdforrester-WMF changed the task status from Open to In Progress.Mar 17 2025, 3:15 PM
Jdforrester-WMF assigned this task to Paladox.

Change #1128410 merged by jenkins-bot:

[mediawiki/core@master] Html: Fix "substr(): Passing null to parameter #1 ($string) of type string is deprecated"

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

Change #1128453 had a related patch set uploaded (by Jforrester; author: Paladox):

[mediawiki/core@REL1_43] Html: Fix "substr(): Passing null to parameter #1 ($string) of type string is deprecated"

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

Change #1128455 had a related patch set uploaded (by Jforrester; author: Paladox):

[mediawiki/core@REL1_42] Html: Fix "substr(): Passing null to parameter #1 ($string) of type string is deprecated"

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

Change #1128456 had a related patch set uploaded (by Jforrester; author: Paladox):

[mediawiki/core@REL1_39] Html: Fix "substr(): Passing null to parameter #1 ($string) of type string is deprecated"

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

Change #1128456 abandoned by Jforrester:

[mediawiki/core@REL1_39] Html: Fix "substr(): Passing null to parameter #1 ($string) of type string is deprecated"

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

Change #1128455 merged by jenkins-bot:

[mediawiki/core@REL1_42] Html: Fix "substr(): Passing null to parameter #1 ($string) of type string is deprecated"

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

Change #1128453 merged by jenkins-bot:

[mediawiki/core@REL1_43] Html: Fix "substr(): Passing null to parameter #1 ($string) of type string is deprecated"

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

Jdforrester-WMF subscribed.

Provisionally calling this Resolved.