Error
Request URL: /wiki/Wt/en (at incubator.wikimedia.org)
Request ID: XK4KSgpAICgAAEsXOUUAAACV
Fatal error: [] operator not supported for strings PHP Fatal Error: Uncaught Error: [] operator not supported for strings in /srv/mediawiki/php-1.33.0-wmf.25/extensions/WikimediaIncubator/includes/WikimediaIncubator.php:402
#0 /srv/mediawiki/php-1.33.0-wmf.24/includes/Hooks.php(174): WikimediaIncubator::onGetUserPermissionsErrors(Title, User, string, string) #1 /srv/mediawiki/php-1.33.0-wmf.24/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL) #2 /srv/mediawiki/php-1.33.0-wmf.24/includes/Title.php(2278): Hooks::run(string, array) #3 /srv/mediawiki/php-1.33.0-wmf.24/includes/Title.php(2837): Title->checkPermissionHooks(string, User, array, string, boolean) #4 /srv/mediawiki/php-1.33.0-wmf.24/includes/Title.php(2117): Title->getUserPermissionsErrorsInternal(string, User, string, boolean) #5 /srv/mediawiki/php-1.33.0-wmf.24/includes/Title.php(2099): Title->userCan(string, User, boolean) #6 /srv/mediawiki/php-1.33.0-wmf.24/includes/skins/SkinTemplate.php(914): Title->quickUserCan(string, User) #7 /srv/mediawiki/php-1.33.0-wmf.24/includes/skins/SkinTemplate.php(466): SkinTemplate->buildContentNavigationUrls() #8 /srv/mediawiki/php-1.33.0-wmf.24/includes/skins/SkinTemplate.php(228): SkinTemplate->prepareQuickTemplate() #9 /srv/mediawiki/php-1.33.0-wmf.24/includes/OutputPage.php(2723): SkinTemplate->outputPage() #10 /srv/mediawiki/php-1.33.0-wmf.24/includes/exception/MWExceptionRenderer.php(136): OutputPage->output() #11 /srv/mediawiki/php-1.33.0-wmf.24/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(Error) #12 /srv/mediawiki/php-1.33.0-wmf.24/includes/exception/MWExceptionHandler.php(98): MWExceptionRenderer::output(Error, integer) #13 /srv/mediawiki/php-1.33.0-wmf.24/includes/exception/MWExceptionHandler.php(172): MWExceptionHandler::report(Error) #14 /srv/mediawiki/php-1.33.0-wmf.24/includes/MediaWiki.php(547): MWExceptionHandler::handleException(Error) #15 /srv/mediawiki/php-1.33.0-wmf.24/index.php(42): MediaWiki->run()
Impact
- Users are consistently unable to view certain pages on Wikimedia Incubator.
- The fatal is triggered from a GET request and affects anonymous users as well. These result in uncached HTTP 500 Error responses which is a risk for load, caching, and false alarms affecting MW deployments and SRE alerts.
Notes
Affects both PHP 7.2 and HHVM (error message varies slightly).
Users have encountered this since at least php-1.33.0-wmf.21.