AbanteCart Community

Shopping Cart Operations => Support => Topic started by: VE3SLO on August 30, 2016, 01:51:55 AM

Title: Account activation errors
Post by: VE3SLO 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'),
Title: Re: Account activation errors
Post by: Basara 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?
Title: Re: Account activation errors
Post by: VE3SLO 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.
Title: Re: Account activation errors
Post by: Basara 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?
Title: Re: Account activation errors
Post by: VE3SLO 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.
Title: Re: Account activation errors
Post by: abolabo 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
Title: Re: Account activation errors
Post by: VE3SLO 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.