Page MenuHomePhabricator

Arrays extension: BadMethodCallException from line 847 of /../w/includes/session/SessionManager.php: Sessions are disabled for this entry point
Open, Needs TriagePublic

Description

Setup

  • MediaWiki 1.30.0 (4998ed3) 23:28, 7. Feb. 2018
  • PHP 7.0.27-0+deb9u1 (apache2handler)
  • MariaDB 10.1.26-MariaDB-0+deb9u1
  • Arrays 2.1.0 (491256a) 09:45, 1. Aug. 2017

Issue
Originally reported with T181676 but it turned out to be caused by the Arrays extension (T181676#3810669). Note that this is unrelated to CodeMirror since after disabling Arrays the issue no longer appears.

[73bf01f2bc8b13628b694d3a] /w/load.php?debug=false&lang=de&modules=startup&only=scripts&skin=chameleon   BadMethodCallException from line 847 of /../w/includes/session/SessionManager.php: Sessions are disabled for this entry point

This started after upgrading to MediaWiki 1.30.x and is perhaps related to T127233 and/or T187769. Same for PHP 5.6.30-0+deb8u1 (apache2handler) and
MariaDB 10.0.33-MariaDB-1~jessie.

This also happened to Semantic MediaWiki and was fixed as mentioned here: T181676#3810864. Hope this helps.

Backtrace

#0 /../w/includes/session/SessionManager.php(195): MediaWiki\Session\SessionManager->getSessionFromInfo(MediaWiki\Session\SessionInfo, WebRequest)
#1 /../w/includes/WebRequest.php(735): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#2 /../w/includes/user/User.php(1231): WebRequest->getSession()
#3 /../w/includes/user/User.php(408): User->loadFromSession()
#4 /../w/includes/user/User.php(5266): User->load()
#5 /../w/includes/user/User.php(2884): User->loadOptions()
#6 /../w/includes/context/RequestContext.php(364): User->getOption(string)
#7 /../w/includes/StubObject.php(205): RequestContext->getLanguage()
#8 /../w/includes/StubObject.php(167): StubUserLang->_newObject()
#9 /../w/includes/StubObject.php(110): StubObject->_unstub(string, integer)
#10 /../w/includes/StubObject.php(137): StubObject->_call(string, array)
#11 /../w/extensions/Arrays/Arrays.php(108): StubObject->__call(string, array)
#12 /../w/includes/Hooks.php(177): ExtArrays::init(Parser)
#13 /../w/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)
#14 /../w/includes/parser/Parser.php(337): Hooks::run(string, array)
#15 /../w/extensions/CodeMirror/ResourceLoaderCodeMirrorModule.php(70): Parser->firstCallInit()
#16 /../w/extensions/CodeMirror/ResourceLoaderCodeMirrorModule.php(32): ResourceLoaderCodeMirrorModule->getFrontendConfiguraton()
#17 /../w/includes/resourceloader/ResourceLoaderModule.php(719): ResourceLoaderCodeMirrorModule->getScript(DerivativeResourceLoaderContext)
#18 /../w/includes/resourceloader/ResourceLoaderModule.php(687): ResourceLoaderModule->buildContent(DerivativeResourceLoaderContext)
#19 /../w/includes/resourceloader/ResourceLoaderModule.php(841): ResourceLoaderModule->getModuleContent(DerivativeResourceLoaderContext)
#20 /../w/includes/resourceloader/ResourceLoader.php(667): ResourceLoaderModule->getVersionHash(DerivativeResourceLoaderContext)
#21 [internal function]: ResourceLoader->{closure}(string)
#22 /../w/includes/resourceloader/ResourceLoader.php(680): array_map(Closure, array)
#23 /../w/includes/resourceloader/ResourceLoaderStartUpModule.php(434): ResourceLoader->getCombinedVersion(DerivativeResourceLoaderContext, array)
#24 /../w/includes/resourceloader/ResourceLoaderStartUpModule.php(407): ResourceLoaderStartUpModule->getAllModuleHashes(DerivativeResourceLoaderContext)
#25 /../w/includes/resourceloader/ResourceLoaderModule.php(844): ResourceLoaderStartUpModule->getDefinitionSummary(DerivativeResourceLoaderContext)
#26 /../w/includes/resourceloader/ResourceLoader.php(667): ResourceLoaderModule->getVersionHash(DerivativeResourceLoaderContext)
#27 [internal function]: ResourceLoader->{closure}(string)
#28 /../w/includes/resourceloader/ResourceLoader.php(680): array_map(Closure, array)
#29 /../w/includes/resourceloader/ResourceLoader.php(760): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)
#30 /../w/load.php(53): ResourceLoader->respond(ResourceLoaderContext)
#31 {main}

Event Timeline

Kghbln created this task.Feb 20 2018, 3:52 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 20 2018, 3:52 PM
Kghbln updated the task description. (Show Details)Feb 20 2018, 4:01 PM
Kghbln updated the task description. (Show Details)Feb 20 2018, 4:04 PM
Kghbln updated the task description. (Show Details)