Page MenuHomePhabricator

BadMethodCallException: Sessions are disabled for this entry point in /srv/mediawiki/w/includes/session/SessionManager.php:849
Closed, ResolvedPublic

Description

Under php 7.4 I'm getting:

Dec 02 00:18:59 mw8 php-fpm7.4[206939]: ool www[206939]: PHP Warning:  Exception caught in Message::__toString (message ): BadMethodCallException: Sessions are disabled for this entry point in /srv/mediawiki/w/includes/session/SessionManager.php:849
Dec 02 00:18:59 mw8 php-fpm7.4[206939]: ool www[206939]: Stack trace:
Dec 02 00:18:59 mw8 php-fpm7.4[206939]: ool www[206939]: #0 /srv/mediawiki/w/includes/session/SessionManager.php(333): MediaWiki\Session\SessionManager->getSessionFromInfo(Object(MediaWiki\Session\SessionInfo), Object(WebRequest))
Dec 02 00:18:59 mw8 php-fpm7.4[206939]: ool www[206939]: #1 /srv/mediawiki/w/includes/session/SessionManager.php(267): MediaWiki\Session\SessionManager->getEmptySessionInternal(Object(WebRequest))
Dec 02 00:18:59 mw8 php-fpm7.4[206939]: ool www[206939]: #2 /srv/mediawiki/w/includes/session/SessionManager.php(217): MediaWiki\Session\SessionManager->getEmptySession(Object(WebRequest))
Dec 02 00:18:59 mw8 php-fpm7.4[206939]: ool www[206939]: #3 /srv/mediawiki/w/includes/WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest(Object(WebRequest))
Dec 02 00:18:59 mw8 php-fpm7.4[206939]: ool www[206939]: #4 /srv/mediawiki/w/includes/user/User.php(1292): WebRequest->getSession()
Dec 02 00:18:59 mw8 php-fpm7.4[206939]: ool www[206939]: #5 /srv/mediawiki/w/includes/user/User.php(430): User->loadFromSession()
Dec 02 00:18:59 mw8 php-fpm7.4[206939]: ool www[206939]: #6 /srv/mediawiki/w/includes/user/User.php(2101): User->load()
Dec 02 00:18:59 mw8 php-fpm7.4[206939]: ool www[206939]: #7 /srv/mediawiki/w/includes/user/User.php(3073):  in /srv/mediawiki/w/includes/language/Message.php on line 957

Running MW 1.36.

Event Timeline

BadMethodCallException: Sessions are disabled for this entry point

Which entry point would that be?

BadMethodCallException: Sessions are disabled for this entry point

Which entry point would that be?

I’m not sure, that’s what I saw in the log (didn’t specify which end point though)

Change 745129 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/core@master] Add entry point name to disabled Session exception if possible

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

Change 745129 merged by jenkins-bot:

[mediawiki/core@master] Add entry point name to disabled Session exception if possible

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

Change 751832 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/core@REL1_36] Add entry point name to disabled Session exception if possible

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

Change 752774 had a related patch set uploaded (by Zabe; author: Ammarpad):

[mediawiki/core@REL1_37] Add entry point name to disabled Session exception if possible

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

Change 751832 merged by jenkins-bot:

[mediawiki/core@REL1_36] Add entry point name to disabled Session exception if possible

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

Change 752774 merged by jenkins-bot:

[mediawiki/core@REL1_37] Add entry point name to disabled Session exception if possible

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

Ammarpad claimed this task.
Ammarpad subscribed.

I think this is made somewhat better now, at least to help pinpoint the problem when you have newer log entries with the entry point name.