I read in the MW 1.27.0 release notes that a lot of new stuff was added for session handling, but I
don't understand what I need to change in my PHP to use the new session handler ?? Could you detail ??
Could that be why I am getting the session handling errors below after my fresh install of MW 1.27.0 on
Windows ? Does anyone have MW 1.27.0 working on Windows ?
* Massive overhaul to session handling:
* $wgSessionsInObjectCache<https://www.mediawiki.org/wiki/Manual:$wgSessionsInObjectCache> is no longer supported and must be true, due to MediaWiki\Session\SessionManager. $wgSessionHandler<https://www.mediawiki.org/wiki/Manual:$wgSessionHandler> is similarly no longer used.
* ObjectCacheSessionHandler is removed, replaced with MediaWiki\Session\PhpSessionHandler.
* PHP session handling in general ($_SESSION, session_id(), and so on) is deprecated. Use MediaWiki\Session\SessionManager instead. A new config variable, $wgPHPSessionHandling<https://www.mediawiki.org/w/index.php?title=Manual:$wgPHPSessionHandling&ac…>, is available to cause use of $_SESSION to issue a deprecation warning or to cause most PHP session handling to throw exceptions.
* Deprecated UserSetCookies hook. Session-handling extensions should generally be creating a custom subclass of CookieSessionProvider. Other extensions messing with cookies can no longer count on user data being saved in cookies versus other methods.
* Deprecated UserLoadFromSession hook, extensions should create a MediaWiki\Session\SessionProvider.
* The User cannot be loaded from session until after Setup.php completes. Attempts to do so will be ignored and the User will remain unloaded.
* CSRF tokens may be fetched from the MediaWiki\Session\Session, which uses the MediaWiki\Session\Token class.
Here's my stack trace of failure.
I don't understand what to do with it, but if you do, please write back.
Exception encountered, of type "InvalidArgumentException"
[26551a8b219289e75be6de8a] /test1270/index.php?title=Main_Page InvalidArgumentException from line 194 of I:\wwwroot-basp\test1270\includes\session\SessionManager.php: Invalid session ID
Backtrace:
#0 I:\wwwroot-basp\test1270\includes\session\SessionManager.php(126): MediaWiki\Session\SessionManager->getSessionById(string, boolean, WebRequest)
#1 I:\wwwroot-basp\test1270\includes\Setup.php(745): MediaWiki\Session\SessionManager::getGlobalSession()
#2 I:\wwwroot-basp\test1270\includes\WebStart.php(137): require_once(string)
#3 I:\wwwroot-basp\test1270\index.php(40): require(string)
#4 {main
thx,
L
T74931 ( https://phabricator.wikimedia.org/T74931 ) is about adding
el_timestamp to the external links table. (IE the timestamp when a link was
added) its been sitting for almost two years now. Can we get this fixed
before it turns two?
Say does anyone out there have MediaWiki 1.26.3 set up on Windows ?
For a fresh wiki, as soon as I select "Please set up the wiki first", I receive the following stack
trace/error at http://myserver.com/test1263/mw-config/index.php.
Any help out there ? I'm not sure what to do.
[f9928f94] /test1263/mw-config/index.php DBAccessError from line 364 of I:\wwwroot-basp\test1263\includes\db\LBFactory.php: Mediawiki tried to access the database via wfGetDB(). This is not allowed.
Backtrace:
#0 I:\wwwroot-basp\test1263\includes\GlobalFunctions.php(3649): LBFactoryFake->getMainLB(boolean)
#1 I:\wwwroot-basp\test1263\includes\User.php(394): wfGetLB()
#2 I:\wwwroot-basp\test1263\includes\User.php(362): User->loadFromId(integer)
#3 I:\wwwroot-basp\test1263\includes\User.php(2458): User->load()
#4 I:\wwwroot-basp\test1263\includes\User.php(1161): User->getToken(boolean)
#5 I:\wwwroot-basp\test1263\includes\User.php(365): User->loadFromSession()
#6 I:\wwwroot-basp\test1263\includes\User.php(5033): User->load()
#7 I:\wwwroot-basp\test1263\includes\User.php(2616): User->loadOptions()
#8 I:\wwwroot-basp\test1263\includes\context\RequestContext.php(342): User->getOption(string)
#9 I:\wwwroot-basp\test1263\includes\StubObject.php(204): RequestContext->getLanguage()
#10 I:\wwwroot-basp\test1263\includes\StubObject.php(160): StubUserLang->_newObject()
#11 I:\wwwroot-basp\test1263\includes\parser\ParserOptions.php(595): StubObject->_unstub()
#12 I:\wwwroot-basp\test1263\includes\installer\Installer.php(405): ParserOptions->__construct()
#13 I:\wwwroot-basp\test1263\includes\installer\WebInstaller.php(138): Installer->__construct()
#14 I:\wwwroot-basp\test1263\mw-config\overrides.php(68): WebInstaller->__construct(WebRequest)
#15 I:\wwwroot-basp\test1263\mw-config\index.php(41): InstallerOverrides::getWebInstaller(WebRequest)
#16 I:\wwwroot-basp\test1263\mw-config\index.php(36): wfInstallerMain()
#17 {main}
thx,
L