[phpldapadmin] [ phpldapadmin-Bugs-2491089 ] Undefined index: #text (E_NOTICE)
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2491089, was opened at 2009-01-07 10:33 Message generated for change (Comment added) made by wurley You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2491089&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: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Christina Plummer (cp005e) Assigned to: Nobody/Anonymous (nobody) Summary: Undefined index: #text (E_NOTICE) Initial Comment: When I log in as any user, the first time I select an entry to view, I get this error: You found a non-fatal phpLDAPadmin bug! Error: Undefined index: #text (E_NOTICE) File: template_functions.php line 268, caller cmd.php Versions: PLA: 1.1.0.6, PHP: 5.2.8, SAPI: apache2handler Web server: Apache/2.0.52 (Red Hat) It doesn't matter whether the entry is a container or a leaf - whatever the first thing I click, I will get the error. Subsequent selections (of the same object or different objects) do not show the error. I was getting the error in 1.1.0.5, so I upgraded to 1.1.0.6 today, but no change. On my web server, I am running: Apache 2.0.52 Red Hat Enterprise Linux 4 Update 6 PHP 5.2.8 phpLDAPadmin 1.1.0.6 On my LDAP server, I am running: Red Hat Directory Server 7.1 SP3 I attempted to attach the debug (level 255) log output generated when I make that first click (in this case, it was on the top-level entry, shown in the log as "dc=XXX,dc=com") with the error, and when I make the second click on the same entry without the error. However, the file was too big at 723KB. I trimmed it so it only contained the 2 clicks, but it was still too big. Let me know how else I can trim it. ---------------------------------------------------------------------- >Comment By: Deon George (wurley) Date: 2009-01-09 17:10 Message: Yes, it is because of the blank value for <regexp>. Patch submitted to CVS (in BRANCH-1_1_0) - you can apply it manually if you want to fix it before the next release http://phpldapadmin.cvs.sourceforge.net/viewvc/phpldapadmin/phpldapadmin/lib/template_functions.php?r1=1.43.2.8&r2=1.43.2.9 ---------------------------------------------------------------------- Comment By: Christina Plummer (cp005e) Date: 2009-01-08 03:51 Message: I believe I may have located the problem. I had created a custom template that contained an empty <regexp></regexp> tag. When I populated this tag, the error seems to have gone away. It was unclear from the documentation that it was invalid for this tag to be empty. I am still not certain why the error would only occur the first time I selected an object. Something to do with the cache, perhaps? ---------------------------------------------------------------------- Comment By: Christina Plummer (cp005e) Date: 2009-01-08 02:34 Message: Thanks, I've attached 2 separate debug files - one for the first selection which shows the error, and one for the second selection which does not. File Added: pla_debug.log_SECONDCLICK.gz ---------------------------------------------------------------------- Comment By: Christina Plummer (cp005e) Date: 2009-01-08 02:31 Message: File Added: pla_debug.log_FIRSTCLICK.gz ---------------------------------------------------------------------- Comment By: Deon George (wurley) Date: 2009-01-07 19:17 Message: Please see http://www.phpldapadmin.org/wiki/index.php/Submitting_Bugs_Reports for some tips. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2491089&group_id=61828 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB ______________________________________ phpLDAPadmin development mailing list. To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel http://phpldapadmin.sourceforge.net/