[phpldapadmin] [ phpldapadmin-Bugs-2853633 ] activating hooks gives error undefined constant DEBUG_ENABLE
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2853633, was opened at 2009-09-08 01:14
Message generated for change (Comment added) made by wurley
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2853633&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: Fleg (ifleg)
Assigned to: Nobody/Anonymous (nobody)
Summary: activating hooks gives error undefined constant DEBUG_ENABLE
Initial Comment:
Version : 1.2.0.2 & 1.2.0.3
Plateform : linux (ubuntu)
php 5 + apache 2
Installation ok.
When I activate the hooks (e.g. commenting the return true line in hooks/functions/example.php) I get the following error :
You found a non-fatal phpLDAPadmin bug!
Error: Use of undefined constant DEBUG_ENABLED - assumed 'DEBUG_ENABLED' (E_NOTICE)
File: hooks.php line 120, caller cmd.php
Versions: PLA: 1.2.0.3, PHP: 5.2.6-3ubuntu4.2, SAPI: apache2handler
Web server: Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.2 with Suhosin-Patch mod_ssl/2.2.11 OpenSSL/0.9.8g
I thus tryed to put the following lines in hooks/functions/example.php:
if (!defined("DEBUG_ENABLED")){
define('DEBUG_ENABLED',0);
}
But then I get :
Error
E_WARNING: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object
error You found a non-fatal phpLDAPadmin bug!
Error: Undefined index: plaConfig (E_NOTICE)
File: hooks.php line 133, caller cmd.php
Versions: PLA: 1.2.0.3, PHP: 5.2.6-3ubuntu4.2, SAPI: apache2handler
Web server: Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.2 with Suhosin-Patch mod_ssl/2.2.11 OpenSSL/0.9.8g
PHP Debug Backtrace
File /var/www/ldaplpnhe/phpldapadmin-1.2.0.3/lib/functions.php (184)
Function error (a:5:{i:0;s:157:"E_WARNING: array_key_exists() [)
File /var/www/ldaplpnhe/phpldapadmin-1.2.0.3/lib/functions.php ()
Function app_error_handler (a:5:{i:0;i:2;i:1;s:146:"array_key_exists() [)
File /var/www/ldaplpnhe/phpldapadmin-1.2.0.3/lib/hooks.php (133)
Function array_key_exists (a:2:{i:0;s:17:"post_session_init";i:1;N;})
File /var/www/ldaplpnhe/phpldapadmin-1.2.0.3/hooks/functions/example.php (42)
Function add_hook (a:2:{i:0;s:17:"post_session_init";i:1;s:25:"exampl...)
File /var/www/ldaplpnhe/phpldapadmin-1.2.0.3/lib/hooks.php (196)
Function require_once (a:1:{i:0;s:67:"/var/www/ldaplpnhe/phpldapadmin-1.2...)
File /var/www/ldaplpnhe/phpldapadmin-1.2.0.3/lib/common.php (174)
Function require_once (a:1:{i:0;s:53:"/var/www/ldaplpnhe/phpldapadmin-1.2...)
File /var/www/ldaplpnhe/phpldapadmin-1.2.0.3/htdocs/common.php (13)
Function require_once (a:1:{i:0;s:54:"/var/www/ldaplpnhe/phpldapadmin-1.2...)
File /var/www/ldaplpnhe/phpldapadmin-1.2.0.3/htdocs/cmd.php (13)
Function require_once (a:1:{i:0;s:57:"/var/www/ldaplpnhe/phpldapadmin-1.2...)
----------------------------------------------------------------------
>Comment By: Deon George (wurley)
Date: 2009-09-08 15:44
Message:
Easy fix :) Just apply this patch:
http://phpldapadmin.git.sourceforge.net/git/gitweb.cgi?p=phpldapadmin/phpldapadmin;a=commitdiff;h=242d06673af6a576612d7e57019f5e134403874d
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2853633&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/