AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: alfake on March 04, 2018, 03:20:37 PM

Title: Create Account - Unknown error encountered. Please try again!
Post by: alfake on March 04, 2018, 03:20:37 PM
Just update my website to 1.2.12, now when creating an account or guest checkout we get "Unknown error encountered. Please try again!". I've verified that the form_crsf.tpl and csrf_token.php are correct.  I have also downloaded the whole AbanteCart Cart package and uploaded it to the website to make sure all the files are current.

Title: Re: Create Account - Unknown error encountered. Please try again!
Post by: Basara on March 05, 2018, 12:33:00 AM
Hello.

Make sure these files permissions are readable for public
Title: Re: Create Account - Unknown error encountered. Please try again!
Post by: alfake on March 05, 2018, 01:42:54 PM
All permissions on the files and folders are set correctly.
Title: Re: Create Account - Unknown error encountered. Please try again!
Post by: eCommerce Core on March 06, 2018, 07:14:42 AM
It does look like a csrf token issue.

Check that your form (in the browser) has a csrf token field and it has a value. If you post a URL to your site, I can check
Title: Re: Create Account - Unknown error encountered. Please try again!
Post by: eCommerce Core on March 06, 2018, 07:21:14 AM
I found your URL and csrf field indeed is missing.

Did you upgrade all the files? If you use custom template, make sure below file is present:
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/form/form_csrf.tpl

Make sure this file is upgraded:
https://github.com/abantecart/abantecart-src/blob/master/public_html/core/engine/html.php