Search the Community
Showing results for tags 'Address Error'.
-
When a customer tries to add an address when registering or just adding a new address, it is coming up as an error. I think i have found out that the error is in validating the state when the save button is pushed. I have copied a screen shot of the error code below. I am running PS 1.5.4.1. If you want to see this page in real time just go to my site and try to register an address with your account. www.blackmtnsupply.com. Need help ASAP as this has shut down my site. Thanks in advance :-) [PrestaShopException] Validation function not found. isState at line 930 in file classes/ObjectModel.php 924. 925. // Check field validator 926. if (!empty($data['validate'])) 927. { 928. if (!method_exists('Validate', $data['validate'])) 929. throw new PrestaShopException('Validation function not found. '.$data['validate']); 930. 931. if (!empty($value) && !call_user_func(array('Validate', $data['validate']), $value)) 932. return 'Property '.get_class($this).'->'.$field.' is not valid'; 933. } 934. ObjectModelCore->validateField - [line 833 - classes/ObjectModel.php] - [2 Arguments] 827. continue; 828. 829. if (is_array($this->update_fields) && empty($this->update_fields[$field])) 830. continue; 831. 832. $message = $this->validateField($field, $this->$field); 833. if ($message !== true) 834. { 835. if ($die) 836. throw new PrestaShopException($message); 837. return $error_return ? $message : false; Argument [0] state Argument [1] ObjectModelCore->validateFields - [line 265 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFields - [line 465 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->add - [line 170 - classes/Address.php] - [2 Arguments] AddressCore->add - [line 427 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->save - [line 218 - controllers/front/AddressController.php] - [0 Argument] AddressControllerCore->processSubmitAddress - [line 107 - controllers/front/AddressController.php] - [0 Argument] AddressControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 28 - index.php] - [0 Argument]
-
when ever i or a customer creates a new account on the front end and saves, it shows an "Oops, something went wrong" page. I then open my back office and the new registration shows up but it only keeps their name and not their address. If i try to add an address to an existing account, it comes up with the same page. If I remove the "Token" line <input type="hidden" name="token" value="{$token}" /> in the address.tpl file, then i get the Invalid Token error. When i put it back it comes up with the Oops, something went wrong page. Can somebody please help as nobody can order from my shop. My shop is www.blackmtnsupply.com I am running 1.5.4.1 Oops, something went wrong. Try to refresh this page or feel free to contact us if the problem persists.