I am guessing here because you posted no code of yours: if your wrote a Regex validator, check you wrote it the correct way:
$your_element->addValidator('Regex', false, array('/^[a-z]/i')) not the array above that contains the regular expression, often your error happens when the regular expression is passed without the array. Steven Szymczak wrote: > > I've built a simple login form, which displays properly and with no > errors. However, when the form is submitted, the following error is all > I get: > > 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 "/". It seems to me that > it's trying to unset an array that's actually a string. Is this a bug, > or have I somehow managed to improperly set an option/variable in the > form? > > -- View this message in context: http://www.nabble.com/Problems-submitting-a-Zend_Form-tp20109449p20129143.html Sent from the Zend Framework mailing list archive at Nabble.com.