Author Topic: Unknown error received first time register account as new customer  (Read 4228 times)

Offline chaoticKym

  • Newbie
  • *
  • Posts: 8
  • Karma: +3/-0
    • View Profile
    • ChaoticKym
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?


Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5776
  • Karma: +274/-2
    • View Profile
Re: Unknown error received first time register account as new customer
« Reply #1 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  :)

Offline chaoticKym

  • Newbie
  • *
  • Posts: 8
  • Karma: +3/-0
    • View Profile
    • ChaoticKym
Re: Unknown error received first time register account as new customer
« Reply #2 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!

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Unknown error received first time register account as new customer
« Reply #3 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
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline chaoticKym

  • Newbie
  • *
  • Posts: 8
  • Karma: +3/-0
    • View Profile
    • ChaoticKym
Re: Unknown error received first time register account as new customer
« Reply #4 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!  :)

 

Powered by SMFPacks Social Login Mod