Re: HTML_QuickForm bug? (long label data)
| From: | Ignatius Reilly | Date: | Thu, 28 Apr 2005 07:14:09 +0000 |
| Subject: | Re: HTML_QuickForm bug? (long label data) | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18983@lists.php.net to get a copy of this message | ||
Matte Edens wrote:
I'll get some sample code worked up. First though, the reason I call it a fatal error is that Firefox is returning a "Document contains no data" error when I try to load the page. Thus, I'm thinking that Apache is not able to handle it or PHP is not able to handle it. Sample code coming soon. matte - matte@arubanetworks.com Justin Patrin wrote:Now a bit more seriously... I have met similar problems, specific to Apache2 on Windows. Very difficult to debug, but after some trial and error I found that the culprit was the element's secondary label when using element templates such as: <tr> <td align="right" valign="top" width="30%" style="padding-top:5px; padding-right:4px;margin-left:8px;"> <!-- BEGIN required --><span class="required">*</span><!-- END required --> {label} </td> <td align="left" valign="top" width="70%"> <!-- BEGIN error --><div style="padding:0;padding-top:5px;margin:0;font-size:11px;" class="required">! {error}</div><!-- END error --> {element} <!-- BEGIN label_2 --><br/><span class="formexplanation">{label_2}</span><!-- END label_2 --> </td> </tr> Removing the <!-- BEGIN label_2 -->...<!-- END label_2 --> template section solved the problem. I will investigate more and file a bug report when I find the time. HTH IgnatiusOn 4/27/05, Matte Edens <matte@arubanetworks.com> wrote:I'm not sure if this is a bug. I searched the bugs for QF but didn't see anything related... I'm getting what I believe is a fatal error in QF when I addElement or createElement with an element label of greater than 131 chars, and when I addGroup with an element label greater than 129 chars. I haven't done any deeper diagnosis of this due to time restrictions. Anyone know anything about this? Worthy of a bug report?Post some quick example code that makes it crash so that others can test it. What exactly is the fatal error you're seeing? You should always say what kind of error (PHP, PEAR, QF, etc.) and what the error says when reporting a bug.