( ! ) Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/wiki/mediawiki/core/includes/specials/pagers/ImageListPager.php on line 501 Call Stack # Time Memory Function Location 1 0.0001 361656 {main}( ) .../index.php:0 2 0.0403 3537112 wfIndexMain( ) .../index.php:46 3 0.0403 3537224 MediaWiki->run( ) .../index.php:50 4 0.0403 3537224 MediaWiki->main( ) .../MediaWiki.php:569 5 0.0409 3551248 MediaWiki->performRequest( ) .../MediaWiki.php:913 6 0.0461 3799096 MediaWiki\SpecialPage\SpecialPageFactory->executePath( $path = class Title { private $mTextform = 'ListFiles'; private $mUrlform = 'ListFiles'; private $mDbkeyform = 'ListFiles'; 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 = 1656453958.0802; protected $protocol = 'http'; protected $sessionId = class MediaWiki\Session\SessionId { ... }; protected $markedAsSafe = FALSE }; private $title = class Title { private $mTextform = 'ListFiles'; private $mUrlform = 'ListFiles'; private $mDbkeyform = 'ListFiles'; 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:ListFiles'; 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 = 'File list'; private $displayTitle = NULL; private $cacheIsFinal = FALSE; public $mBodytext = '<div class="mw-specialpage-summary">\n<p>This special page shows all uploaded files.\n</p>\n</div><div class=\'mw-htmlform-ooui-wrapper oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-padded oo-ui-panelLayout-framed\'><form id=\'mw-listfiles-form\' action=\'/wiki/Special:ListFiles\' method=\'get\' enctype=\'application/x-www-form-urlencoded\' class=\'mw-htmlform mw-htmlform-ooui oo-ui-layout oo-ui-formLayout\'><fieldset class=\'oo-ui-layout oo-ui-labelElement oo-ui-fieldsetLayout\'><legend class=\'oo-ui-fieldsetLayout-heade'...; private $mHTMLtitle = 'File list - 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 = class ParserOptions { ... }; 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 = 0; public $mName = '10.13.37.22'; public $mActorId = NULL; public $mRealName = ''; public $mEmail = ''; public $mTouched = '1'; protected $mQuickTouched = NULL; protected $mToken = NULL; public $mEmailAuthenticated = NULL; protected $mEmailToken = ''; protected $mEmailTokenExpires = NULL; protected $mRegistration = '20220628220558'; protected $mLoadedItems = TRUE; public $mFrom = 'session'; protected $mDatePreference = 'default'; private $mBlockedby = -1; protected $mHash = FALSE; protected $mBlockreason = NULL; protected $mGlobalBlock = NULL; protected $mLocked = NULL; private $mHideName = NULL; 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.0462 3803064 SpecialPage->run( $subPage = NULL ) .../SpecialPageFactory.php:1418 8 0.0473 3848440 SpecialListFiles->execute( $par = NULL ) .../SpecialPage.php:690 9 0.0889 5486848 TablePager->getFullOutput( ) .../SpecialListFiles.php:125 10 0.0911 5509384 IndexPager->getBody( ) .../TablePager.php:111 11 0.2525 5682112 IndexPager->getRow( $row = class stdClass { public $img_timestamp = '20220602222038'; public $img_name = 'Change-your-logo-icon-new.svg'; public $img_size = '12126'; public $top = 'yes'; public $img_description_text = ''; public $img_description_data = NULL; public $img_description_cid = '1'; public $description_field = 'img_description'; public $actor_user = NULL; public $actor_name = '10.13.37.100'; public $count = '0' } ) .../IndexPager.php:634 12 0.2525 5682112 TablePager->formatRow( $row = class stdClass { public $img_timestamp = '20220602222038'; public $img_name = 'Change-your-logo-icon-new.svg'; public $img_size = '12126'; public $top = 'yes'; public $img_description_text = ''; public $img_description_data = NULL; public $img_description_cid = '1'; public $description_field = 'img_description'; public $actor_user = NULL; public $actor_name = '10.13.37.100'; public $count = '0' } ) .../IndexPager.php:597 13 0.2901 5692576 ImageListPager->formatValue( $field = 'img_actor', $value = NULL ) .../TablePager.php:200 14 0.2901 5692576 htmlspecialchars( $string = NULL ) .../ImageListPager.php:501
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | BUG REPORT | None | T289926 Fix passing null to non-null param of PHP internal functions in MediaWiki core (PHP 8.1 warning) | ||
Resolved | Reedy | T311561 Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in ImageListPager.php on line 501 |
Event Timeline
Change 810463 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/core@master] ImageListPager: Don't call htmlspecialchars() on null
Change 810463 merged by jenkins-bot:
[mediawiki/core@master] ImageListPager: Don't call htmlspecialchars() on null
Change 810492 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/core@REL1_38] ImageListPager: Don't call htmlspecialchars() on null
Change 810493 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/core@REL1_37] ImageListPager: Don't call htmlspecialchars() on null
Change 810494 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/core@REL1_35] ImageListPager: Don't call htmlspecialchars() on null
Change 810494 merged by jenkins-bot:
[mediawiki/core@REL1_35] ImageListPager: Don't call htmlspecialchars() on null
Change 810493 merged by jenkins-bot:
[mediawiki/core@REL1_37] ImageListPager: Don't call htmlspecialchars() on null
Change 810492 merged by jenkins-bot:
[mediawiki/core@REL1_38] ImageListPager: Don't call htmlspecialchars() on null