Hello,

I am getting the following error when trying to view records using
phpldapadmin:

Error
E_WARNING: Invalid argument supplied for foreach()
        You found a non-fatal phpLDAPadmin bug!
Error:  Undefined index: template (E_NOTICE)
File:   template_functions.php line 169, caller cmd.php
Versions:       PLA: 1.1.0.5, PHP: 5.2.6-1+lenny3, SAPI: apache2handler
Web server:     Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch
proxy_html/3.0.0 mod_ssl/2.2.9 OpenSSL/0.9.8g



PHP Debug Backtrace
File    /usr/share/phpldapadmin/lib/functions.php (154)
        Function        error (a:4:{i:0;s:50:"E_WARNING: Invalid argument 
supplied for
foreach()";i:1;s:5:"error";i:2;b:1;i:3;b:1;})
File    /usr/share/phpldapadmin/lib/template_functions.php (169)
        Function        pla_error_handler (a:5:{i:0;i:2;i:1;s:39:"Invalid 
argument
supplied for
foreach()";i:2;s:50:"/usr/share/phpldapadmin/lib/template_functions.php";i:3;i:169;i:4;a:3:{s:8:"template";a:1:{s:11:"objectclass";a:0:{}}s:7:"xmldata";a:1:{s:17:"creation-template";a:3:{s:4:"NAME";s:16:"mozillaOrgPerson";s:13:"objectclasses";a:1:{s:11:"objectclass";a:3:{i:0;a:1:{s:5:"#text";s:3:"top";}i:1;a:1:{s:5:"#text";s:6:"person";}i:2;a:1:{s:5:"#text";s:12:"posixAccount";}}}s:14:"attributegroup";a:4:{i:0;a:3:{s:12:"DISPLAY-NAME";s:20:"Personal
Information";s:4:"ICON";s:7:"uid.png";s:9:"attribute";a:3:{i:0;a:5:{s:4:"NAME";s:9:"givenName";s:12:"DISPLAY-NAME";s:10:"First
Name";s:13:"DEFAULT-VALUE";s:3:"Bob";s:7:"REQUIRE";s:4:"true";s:4:"SIZE";s:2:"30";}i:1;a:5:{s:4:"NAME";s:2:"sn";s:12:"DISPLAY-NAME";s:9:"Last
Name";s:13:"DEFAULT-VALUE";s:5:"Jones";s:8:"REQUIRED";s:4:"true";s:4:"SIZE";s:2:"30";}i:2;a:5:{s:4:"NAME";s:2:"cn";s:12:"DISPLAY-NAME";s:11:"Common
Name";s:8:"EDITABLE";s:5:"false";s:4:"SIZE";s:2:"30";s:15:"AUTO-FILL-VALUE";s:28:"concat(
givenName, ' ', sn )";}}}i:1;a:3:{s:12:"DISPLAY-NAME";s:17:"Login
Information";s:4:"ICON";s:8:"lock.png";s:9:"attribute";a:2:{i:0;a:4:{s:4:"NAME";s:12:"userPassword";s:12:"DISPLAY-NAME";s:8:"Password";s:4:"TYPE";s:8:"password";s:4:"SIZE";s:2:"10";}i:1;a:6:{s:4:"NAME";s:19:"userPasswordConfirm";s:12:"DISPLAY-NAME";s:16:"Confirm
Password";s:4:"TYPE";s:8:"password";s:4:"SIZE";s:2:"10";s:6:"IGNORE";s:4:"true";s:13:"POST-VALIDATE";s:41:"php:$userPassword
== $userPasswordConfirm";}}}i:2;a:3:{s:12:"DISPLAY-NAME";s:19:"Account
Information";s:4:"ICON";s:12:"terminal.png";s:9:"attribute";a:5:{i:0;a:4:{s:4:"NAME";s:3:"uid";s:4:"TYPE";s:4:"text";s:12:"DISPLAY-NAME";s:9:"User
Name";s:4:"SIZE";s:2:"30";}i:1;a:4:{s:4:"NAME";s:10:"loginShell";s:4:"TYPE";s:6:"select";s:12:"DISPLAY-NAME";s:11:"Login
Shell";s:6:"option";a:8:{i:0;a:1:{s:5:"#text";s:9:"/bin/bash";}i:1;a:1:{s:5:"#text";s:8:"/bin/csh";}i:2;a:1:{s:5:"#text";s:8:"/bin/ksh";}i:3;a:1:{s:5:"#text";s:9:"/bin/tcsh";}i:4;a:1:{s:5:"#text";s:8:"/bin/zsh";}i:5;a:1:{s:5:"#text";s:7:"/bin/sh";}i:6;a:1:{s:5:"#text";s:9:"/bin/rssh";}i:7;a:2:{s:5:"VALUE";s:10:"/bin/false";s:5:"#text";s:21:"/bin/false
(no
login)";}}}i:2;a:4:{s:4:"NAME";s:13:"homeDirectory";s:4:"TYPE";s:4:"text";s:12:"DISPLAY-NAME";s:14:"Home
Directory";s:15:"AUTO-FILL-VALUE";s:24:"concat( '/home/' + uid
)";}i:3;a:4:{s:4:"NAME";s:9:"uidNumber";s:4:"TYPE";s:4:"text";s:12:"DISPLAY-NAME";s:10:"UID
Number";s:14:"PRE-FILL-VALUE";s:37:"php:get_next_uid_number( $server_id
)";}i:4;a:4:{s:4:"NAME";s:8:"uidGroup";s:4:"TYPE";s:6:"select";s:12:"DISPLAY-NAME";s:5:"Group";s:7:"OPTIONS";s:34:"php:get_posix_groups(
$server_id )";}}}i:3;a:3:{s:12:"DISPLAY-NAME";s:20:"Optional
Information";s:4:"ICON";s:7:"uid.png";s:9:"attribute";a:3:{i:0;a:5:{s:4:"NAME";s:11:"description";s:12:"DISPLAY-NAME";s:11:"Description";s:4:"TYPE";s:8:"textarea";s:4:"ROWS";s:1:"5";s:4:"COLS";s:2:"30";}i:1;a:3:{s:4:"NAME";s:15:"telephoneNumber";s:12:"DISPLAY-NAME";s:5:"Phone";s:4:"SIZE";s:2:"10";}i:2;a:4:{s:4:"NAME";s:17:"someFakeAttribute";s:12:"DISPLAY-NAME";s:19:"Some
Fake
Attribute";s:4:"TYPE";s:6:"select";s:6:"option";a:3:{i:0;a:2:{s:5:"VALUE";s:10:"fakevalue1";s:5:"#text";s:12:"Fake
Value
1";}i:1;a:3:{s:8:"SELECTED";s:4:"true";s:5:"VALUE";s:10:"fakevalue2";s:5:"#text";s:12:"Fake
Value 2";}i:2;a:2:{s:5:"VALUE";s:10:"fakevalue3";s:5:"#text";s:12:"Fake
Value
3";}}}}}}}}s:10:"ldapserver";O:10:"LDAPserver":33:{s:9:"server_id";s:1:"0";s:4:"name";s:14:"My
LDAP
Server";s:4:"host";s:9:"127.0.0.1";s:4:"port";s:3:"389";s:9:"auth_type";s:6:"cookie";s:8:"login_dn";s:0:"";s:10:"login_pass";s:0:"";s:19:":7:"visible";b:1;}}})
File    /usr/share/phpldapadmin/lib/template_functions.php (126)
        Function        storeTemplate
