Jump to content

Address error in registering or adding address


Recommended Posts

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 by blackmountainsupply (see edit history)
Link to comment
Share on other sites

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 by blackmountainsupply (see edit history)
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

×
×
  • Create New...