[phpldapadmin] [ phpldapadmin-Bugs-2845986 ] Missing config/config.php file not detected in 1.2.0.2

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Bugs item #2845986, was opened at 2009-08-28 12:23
Message generated for change (Comment added) made by wurley
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2845986&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: 1.2.x
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Mark (mark_gbc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Missing config/config.php file not detected in 1.2.0.2

Initial Comment:
phpldapadmin-1.2.0.2 using OpenLDAP 2.4.x on Apache 2.2.11 with PHP 5.2.10 on SuSE 10 Linux.
Exact same results on PHP 5.3.0.

Issue: 1.2.0.2 and 1.2.0.1 do not detect a missing configuration file, which 1.2.0 does. Creating the config.php file makes things work again, of course.

To reproduce:

Installed phpLDAPadmin 1.2.0.2 in a directory parallel to my old 1.1.x installation.
I forgot to create a config/config.php file and browsed phpldapadmin-1.2.0.2/htdocs/index.php and saw:

Notice: Use of undefined constant DEBUG_ENABLED - assumed 'DEBUG_ENABLED' in phpldapadmin-1.2.0.2/lib/page.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at phpldapadmin-1.2.0.2/lib/page.php:29) in phpldapadmin-1.2.0.2/lib/page.php on line 65

Notice: Use of undefined constant DEBUG_ENABLED - assumed 'DEBUG_ENABLED' in phpldapadmin-1.2.0.2/lib/page.php on line 446

Notice: Use of undefined constant DEBUG_ENABLED - assumed 'DEBUG_ENABLED' in phpldapadmin-1.2.0.2/lib/page.php on line 368

Notice: Use of undefined constant DEBUG_ENABLED - assumed 'DEBUG_ENABLED' in phpldapadmin-1.2.0.2/lib/page.php on line 100

Notice: Use of undefined constant DEBUG_ENABLED - assumed 'DEBUG_ENABLED' in phpldapadmin-1.2.0.2/lib/page.php on line 142
Logo	
Notice: Use of undefined constant DEBUG_ENABLED - assumed 'DEBUG_ENABLED' in phpldapadmin-1.2.0.2/lib/functions.php on line 344

Notice: Undefined variable: _SESSION in phpldapadmin-1.2.0.2/lib/functions.php on line 377

Fatal error: Call to a member function isCommandAvailable() on a non-object in phpldapadmin-1.2.0.2/lib/functions.php on line 377

____
This also happens with 1.2.0.1, which shows:
Notice: Undefined variable: _SESSION in phpldapadmin-1.2.0.1/lib/functions.php on line 386

Fatal error: Call to a member function isCommandAvailable() on a non-object in phpldapadmin-1.2.0.1/lib/functions.php on line 386
____
This also happens with 1.2.0, which shows more errors, but does say at the bottom of the page:

You need to configure phpLDAPadmin. Edit the file "[omitted]phpldapadmin-1.2.0/config/config.php" to do so. An example config file is provided in "[omitted]phpldapadmin-1.2.0/config/config.php.example".

Please restore this functionality to 1.2.0.2, thanks!

----------------------------------------------------------------------

>Comment By: Deon George (wurley)
Date: 2009-08-28 17:18

Message:
Thanks, fixed and commited to GIT.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2845986&group_id=61828

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.