Page MenuHomePhabricator

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in IPUtils.php on line 111
Closed, ResolvedPublic

Description

( ! ) Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/wiki/mediawiki/core/vendor/wikimedia/ip-utils/src/IPUtils.php on line 111
Call Stack
#	Time	Memory	Function	Location
1	0.0002	364992	{main}( )	.../index.php:0
2	0.0385	4007264	wfIndexMain( )	.../index.php:46
3	0.0385	4007376	MediaWiki->run( )	.../index.php:50
4	0.0385	4007376	MediaWiki->main( )	.../MediaWiki.php:568
5	0.0391	4024656	MediaWiki->performRequest( )	.../MediaWiki.php:911
6	0.0450	4159872	MediaWiki\SpecialPage\SpecialPageFactory->executePath( $path = class Title { private $mTextform = 'Block'; private $mUrlform = 'Block'; private $mDbkeyform = 'Block'; private $mNamespace = -1; private $mInterwiki = ''; private $mLocalInterwiki = FALSE; private $mFragment = ''; public $mArticleID = 0; protected $mLatestID = FALSE; private $mContentModel = FALSE; private $mForcedContentModel = FALSE; private $mEstimateRevisions = NULL; public $prefixedText = NULL; protected $mLength = -1; public $mRedirect = NULL; private $mHasSubpages = NULL; private $mPageLanguage = NULL; private $mDbPageLanguage = FALSE; private $mTitleValue = NULL; private $mIsBigDeletion = NULL; private $mIsValid = TRUE; private $mInstanceCacheKey = NULL; protected $deprecatedPublicProperties = ['mTextform' => [...], 'mUrlform' => [...], 'mDbkeyform' => [...], 'mNamespace' => [...], 'mInterwiki' => [...], 'mFragment' => [...]]; private $dynamicPropertiesAccessDeprecated = FALSE }, $context = class RequestContext { private $request = class WebRequest { protected $data = [...]; protected $queryAndPathParams = [...]; protected $queryParams = [...]; protected $headers = [...]; private $response = class WebResponse { ... }; private $ip = '10.13.37.22'; protected $requestTime = 1659453769.0078; protected $protocol = 'https'; protected $sessionId = class MediaWiki\Session\SessionId { ... }; protected $markedAsSafe = FALSE }; private $title = class Title { private $mTextform = 'Block'; private $mUrlform = 'Block'; private $mDbkeyform = 'Block'; private $mNamespace = -1; private $mInterwiki = ''; private $mLocalInterwiki = FALSE; private $mFragment = ''; public $mArticleID = 0; protected $mLatestID = FALSE; private $mContentModel = FALSE; private $mForcedContentModel = FALSE; private $mEstimateRevisions = NULL; public $prefixedText = 'Special:Block'; protected $mLength = -1; public $mRedirect = NULL; private $mHasSubpages = NULL; private $mPageLanguage = NULL; private $mDbPageLanguage = FALSE; private $mTitleValue = NULL; private $mIsBigDeletion = NULL; private $mIsValid = NULL; private $mInstanceCacheKey = NULL; protected $deprecatedPublicProperties = [...]; private $dynamicPropertiesAccessDeprecated = FALSE }; private $wikipage = NULL; private $action = NULL; private $output = class OutputPage { private ${ContextSource}context = ...; protected $mMetatags = [...]; protected $mLinktags = [...]; protected $mCanonicalUrl = FALSE; private $mPageTitle = 'Block user'; private $displayTitle = NULL; private $cacheIsFinal = FALSE; public $mBodytext = ''; private $mHTMLtitle = 'Block user - ReedyDevWiki'; private $mIsArticle = FALSE; private $mIsArticleRelated = FALSE; private $mHasCopyright = FALSE; private $mPrintable = FALSE; private $mSections = [...]; private $mSubtitle = [...]; public $mRedirect = ''; protected $mStatusCode = NULL; protected $mLastModified = ''; protected $mCategoryLinks = [...]; protected $mCategories = [...]; protected $mIndicators = [...]; private $mLanguageLinks = [...]; private $mScripts = ''; protected $mInlineStyles = ''; public $mPageLinkTitle = ''; protected $mAdditionalHtmlClasses = [...]; protected $mHeadItems = [...]; protected $mAdditionalBodyClasses = [...]; protected $mModules = [...]; protected $mModuleStyles = [...]; protected $mResourceLoader = NULL; private $rlClient = NULL; private $rlClientContext = NULL; private $rlExemptStyleModules = NULL; protected $mJsConfigVars = [...]; protected $mTemplateIds = [...]; protected $mImageTimeKeys = [...]; public $mRedirectCode = ''; protected $mFeedLinksAppendQuery = NULL; protected $mAllowedModules = [...]; protected $mDoNothing = FALSE; protected $mParserOptions = NULL; private $mFeedLinks = [...]; protected $mEnableClientCache = TRUE; private $mArticleBodyOnly = FALSE; protected $mNewSectionLink = FALSE; protected $mHideNewSectionLink = FALSE; public $mNoGallery = FALSE; protected $mCdnMaxage = 0; protected $mCdnMaxageLimit = INF; protected $mPreventClickjacking = TRUE; private $mRevisionId = NULL; private $mRevisionTimestamp = NULL; protected $mFileVersion = NULL; protected $styles = [...]; private $mIndexPolicy = 'noindex'; private $mFollowPolicy = 'nofollow'; private $mRobotsOptions = [...]; private $mVaryHeader = [...]; private $mRedirectedFrom = NULL; private $mProperties = [...]; private $mTarget = NULL; private $mEnableTOC = FALSE; private $copyrightUrl = NULL; private $limitReportJSData = [...]; private $contentOverrides = [...]; private $contentOverrideCallbacks = [...]; private $mLinkHeader = [...]; private $CSP = class ContentSecurityPolicy { ... } }; private $user = class User { public $mId = 1; public $mName = 'Reedy'; public $mActorId = 1; public $mRealName = 'Sam'; public $mEmail = 'sam@reedyboy.net'; public $mTouched = '20220716173926'; protected $mQuickTouched = NULL; protected $mToken = 'a47668ca62955a1c7c36284542d16f8d'; public $mEmailAuthenticated = '20220708234337'; protected $mEmailToken = '\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000'; protected $mEmailTokenExpires = NULL; protected $mRegistration = '20110131194049'; protected $mLoadedItems = TRUE; public $mFrom = 'session'; protected $mDatePreference = NULL; private $mBlockedby = ''; protected $mHash = FALSE; protected $mBlockreason = ''; protected $mGlobalBlock = NULL; protected $mLocked = NULL; private $mHideName = FALSE; private $mRequest = class WebRequest { ... }; private $mBlock = NULL; private $mBlockedFromCreateAccount = FALSE; protected $queryFlagsUsed = 0; private $mThisAsAuthority = class MediaWiki\Permissions\UserAuthority { ... }; private $isTemp = NULL }; private $authority = NULL; private $lang = class Language { public $mCode = 'en-gb'; public $mMagicExtensions = [...]; private $mHtmlCode = NULL; public $dateFormatStrings = [...]; public $mExtendedSpecialPageAliases = [...]; protected $namespaceNames = [...]; protected $mNamespaceIds = NULL; protected $namespaceAliases = NULL; private $transformData = [...]; private $namespaceInfo = class NamespaceInfo { ... }; private $localisationCache = class LocalisationCache { ... }; private $langNameUtils = class MediaWiki\Languages\LanguageNameUtils { ... }; private $langFallback = class MediaWiki\Languages\LanguageFallback { ... }; private $grammarTransformCache = NULL; private $converterFactory = class MediaWiki\Languages\LanguageConverterFactory { ... }; private $hookContainer = class MediaWiki\HookContainer\HookContainer { ... }; private $hookRunner = class MediaWiki\HookContainer\HookRunner { ... }; private $config = class GlobalVarConfig { ... } }; private $skin = class MediaWiki\Skins\Vector\SkinVectorLegacy { private ${ContextSource}context = ...; private ${Skin}defaultLinkOptions = [...]; protected $skinname = 'vector'; protected $options = [...]; protected $mRelevantTitle = NULL; private ${Skin}mRelevantUser = FALSE; private ${Skin}languageLinks = NULL; private ${Skin}sidebar = NULL; private ${Skin}componentRegistry = class MediaWiki\Skin\SkinComponentRegistry { ... }; public $template = NULL; public $thispage = NULL; public $titletxt = NULL; public $userpage = NULL; public $thisquery = NULL; public $loggedin = NULL; public $username = NULL; public $userpageUrlDetails = NULL; private ${SkinTemplate}isTempUser = NULL; private ${SkinTemplate}isNamedUser = NULL; private ${SkinTemplate}templateContextSet = FALSE; private ${SkinTemplate}contentNavigationCached = NULL; private ${SkinMustache}templateParser = NULL; private ${MediaWiki\Skins\Vector\SkinVector}languages = NULL }; private $timing = NULL; private $config = class GlobalVarConfig { private $prefix = 'wg' }; private $languageRecursion = FALSE }, $including = ???, $linkRenderer = ??? )	.../MediaWiki.php:316
7	0.0451	4163960	SpecialPage->run( $subPage = NULL )	.../SpecialPageFactory.php:1423
8	0.0620	5795032	FormSpecialPage->execute( $par = NULL )	.../SpecialPage.php:690
9	0.0706	6274736	FormSpecialPage->getForm( )	.../FormSpecialPage.php:208
10	0.1075	6643120	FormSpecialPage->postText( )	.../FormSpecialPage.php:157
11	0.1075	6643120	SpecialBlock->postHtml( )	.../FormSpecialPage.php:83
12	0.1102	6644256	SpecialBlock::getTargetUserTitle( $target = NULL )	.../SpecialBlock.php:663
13	0.1102	6644256	Wikimedia\IPUtils::isIPAddress( $ip = NULL )	.../SpecialBlock.php:718
14	0.1102	6644256	preg_match( $pattern = '/^(?:(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|0?[0-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|0?[0-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|0?[0-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|0?[0-9]?[0-9])(?:\\/(3[0-2]|[12][0-9]|[0-9]))?|(?::(?::|(?::([0-9A-Fa-f]{1,4})){1,7})|([0-9A-Fa-f]{1,4})(?::([0-9A-Fa-f]{1,4})){0,6}::|([0-9A-Fa-f]{1,4})(?::((?(-1)|:))?([0-9A-Fa-f]{1,4})){1,6}(?(-2)|^)|([0-9A-Fa-f]{1,4})(?::([0-9A-Fa-f]{1,4})){7})(?:\\/(12[0-8]|1[01][0-9]|[1-9][0-9]|[0-9]))?)$/', $subject = NULL )	.../IPUtils.php:111

Event Timeline

Change 819626 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@master] SpecialBlock: Better handle null in getTargetUserTitle

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

Change 819626 merged by jenkins-bot:

[mediawiki/core@master] SpecialBlock: Better handle null in getTargetUserTitle

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

Reedy claimed this task.

Change 819786 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@REL1_38] SpecialBlock: Better handle null in getTargetUserTitle

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

Change 819787 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@REL1_37] SpecialBlock: Better handle null in getTargetUserTitle

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

Change 819788 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/core@REL1_35] SpecialBlock: Better handle null in getTargetUserTitle

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

Change 819787 merged by jenkins-bot:

[mediawiki/core@REL1_37] SpecialBlock: Better handle null in getTargetUserTitle

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

Change 819786 merged by jenkins-bot:

[mediawiki/core@REL1_38] SpecialBlock: Better handle null in getTargetUserTitle

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

Change 819788 merged by jenkins-bot:

[mediawiki/core@REL1_35] SpecialBlock: Better handle null in getTargetUserTitle

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