blackmountainsupply Posted August 8, 2013 Share Posted August 8, 2013 (edited) 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. Edited August 8, 2013 by blackmountainsupply (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 8, 2013 Share Posted August 8, 2013 if you think that it is related to the token you can disable it under the preferences > General switch value of this option: then let us know if something changed, or not. 1 Link to comment Share on other sites More sharing options...
blackmountainsupply Posted August 8, 2013 Author Share Posted August 8, 2013 (edited) No it did not fix the problem. I had read in the other forums where people were having problems with the invalid token so i had created the problem on my site to make sure that was not my problem. When ever i try to add a new address and leave a required field blank it comes up with the correct error reporting on the top of the form. When i have all the required fields filled in and push the save button it goes to the 'Oops, something went wrong' screen. My address bar at the top still shows www.blackmtnsupply.com/address. I have copied and replaced the whole file in my address.tpl and controller/address file with the one from the SVM that was posted on this forum. But that still didnt work. I am stumped on where the problem could be. I just started using the multistore so maybe that is causing an issue? Any suggestions?? Edited August 9, 2013 by blackmountainsupply (see edit history) Link to comment Share on other sites More sharing options...
blackmountainsupply Posted August 9, 2013 Author Share Posted August 9, 2013 I think i found the problem causing my address error. I have pasted the screen shot below. Can somebody please help me with correcting it. It looks as if it is having a problem validating the state. Since this post has not had much help i will re-post a new one also. Thanks [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]stateArgument [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] Link to comment Share on other sites More sharing options...
Recommended Posts