RE: [PEAR] QFC strange problem
| From: | Daniel Kopp | Date: | Thu, 11 Mar 2004 23:17:06 +0000 |
| Subject: | RE: [PEAR] QFC strange problem | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11245@lists.php.net to get a copy of this message | ||
Halleluja!
> > Warning: htmlspecialchars() expects parameter 1 to be string, array
> > given in xxx\HTML\QickForm\element.php on line 215
> >
> > Warning: htmlspecialchars() expects parameter 1 to be string, array
> > given in xxx\HTML\QuickForm\element.php on line 221
> >
> > Can someone please tell me where this error message comes from?
>
> The message obviously come from getFrozenHtml() method, and
> is caused by some
> element having an array as a value instead of string.
>
> Difficult to say anything else without seeing how the forms
> are defined...
I was focusing on the elements that I freeze in the form when my attention
was caught by an element which had exactly the same name as another form. I
renamed the element and now it works. I still do not really get what was
going on but I guess it is not a good idea to use elements with the same
name as an existing form. (maybe the error only appears upon trying to
freeze these elements but anyhow ... I will try to avoid these name
problems)
regards
Daniel
PS.: try to pray when you have a programming problem - cause ... God knows
the mistake - so why not just ask him?!