Version: 1.17.x
Severity: normal
Description
Details
- Reference
- bz28377
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T28676 Milestone: MediaWiki 1.17 release tarball (tracking) | |||
Resolved | • TrevorParscal | T30377 Notice: Undefined index: text in /w/skins/Vector.php on line 763 |
Event Timeline
Does anyone know under what conditions this occurs? There would have to be someone appending to the links arrays, but not providing enough information, in this case the 'text' element.
It's easy to just case this out and call it solved, but I'm pretty sure that will only make the code more complex without addressing the actual issue, which is the abuse of the links array, probably through a hook.
If I had my 1.17 wiki working *cough*chad*cough*, I'd try and poke it
The guy had weird extensions like ExternalData and such installed...
mediawiki wrote:
Commenting the following line in LocalSettings.php make the error disappear.
require_once("$IP/extensions/LdapAuthentication/LdapAuthentication.php");
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array('Novell eDirectory');
$wgLDAPServerNames = array('Novell eDirectory' => '*');
$wgLDAPSearchAttributes = array('Novell eDirectory' => 'uid');
$wgLDAPEncryptionType = array('Novell eDirectory' => 'ssl');
$wgLDAPProxyAgent = array('Novell eDirectory' => 'cn=*');
$wgLDAPProxyAgentPassword = array('Novell eDirectory' => '***');
$wgLDAPUseLocal = true;
LDAP AutoAuthentication
require_once("$IP/extensions/LdapAuthentication/LdapAutoAuthentication.php");
$wgLDAPAutoAuthDomain = 'Novell eDirectory';
$wgLDAPAutoAuthUsername = $_SERVER["PHP_AUTH_USER"];
if ( true ) { AutoAuthSetup(); }
mediawiki wrote:
Furthermore, it's this hook that seem to be the root of the problem:
$wgHooks['PersonalUrls'][] = 'LdapAutoAuthentication::NoLogout'; /* Disallow logout link */
I hope it will help you. Best regards.
/* No logout link in MW */
static function NoLogout( &$personal_urls, $title ) {
global $wgAuth; $wgAuth->printDebug( "Entering NoLogout.", NONSENSITIVE ); $personal_urls['logout'] = null; return true;
}
(In reply to comment #7)
$personal_urls['logout'] = null;
Should use unset( $personal_urls['logout'] ); I guess
Solitarius, would you mind testing this for us?
I don't have a working Ldap setup at the moment....
mediawiki wrote:
Ldap No logout patch for MW 1.17
Patch from Comment #8 from Roan
Attached:
mediawiki wrote:
Yes, the solution work well. I'm attaching a patch so I can tag the bug.
Thanks for all your help everyone!