-- Marco <[EMAIL PROTECTED]> wrote
(on Saturday, 15 March 2008, 11:34 AM +0100):
> I have come across and issue with 1.5 PR3 and using Zend_Form, I am using the
> following configuration
<snip>
> When calling $this->view->form->isValid($_POST) I get the following message
>
> ( ! ) Fatal error: Call to undefined method
> Zend_Validate_StringLength::setObscureValue() in /usr/share/lib/Zend/Form/
> Element/Password.php on line 56
> Call Stack
> # Time Memory Function Location
> 1 0.0000 55048 {main}( ) ../index.php:0
> 2 0.0122 769548 Zend_Controller_Front->dispatch( ) ../index.php:38
> 3 0.0156 893408 Zend_Controller_Dispatcher_Standard->dispatch( )
> ..
> /Front.php:929
> 4 0.0324 1184976 Zend_Controller_Action->dispatch( ) ../
> Standard.php:242
> 5 0.0325 1184976 LoginController->dologinAction( ) ../
> Action.php:499
> 6 0.0325 1184976 Zend_Form->isValid( ) ../LoginController.php:56
> 7 0.0336 1188368 Zend_Form_Element_Password->isValid( ) ../
> Form.php:1688
>
> Do I need to implement a special validator here or is this a bug?
I cannot recreate the issue. I've verified that Zend_Validate_Abstract
-- from which Zend_Validate_StringLength inherits -- contains that
method in the 1.5 release branch. Is it possible that you have multiple
ZF installations on your include_path, and that an old one is taking
precedence? That particular method has been added for 1.5.
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/