Steven Szymczak wrote:
ok, my form is build (not pretty), and in the interests of moving
development forward, I've started working on the authenticating the
values entered in the form. Only I can't get that far because
submitting the form (with values or completely blank) results in the
following error:
Fatal error: Cannot unset string offsets in
/Users/Steven/Sites/wa3gukin.com/library/Zend/Form/Element.php on line 1999
I found that particular line, and it says:
if (isset($validator['options']['messages'])) {
$messages = $validator['options']['messages'];
(1999) unset($validator['options']['messages']);
}
Echoing $messages shows that it contains only "/".
What could the problem be?
Looks like either $validator or $validator['options'] is actually a
string rather than an array. print_r()/var_dump() of $validator would
probably explain what's wrong and allow you to work out why $validator
is not set correctly.
Perhaps some stronger checks are needed on an API call somewhere...
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]