rix Posted June 24, 2020 Share Posted June 24, 2020 holas, después de actualizar a la versión 1.7.6.5 y que probé que funcionaba todo bien. Pero me empezaron a escribir clientes que no podían entrar y al poner el modo debug aparece esto: [PrestaShopException] La longitud del campo Customer->passwd es actualmente de 60 caracteres. Debe tener entre 0 y 32 caracteres. at line 1003 in file classes/ObjectModel.php 998. } 999. 1000. $message = $this->validateField($field, $this->$field); 1001. if ($message !== true) { 1002. if ($die) { 1003. throw new PrestaShopException($message); 1004. } 1005. 1006. return $error_return ? $message : false; 1007. } 1008. } ObjectModelCore->validateFields - [line 292 - classes/ObjectModel.php] ObjectModelCore->getFields - [line 559 - classes/ObjectModel.php] ObjectModelCore->add - [line 262 - classes/Customer.php] - [2 Arguments] CustomerCore->add - [line 516 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->save - [line 195 - classes/form/CustomerPersister.php] CustomerPersisterCore->create - [line 59 - classes/form/CustomerPersister.php] - [2 Arguments] CustomerPersisterCore->save - [line 192 - classes/form/CustomerForm.php] - [4 Arguments] CustomerFormCore->submit - [line 60 - controllers/front/AuthController.php] AuthControllerCore->initContent - [line 292 - classes/controller/Controller.php] ControllerCore->run - [line 515 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] He probado con varias opciones que he leido en el foro (desactivar overrides, modulos no nativos, quitar cache, Mutiviews, URLs amigables, etc) y nada... Alguna ayuda... en estas circunstancias, para mi esto es la quiebra Gracias Link to comment Share on other sites More sharing options...
juanrojas Posted June 25, 2020 Share Posted June 25, 2020 Hola prueba lo siguiente ir a clase Customer (Classes/Customer.php) localizad la línea donde se asigna la variable $definition y comprobad el valor asignado a 'size', seguramente estará establecido a 32, cambiadlo a 60 'passwd' => array('type' => self::TYPE_STRING, 'validate' => 'isPasswd', 'required' => true, 'size' => 60), Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now