Topic on Extension talk:VisualEditor

Sessions are disabled for this entry point

5
Waanders (talkcontribs)

Using PHP 5.5.9-1ubuntu4.21 (apache2handler) and mySQL 5.5.49-0ubuntu0.14.04.1, we try to upgrade our wikifarm to MediaWiki 1.28.2 with Semantic MediaWiki 2.5.2. So latest stable versions of both.

It's working fine till we use the Visual Editor-extension. Console of browser gives this error:.

"/wiki/testwiki/wiki/load.php?debug=false&lang=nl&modules=startup&only=scripts&skin=vector   BadMethodCallException from line 845 of /home/hz01/mediawiki/core/includes/session/SessionManager.php: Sessions are disabled for this entry point"

This message disappears as soon as I remove "require_once "$IP/extensions/VisualEditor/VisualEditor.php"" from LocalSettings.php.

How can I fix this?

Regards, Jethro

Ciencia Al Poder (talkcontribs)
Waanders (talkcontribs)

Thanks. But as said I'm using SMW version 2.5.2, the latest version.

And removing "require_once "$IP/extensions/VisualEditor/VisualEditor.php"" does the message disappear. So a VE-issue?

Henryfunk (talkcontribs)

This (or a closely similar) problem can also be caused by the Arrays extension, where the code in the "else" branch of the "if" in the static "init" function in the file Arrays.php is the culprit:

global $egArraysCompatibilityMode;
$parser->mExtArrays = new self();
if( $egArraysCompatibilityMode ) {
self::$mDefaultSep = ', ';
} else { global $wgLang;
$wgLang->getMessageFromDB( 'comma-separator' );
self::$mDefaultSep = $wgLang->getMessageFromDB( 'comma-separator' );
}

If you are using the Arrays function -- which isn't currently maintained -- you can replace the entire "if" statement with "self::$mDefaultSep = ', ';" (assuming you're OK with comma being the default separator).

If you're not using the Arrays extension, try disabling all extensions and then re-enable them one at a time until the bug occurs.

Waanders (talkcontribs)
Reply to "Sessions are disabled for this entry point"