AbanteCart Community

eCommerce construction => Installation and Configuration => Topic started by: chaoticKym on May 16, 2017, 07:57:08 PM

Title: Unknown error received first time register account as new customer
Post by: chaoticKym on May 16, 2017, 07:57:08 PM
When I'm testing my website and I click the "continue" button to register account as a new customer, the very first time I get the following error message: Unknown error occurred. Please try again.

If I try again then it works fine; however, I don't want my customers to experience this issue.

Anyone else run into this?

Title: Re: Unknown error received first time register account as new customer
Post by: Basara on May 17, 2017, 01:10:34 AM
Hi.
Can you replicate it in few browsers or you see it only once? If you provide an url we will check your site from our end too  :)
Title: Re: Unknown error received first time register account as new customer
Post by: chaoticKym on May 25, 2017, 03:04:48 PM
I apologize for the delay in responding!  I didn't realize anyone had replied to my original post.

Yes, I can replicate it in both Chrome, Firefox, and Safari.  It only happens the very first time when clicking the 'Continue' button; after that I'm able to register without any errors.

The URL is:  chaotickym.com/store/index.php?rt=account/login

Thank you so much for your time and help!
Title: Re: Unknown error received first time register account as new customer
Post by: abolabo on May 26, 2017, 04:40:21 AM
please check this commit to solve
https://github.com/abantecart/abantecart-src/commit/84b8cbd18c3c5c2440896f2eaa360a84671bc659

Note: it happens only when your first visited page of your abantecart is login page
Title: Re: Unknown error received first time register account as new customer
Post by: chaoticKym on May 26, 2017, 09:20:21 AM
Thank you!  Updating that line of code seemed to take care of the error.

On a side note, and not that it really matters but in case it's helpful, the line of code I replaced was slightly different than one showed as being replaced on the github page.  Here's what was in my cfg file:

if(!empty($token) && !empty($instance) && $this->session->data['csrftoken'][$instance] === $token){

I'm using v1.2.10

Thank you again to both you and Basara for your time and help!  :)