en Jump to content
  • 0
nick_wilkes

[SOLVED] Invalid Token when adding addresses in My Account

Question

Hi, I am new to all this, and am finding it really good to use. But I have now come to validate parts and when adding an address in the My Account section of the front end, I get an 'Invalid Token' error and not a lot else of information!

 

I don't know if it is to do with my Country settings and address format so have attached an image if that helps.

post-447093-0-20916200-1355589735_thumb.png

Edited by nick_wilkes

Share this post


Link to post
Share on other sites

21 answers to this question

Recommended Posts

  • 0

Any information on this would be greatly appreciated. This is currently stopping my shop going live; and PrestaShop is the third e-commerce site I have tried within the last 2 months and wouldn't want this to make it a fourth following this issue.

Share this post


Link to post
Share on other sites
  • 0

Just stumbled on this issue on 1.5.3.1 and here's the fix:

 

open address.tpl and find

<input type="hidden" name="token" value="{$token}" />

Move it under

{if $field_name eq 'address1'}
<p class="required text">

 

Save and you're done. I'm not showing Company field and this appeared recently after some modifications to address forms, but don't know when.

Share this post


Link to post
Share on other sites
  • 0

Just stumbled on this issue on 1.5.3.1 and here's the fix:

 

open address.tpl and find

<input type="hidden" name="token" value="{$token}" />

Move it under

{if $field_name eq 'address1'}
<p class="required text">

 

Save and you're done. I'm not showing Company field and this appeared recently after some modifications to address forms, but don't know when.

 

Thanks a lot for response :) It works great, but sometimes returns server error, don't get why )

Share this post


Link to post
Share on other sites
  • 0

Did you make the modification I quoted above?

-----

About the probable server error -I'm not experiencing such for now

 

Yes I did :) thanks a lot for the fix, i think the thread can be marked as solved

Share this post


Link to post
Share on other sites
  • 0

Just stumbled on this issue on 1.5.3.1 and here's the fix:

 

open address.tpl and find

<input type="hidden" name="token" value="{$token}" />

Move it under

{if $field_name eq 'address1'}
<p class="required text">

 

Save and you're done. I'm not showing Company field and this appeared recently after some modifications to address forms, but don't know when.

 

Thanks! Saved my day twice!!! B)

Share this post


Link to post
Share on other sites
  • 0

Yes but it's not working now on 1.5.4 . Those fields are missing :|

 

EDIT: my bad - my software is buggy .. :) Didn't find it the first time..

It's working perfectly now ;)

Edited by the.rampage.rado

Share this post


Link to post
Share on other sites
  • 0

It's a joke, i'm so mad right now, the.rampage.rado you saved my day, but i'm so mad about prestashop i'm using prestashop 1.5.4.1 and still this problem, how can it be? , the funny thing is that i didn't have <inputtype="hidden"name="token"value="{$token}"/> in my address.tpl file, i had to put this line in the file.

 

Really? , how can it be? so all ppl that download this version will have this problem because that line doesn't exist on address.tpl?

Share this post


Link to post
Share on other sites
  • 0
itx    0

i got this error an manage to fix it. (presta 1.5.4.1)

 

nevertheless it's a bug. it should be reported to bug tracker.

the error shows up when we disable "Company" in address format.

Share this post


Link to post
Share on other sites
  • 0

Just stumbled on this issue on 1.5.3.1 and here's the fix:

 

open address.tpl and find

<input type="hidden" name="token" value="{$token}" />
Move it under

{if $field_name eq 'address1'}
<p class="required text">
Save and you're done. I'm not showing Company field and this appeared recently after some modifications to address forms, but don't know when.

 

Brutal great thanks to you mate. It just solved my last biggest issue. Now ready to sell :) many many thanks ......

Share this post


Link to post
Share on other sites

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More