Undefined Index: ws Domain error?

Jump to: navigation, search

That's the thing. wsDomain should be defined. I think I've partially fixed this issue in 1.18, but there's more places where wsDomain is somehow being undefined, or the session is being wiped out in some nasty way.

Ryan lane02:11, 2 December 2011

Hi, I am getting this error also on two MW 1.18 w/ LDAP 1.2e installations. While it doesn't seem to cause anything to fail, my users are frequently asking me to 'fix it'. Any thoughts on whether the patch above is appropriate for deployment? Is this an LDAP plugin issue? A MW 1.18 issue?

Thanks so much for an extension that has been used here for almost 8 years!

-Jonathan

69.121.24.16803:06, 18 January 2012
 

FYI - getting the same error Environment - WAMP Latest versions of Mediawiki and LDAP Auth plugin

It happens the first time I visit the login page in a session. After that, no errors pop up until the browser is closed, regardless of if I log in or not. Have also tested from different PCs on the network, errors appear the first time the login page is accessed and then not again afterwards.

Thought that might help the troubleshooting.

- Daz

202.12.109.25006:04, 24 January 2012

same error for me, some data: Env: Windows server 2008, IIS 7, MySQL, Mediawiki 1.18, Latest version of LDAP auth plugin

When I click the login page on a PC that has never entered the wiki this error appears:

PHP Notice: Undefined index: wsDomain in ...LdapAuthentication.php on line 663 ,on line 667 ,on line 449 ,on line 454 , on line 455

I've also seen that in my PC (where the login works) beside the "Log In" link my IP and "Talk for this IP Address" links appear. Those links don't appear on the PC that has problems when clicking the login link.

The only two PC that the wiki works in are the ones with this characteristics: -the users that first logged in are sysop -the users first logged in with local authentication, then switched to ldap authentication and it always worked fine

The ldap log says:

2012-01-25 20:39:43 wikidb: 1.2e Entering validDomain 2012-01-25 20:39:43 wikidb: 1.2e User is not using a valid domain (). 2012-01-25 20:39:43 wikidb: 1.2e Setting domain as: invaliddomain 2012-01-25 20:39:44 wikidb: 1.2e Entering allowPasswordChange 2012-01-25 20:39:44 wikidb: 1.2e Entering modifyUITemplate

i'm a newbie in Mediawiki, so I'm sorry if I stated something obvious ;)

-Ed

Ed20:51, 25 January 2012

I've downloaded the trunk version of LdapAuthentication plugin and now it works!!!

Thank you Mediawiki developers.

Ed18:57, 27 January 2012
 
 

I've found out in Mediawiki 1.18.1 that whenever I enter Special Pages the Special:Userlogin load() function is called and wgRequest doesn't have a wpDomain value so it calls $wgAuth->setDomain('invaliddomain'); each times.

I tried to logout/login and go directly to Special:Change Password (sorry for possible wrong name translations, I use french mediawiki version) the $_SESSION['wsDomain'] value isn't hardly resetted and it works fine that way.

I think it's a bug that should be reported but, I can't make sure that a bug for this has or hasn't been reported.

Gmatte (talk)22:40, 23 February 2012

I bypassed the problem like this:

       function setDomain( $domain ) {
               if( (isset( $_SESSION['wsDomain'] ) && $this->validDomain( $_SESSION['wsDomain'] )) && !$this->validDomain( $domain ) )
                       return;
               $this->printDebug( "Setting domain as: $domain", NONSENSITIVE );
               $_SESSION['wsDomain'] = $domain;
       }

litteraly, It doesn't change the session wsDomain value if there's already a valid domain active and the new $domain isn't a valid one.

Gmatte (talk)23:18, 23 February 2012
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox