[phpldapadmin] [ phpldapadmin-Bugs-3430540 ] Fatal error because of undefined _SESSION variable
SourceForge.net <[email protected]> Sun, 29 Jan 2012 11:43:30 -0800
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3430540, was opened at 2011-10-30 09:15
Message generated for change (Comment added) made by jpisard
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=3430540&group_id=61828
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Legate ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Fatal error because of undefined _SESSION variable
Initial Comment:
Downloaded version 1.2.2 from Sourceforge after reading Debian Security Advisory DSA-2333-1.
Copied configuration from 1.2.1.1 installation.
Browsed to root:
Notice: Undefined variable: _SESSION in /usr/share/phpldapadmin-1.2.2/lib/page.php on line 379
Fatal error: Call to a member function getValue() on a non-object in /usr/share/phpldapadmin-1.2.2/lib/page.php on line 379
phpLDAPadmin 1.2.2
OpenLDAP server (slapd) 2.4.11
Apache HTTP Server (httpd) 2.2.9
PHP 5.2.17
Debian GNU/Linux 5.0.9 (lenny) with additional packages from dotdeb.org
----------------------------------------------------------------------
Comment By: jean-philippe Martin (jpisard)
Date: 2012-01-29 11:43
Message:
outch !
$_SESSION should always exist : that sure but ....
$_SESSION[APPCONFIG] not exist
change with
if (isset($_SESSION[APPCONFIG]))
if
($_SESSION[APPCONFIG]->getValue('appearance','minimalMode')) {
$display = array(
'HEAD'=>false,
'CONTROL'=>false,
'TREE'=>true,
'FOOT'=>false
);
}
work better on other error come from the logo
in phpldapadmin/lib/functions.php :
return isset($_SESSION) && !
$_SESSION[APPCONFIG]->getValue('appearance','remoteurls') ? '' :
sprintf('%s://sflogo.sourceforge.net/sflogo.php?group_id=%s&type=10',$proto,$group_id);
i have change to :
if (!isset($_SESSION[APPCONFIG])) return
sprintf('%s://sflogo.sourceforge.net/sflogo.php?group_id=%s&type=10',$proto,$group_id);
return isset($_SESSION) && !
$_SESSION[APPCONFIG]->getValue('appearance','remoteurls') ? '' :
sprintf('%s://sflogo.sourceforge.net/sflogo.php?group_id=%s&type=10',$proto,$group_id);
Et Voila !
----------------------------------------------------------------------
Comment By: https://www.google.com/accounts ()
Date: 2011-11-10 05:58
Message:
I am also seeing this error.
Server is a Gentoo install, so not Debian specific.
Verified via IE and Chrome.
----------------------------------------------------------------------
Comment By: Legate ()
Date: 2011-10-31 06:41
Message:
Cleared cookies and session cache, nothing changed.
>From what I know of PHP, $_SESSION should always exist. If it doesn't it
has been explicitly unset somewhere.
----------------------------------------------------------------------
Comment By: Deon George (wurley)
Date: 2011-10-30 17:59
Message:
I'm assuming this is a one off. Clear your cookies and/or PHP session
cache.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=3430540&group_id=61828
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/