(a:2:{i:0;a:1:{s:11:"objectclass";a:0:{}}i:1;a:1:{s:17:"creation-template";a:3:{s:4:"NAME";s:16:"mozillaOrgPerson";s:13:"objectclasses";a:1:{s:11:"objectclass";a:3:{i:0;a:1:{s:5:"#text";s:3:"top";}i:1;a:1:{s:5:"#text";s:6:"person";}i:2;a:1:{s:5:"#text";s:12:"posixAccount";}}}s:14:"attributegroup";a:4:{i:0;a:3:{s:12:"DISPLAY-NAME";s:20:"Personal
Information";s:4:"ICON";s:7:"uid.png";s:9:"attribute";a:3:{i:0;a:5:{s:4:"NAME";s:9:"givenName";s:12:"DISPLAY-NAME";s:10:"First
Name";s:13:"DEFAULT-VALUE";s:3:"Bob";s:7:"REQUIRE";s:4:"true";s:4:"SIZE";s:2:"30";}i:1;a:5:{s:4:"NAME";s:2:"sn";s:12:"DISPLAY-NAME";s:9:"Last
Name";s:13:"DEFAULT-VALUE";s:5:"Jones";s:8:"REQUIRED";s:4:"true";s:4:"SIZE";s:2:"30";}i:2;a:5:{s:4:"NAME";s:2:"cn";s:12:"DISPLAY-NAME";s:11:"Common
Name";s:8:"EDITABLE";s:5:"false";s:4:"SIZE";s:2:"30";s:15:"AUTO-FILL-VALUE";s:28:"concat(
givenName, ' ', sn )";}}}i:1;a:3:{s:12:"DISPLAY-NAME";s:17:"Login
Information";s:4:"ICON";s:8:"lock.png";s:9:"attribute";a:2:{i:0;a:4:{s:4:"NAME";s:12:"userPassword";s:12:"DISPLAY-NAME";s:8:"Password";s:4:"TYPE";s:8:"password";s:4:"SIZE";s:2:"10";}i:1;a:6:{s:4:"NAME";s:19:"userPasswordConfirm";s:12:"DISPLAY-NAME";s:16:"Confirm
Password";s:4:"TYPE";s:8:"password";s:4:"SIZE";s:2:"10";s:6:"IGNORE";s:4:"true";s:13:"POST-VALIDATE";s:41:"php:$userPassword
== $userPasswordConfirm";}}}i:2;a:3:{s:12:"DISPLAY-NAME";s:19:"Account
Information";s:4:"ICON";s:12:"terminal.png";s:9:"attribute";a:5:{i:0;a:4:{s:4:"NAME";s:3:"uid";s:4:"TYPE";s:4:"text";s:12:"DISPLAY-NAME";s:9:"User
Name";s:4:"SIZE";s:2:"30";}i:1;a:4:{s:4:"NAME";s:10:"loginShell";s:4:"TYPE";s:6:"select";s:12:"DISPLAY-NAME";s:11:"Login
Shell";s:6:"option";a:8:{i:0;a:1:{s:5:"#text";s:9:"/bin/bash";}i:1;a:1:{s:5:"#text";s:8:"/bin/csh";}i:2;a:1:{s:5:"#text";s:8:"/bin/ksh";}i:3;a:1:{s:5:"#text";s:9:"/bin/tcsh";}i:4;a:1:{s:5:"#text";s:8:"/bin/zsh";}i:5;a:1:{s:5:"#text";s:7:"/bin/sh";}i:6;a:1:{s:5:"#text";s:9:"/bin/rssh";}i:7;a:2:{s:5:"VALUE";s:10:"/bin/false";s:5:"#text";s:21:"/bin/false
(no
login)";}}}i:2;a:4:{s:4:"NAME";s:13:"homeDirectory";s:4:"TYPE";s:4:"text";s:12:"DISPLAY-NAME";s:14:"Home
Directory";s:15:"AUTO-FILL-VALUE";s:24:"concat( '/home/' + uid
)";}i:3;a:4:{s:4:"NAME";s:9:"uidNumber";s:4:"TYPE";s:4:"text";s:12:"DISPLAY-NAME";s:10:"UID
Number";s:14:"PRE-FILL-VALUE";s:37:"php:get_next_uid_number( $server_id
)";}i:4;a:4:{s:4:"NAME";s:8:"uidGroup";s:4:"TYPE";s:6:"select";s:12:"DISPLAY-NAME";s:5:"Group";s:7:"OPTIONS";s:34:"php:get_posix_groups(
$server_id )";}}}i:3;a:3:{s:12:"DISPLAY-NAME";s:20:"Optional
Information";s:4:"ICON";s:7:"uid.png";s:9:"attribute";a:3:{i:0;a:5:{s:4:"NAME";s:11:"description";s:12:"DISPLAY-NAME";s:11:"Description";s:4:"TYPE";s:8:"textarea";s:4:"ROWS";s:1:"5";s:4:"COLS";s:2:"30";}i:1;a:3:{s:4:"NAME";s:15:"telephoneNumber";s:12:"DISPLAY-NAME";s:5:"Phone";s:4:"SIZE";s:2:"10";}i:2;a:4:{s:4:"NAME";s:17:"someFakeAttribute";s:12:"DISPLAY-NAME";s:19:"Some
Fake
Attribute";s:4:"TYPE";s:6:"select";s:6:"option";a:3:{i:0;a:2:{s:5:"VALUE";s:10:"fakevalue1";s:5:"#text";s:12:"Fake
Value
1";}i:1;a:3:{s:8:"SELECTED";s:4:"true";s:5:"VALUE";s:10:"fakevalue2";s:5:"#text";s:12:"Fake
Value 2";}i:2;a:2:{s:5:"VALUE";s:10:"fakevalue3";s:5:"#text";s:12:"Fake
Value 3";}}}}}}}}})
File    /usr/share/phpldapadmin/lib/TemplateEditingEntry.php (42)
        Function        Templates (a:1:{i:0;s:1:"0";})
File    /usr/share/phpldapadmin/lib/TemplateEditingEntry.php (305)
        Function        readEditingTemplates (a:0:{})
File    /usr/share/phpldapadmin/lib/EntryReader.php (57)
        Function        getTemplatesCount (a:0:{})
File    /usr/share/phpldapadmin/lib/Visitor.php(57) : eval()'d code (1)
        Function        visitTemplateEditingEntryStart
(a:1:{i:0;O:20:"TemplateEditingEntry":14:{s:12:"2:{i:0;s:5:"Start";i:1;O:20:"TemplateEditingEntry":14:{s:12:"






-- 
"No turning back, my life is like an 8-track." - DecembeRadio


------------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpldapadmin-users

Reply via email to