Page MenuHomePhabricator

NumerAlpha extension: BadMethodCallException from line 847 of /../w/includes/session/SessionManager.php: Sessions are disabled for this entry point
Closed, ResolvedPublic

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
  • NumerAlpha 0.7.0 (4998ed3) 23:28, 7. Feb. 2018

Issue
Originally reported with T181676 but it turned out to be caused by the NumerAlpha extension (T181676#3810669). Note that this is unrelated to CodeMirror since after disabling NumerAlpha 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/Message.php(380): RequestContext->getLanguage()
#8 /../w/includes/Message.php(1275): Message->getLanguage()
#9 /../w/includes/Message.php(842): Message->fetchMessage()
#10 /../w/includes/Message.php(934): Message->toString(string)
#11 /../w/extensions/NumerAlpha/NumerAlpha.class.php(43): Message->text()
#12 /../w/includes/Hooks.php(177): NumerAlpha::onParserFirstCallInit(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}