Author Topic: Account activation errors  (Read 1570 times)

Offline VE3SLO

  • Newbie
  • *
  • Posts: 10
  • Karma: +1/-0
    • View Profile
Account activation errors
« on: August 30, 2016, 01:51:55 AM »
I'm unable to activate new accounts via email activation.

This is the log entries for the activation errors.

2016-08-30 5:21:22 - warning: AbanteCart core v.1.2.8 Illegal string offset 'email_activation' in <b>/home/kirkblack/public_html/a1counterparts.com/ecommerce/storefront/controller/pages/account/login.php</b> on line <b>233</b>
2016-08-30 5:21:22 - warning: AbanteCart core v.1.2.8 Illegal string offset 'email_activation' in <b>/home/kirkblack/public_html/a1counterparts.com/ecommerce/storefront/controller/pages/account/login.php</b> on line <b>236</b>


This is the code snippet of my login.php file (with line numbers)

232            $customer_info = $this->model_account_customer->getCustomerByLoginname($loginname);         
233            if($customer_info && !$customer_info['status'] && $customer_info['data']['email_activation']) {
234               //show link for resend activation code to email
235               $enc = new AEncryption($this->config->get('encryption_key'));
236               $rid = $enc->encrypt($customer_info['customer_id'].'::'.$customer_info['data']['email_activation']);
237               $this->error['message'] .= sprintf($this->language->get('text_resend_activation_email'),

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4396
  • Karma: +205/-0
    • View Profile
Re: Account activation errors
« Reply #1 on: August 30, 2016, 02:25:16 AM »
Hello.

Is your store upgraded from 1.2.7 or clean AbanteCart 1.2.8 installation?
Do you have this problem with all emails or some specific format?
“Chuck Norris is so amazing.”
― Mother Teresa

Offline VE3SLO

  • Newbie
  • *
  • Posts: 10
  • Karma: +1/-0
    • View Profile
Re: Account activation errors
« Reply #2 on: August 30, 2016, 02:36:15 AM »
I'm fairly sure its upgraded.  Just did that about a week ago.

This is basically a new install that's never been used.  Just finally got into it and need to go live soon.  I initially installed it roughly a year ago and played with it a bit then fell away from it and now have a major need for it. I'm sure I did an upgrade.  I did have to fix an SQL database issue where a line 14 was missing for "Customer_cancel" or something like that.  The forum was helpful on that fix.

I'm still in testing/configuring but there doesn't seem to be any difference in this error condition.  I made some test accounts and none of them will activate using the email activation method.

There's no output feedback when clicking the link other than it ends up just opening to the Login/Register page.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4396
  • Karma: +205/-0
    • View Profile
Re: Account activation errors
« Reply #3 on: August 30, 2016, 02:43:58 AM »
I did have to fix an SQL database issue where a line 14 was missing for "Customer_cancel" or something like that.  The forum was helpful on that fix

Does you upgrade process were not completed? Maybe this cause activation issues. Did you upgrade from 1.2.7 to 1.2.8 or from earlier versions?
“Chuck Norris is so amazing.”
― Mother Teresa

Offline VE3SLO

  • Newbie
  • *
  • Posts: 10
  • Karma: +1/-0
    • View Profile
Re: Account activation errors
« Reply #4 on: August 30, 2016, 03:09:21 AM »
To the best of my knowledge it may have been 1.27
The back-up log indicates...

A-One Counterparts Electronic Parts and Supplies
kbsvr.com/a1counterparts.com/ecommerce/
date   expiry   version   size   location   label   
2016-08-30   Auto   1.2.7   23MB   Server   next automatic backup   
2016-08-29 1:13am   Auto   1.2.7   34.1MB   Server
2016-08-28 1:14am   Auto   1.2.7   34.1MB   Server

...was the last automated backup.

Oddly enough its displaying a version of 1.27 in the current backup logs.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1783
  • Karma: +248/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Account activation errors
« Reply #5 on: August 30, 2016, 09:39:25 AM »
no. it's a warning related to new piece of code from 1.2.8.
Please try to replace file /public_html/storefront/controller/pages/account/login.php
with attached and let us know
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline VE3SLO

  • Newbie
  • *
  • Posts: 10
  • Karma: +1/-0
    • View Profile
Re: Account activation errors
« Reply #6 on: August 30, 2016, 11:27:49 AM »
Yay this works now! 8)  Thank you for the help!

The error log is empty.

The updated file solved the problem.

 

Powered by SMFPacks Social Login Mod