Steps to replicate the issue (include links if applicable):
- Visit /w/i.php?title=Special:AllPages&namespace=2300 (use namespace id that doesn't exist)
What happens?:
[2024-10-23T08:18:51.435852+00:00] error.WARNING: [a23a08c8772df1a869637238] /w/i.php?title=Special:AllPages&namespace=2300 PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated {"exception":"[object] (ErrorException(code: 0): PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated at /srv/mediawiki/workdir/includes/specials/SpecialAllPages.php:143) [stacktrace] #0 [internal function]: MWExceptionHandler::handleError() #1 /srv/mediawiki/workdir/includes/specials/SpecialAllPages.php(143): str_replace() #2 /srv/mediawiki/workdir/includes/specials/SpecialAllPages.php(349): MediaWiki\\Specials\\SpecialAllPages->outputHTMLForm() #3 /srv/mediawiki/workdir/includes/specials/SpecialAllPages.php(190): MediaWiki\\Specials\\SpecialAllPages->showChunk() #4 /srv/mediawiki/workdir/includes/specials/SpecialAllPages.php(112): MediaWiki\\Specials\\SpecialAllPages->showToplevel() #5 /srv/mediawiki/workdir/includes/specialpage/SpecialPage.php(728): MediaWiki\\Specials\\SpecialAllPages->execute() #6 /srv/mediawiki/workdir/includes/specialpage/SpecialPageFactory.php(1724): MediaWiki\\SpecialPage\\SpecialPage->run() #7 /srv/mediawiki/workdir/includes/actions/ActionEntryPoint.php(504): MediaWiki\\SpecialPage\\SpecialPageFactory->executePath() #8 /srv/mediawiki/workdir/includes/actions/ActionEntryPoint.php(146): MediaWiki\\Actions\\ActionEntryPoint->performRequest() #9 /srv/mediawiki/workdir/includes/MediaWikiEntryPoint.php(200): MediaWiki\\Actions\\ActionEntryPoint->execute() #10 /srv/mediawiki/workdir/index.php(58): MediaWiki\\MediaWikiEntryPoint->run() #11 {main} ","exception_url":"/w/i.php?title=Special:AllPages&namespace=2300","reqId":"a23a08c8772df1a869637238","caught_by":"mwe_handler"} []
What should have happened instead?:
No error
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
I don't see any recent changes to this class that might have caused this.
DetailsSubject Repo Branch Lines +/- specials: Avoid passing null to str_replace() mediawiki/core master +1 -1 Customize query in gerritEvent Timeline
Comment ActionsChange #1082496 had a related patch set uploaded (by Ammarpad; author: Ammarpad):
[mediawiki/core@master] specials: Avoid passing null to str_replace()
Comment ActionsChange #1082496 merged by jenkins-bot:
[mediawiki/core@master] specials: Avoid passing null to str_replace()
Comment ActionsChange #1082505 had a related patch set uploaded (by Reedy; author: Ammarpad):
[mediawiki/core@REL1_43] specials: Avoid passing null to str_replace()
Comment ActionsChange #1082506 had a related patch set uploaded (by Reedy; author: Ammarpad):
[mediawiki/core@REL1_42] specials: Avoid passing null to str_replace()
Comment ActionsChange #1082507 had a related patch set uploaded (by Reedy; author: Ammarpad):
[mediawiki/core@REL1_41] specials: Avoid passing null to str_replace()
Comment ActionsChange #1082508 had a related patch set uploaded (by Reedy; author: Ammarpad):
[mediawiki/core@REL1_39] specials: Avoid passing null to str_replace()
Comment ActionsChange #1082505 merged by jenkins-bot:
[mediawiki/core@REL1_43] specials: Avoid passing null to str_replace()
Comment ActionsChange #1082507 merged by jenkins-bot:
[mediawiki/core@REL1_41] specials: Avoid passing null to str_replace()
Comment ActionsChange #1082508 merged by jenkins-bot:
[mediawiki/core@REL1_39] specials: Avoid passing null to str_replace()
Comment ActionsChange #1082506 merged by jenkins-bot:
[mediawiki/core@REL1_42] specials: Avoid passing null to str_replace()
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
specials: Avoid passing null to str_replace() | mediawiki/core | master | +1 -1 | |
Customize query in gerritEvent TimelineComment Actions Change #1082496 had a related patch set uploaded (by Ammarpad; author: Ammarpad): [mediawiki/core@master] specials: Avoid passing null to str_replace() Comment Actions Change #1082496 merged by jenkins-bot: [mediawiki/core@master] specials: Avoid passing null to str_replace() Comment Actions Change #1082505 had a related patch set uploaded (by Reedy; author: Ammarpad): [mediawiki/core@REL1_43] specials: Avoid passing null to str_replace() Comment Actions Change #1082506 had a related patch set uploaded (by Reedy; author: Ammarpad): [mediawiki/core@REL1_42] specials: Avoid passing null to str_replace() Comment Actions Change #1082507 had a related patch set uploaded (by Reedy; author: Ammarpad): [mediawiki/core@REL1_41] specials: Avoid passing null to str_replace() Comment Actions Change #1082508 had a related patch set uploaded (by Reedy; author: Ammarpad): [mediawiki/core@REL1_39] specials: Avoid passing null to str_replace() Comment Actions Change #1082505 merged by jenkins-bot: [mediawiki/core@REL1_43] specials: Avoid passing null to str_replace() Comment Actions Change #1082507 merged by jenkins-bot: [mediawiki/core@REL1_41] specials: Avoid passing null to str_replace() Comment Actions Change #1082508 merged by jenkins-bot: [mediawiki/core@REL1_39] specials: Avoid passing null to str_replace() Comment Actions Change #1082506 merged by jenkins-bot: [mediawiki/core@REL1_42] specials: Avoid passing null to str_replace() |