Page MenuHomePhabricator

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

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.19/extensions/WikimediaEvents/includes/PrefUpdateInstrumentation.php(222)
#0[internal function]MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.44.0-wmf.19/extensions/WikimediaEvents/includes/PrefUpdateInstrumentation.php(222)preg_split(string, null, int, int)
#2/srv/mediawiki/php-1.44.0-wmf.19/extensions/WikimediaEvents/includes/PrefUpdateInstrumentation.php(179)WikimediaEvents\PrefUpdateInstrumentation::createPrefUpdateEvent(MediaWiki\User\User, string, null, string)
#3/srv/mediawiki/php-1.44.0-wmf.19/includes/HookContainer/HookContainer.php(155)WikimediaEvents\PrefUpdateInstrumentation->onSaveUserOptions(MediaWiki\User\User, array, array)
#4/srv/mediawiki/php-1.44.0-wmf.19/includes/HookContainer/HookRunner.php(4510)MediaWiki\HookContainer\HookContainer->run(string, array)
#5/srv/mediawiki/php-1.44.0-wmf.19/includes/user/Options/UserOptionsManager.php(350)MediaWiki\HookContainer\HookRunner->onSaveUserOptions(MediaWiki\User\User, array, array)
#6/srv/mediawiki/php-1.44.0-wmf.19/includes/user/User.php(2451)MediaWiki\User\Options\UserOptionsManager->saveOptionsInternal(MediaWiki\User\User)
#7/srv/mediawiki/php-1.44.0-wmf.19/includes/preferences/DefaultPreferencesFactory.php(2041)MediaWiki\User\User->saveSettings()
#8/srv/mediawiki/php-1.44.0-wmf.19/extensions/GlobalPreferences/includes/GlobalPreferencesFactory.php(360)MediaWiki\Preferences\DefaultPreferencesFactory->saveFormData(array, PreferencesFormOOUI, array)
#9/srv/mediawiki/php-1.44.0-wmf.19/includes/preferences/DefaultPreferencesFactory.php(2088)GlobalPreferences\GlobalPreferencesFactory->saveFormData(array, PreferencesFormOOUI, array)
#10/srv/mediawiki/php-1.44.0-wmf.19/includes/preferences/DefaultPreferencesFactory.php(1962)MediaWiki\Preferences\DefaultPreferencesFactory->submitForm(array, PreferencesFormOOUI, array)
#11/srv/mediawiki/php-1.44.0-wmf.19/includes/htmlform/HTMLForm.php(824)MediaWiki\Preferences\DefaultPreferencesFactory->MediaWiki\Preferences\{closure}(array, PreferencesFormOOUI)
#12/srv/mediawiki/php-1.44.0-wmf.19/includes/htmlform/HTMLForm.php(705)MediaWiki\HTMLForm\HTMLForm->trySubmit()
#13/srv/mediawiki/php-1.44.0-wmf.19/includes/htmlform/HTMLForm.php(721)MediaWiki\HTMLForm\HTMLForm->tryAuthorizedSubmit()
#14/srv/mediawiki/php-1.44.0-wmf.19/includes/specials/SpecialPreferences.php(132)MediaWiki\HTMLForm\HTMLForm->show()
#15/srv/mediawiki/php-1.44.0-wmf.19/includes/specialpage/SpecialPage.php(729)MediaWiki\Specials\SpecialPreferences->execute(null)
#16/srv/mediawiki/php-1.44.0-wmf.19/includes/specialpage/SpecialPageFactory.php(1737)MediaWiki\SpecialPage\SpecialPage->run(null)
#17/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(503)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#18/srv/mediawiki/php-1.44.0-wmf.19/includes/actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#19/srv/mediawiki/php-1.44.0-wmf.19/includes/MediaWikiEntryPoint.php(202)MediaWiki\Actions\ActionEntryPoint->execute()
#20/srv/mediawiki/php-1.44.0-wmf.19/index.php(58)MediaWiki\MediaWikiEntryPoint->run()
#21/srv/mediawiki/w/index.php(3)require(string)
#22{main}
Impact
Notes

Details

Request URL
https://en.wikipedia.org/wiki/Special:Preferences
Related Changes in Gerrit:

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 #1127581 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikimediaEvents@master] [WIP] PrefUpdateInstrumentation: Error on null/non-string VALUE_NEWLINE_COUNT pref value (?)

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

Jdforrester-WMF changed the task status from Open to In Progress.Mar 16 2025, 10:55 PM
Jdforrester-WMF claimed this task.

Still seen in 1.45.0-wmf.6 logs and there is a patch awaiting review, thus adding Data-Engineering as I vaguely assume that they might be stewards - no idea how to interpret "Data Products" listed on https://www.mediawiki.org/wiki/Developers/Maintainers (please correct that if you are the stewards - thanks!).

Milimetric moved this task from Incoming to Backlog on the Test Kitchen board.

Change #1127581 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] PrefUpdateInstrumentation: Don't error on null pref value

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