Jump to content

[SOLVED] Error after creating an account


Recommended Posts

I can't understand what is it about, but, after a new user account creation I get
the same error as others too:

1 - an error ocurred while creating your account


This didn't happen in version 1.3 now I've been using 1.3.1

Any idea what could be wrong and how can be solved???
The user account it is actually created, I checked from phpMyAdmin, and I can even login with the user email and password, the problem is on the authentication.php file, which doesn't confirm the account creation.


When I open the theme file authentication.tpl in Dreamweaver the code shows an error in line 6

idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if};



but I'm not sure if it has something to be with the problem

Link to comment
Share on other sites

Please guys, I need help with this!

I'm having the same trouble in BO even though the user is registered after account creation the form page shows this message

an error occurred while creating object customer (Duplicate entry '1-1' for key 'PRIMARY')


so there is some duplicate entry somewhere...but still it inserts the user data into the database... what could be the problem and where??
Link to comment
Share on other sites

I'M GLAD TO ANNOUCE THAT THIS BUG WAS RESOLVED!

I didn’t run manually the updates, just took a watch at both tables ps_customer and ps_customer_group (which was added after version 1.3 as I understood)

So, as Alain asked, the PREFIX_customer table had the customer_group_id index, but the problem was that I truncated all the test customer tables according to this post http://www.prestashop.com/forums/viewthread/9045/#39166

and in that instruction this new table ps_customer_id, so it stayed with the previous customers ids, and that was causing the conflict when adding new ones with the same id. So what you must do if you are having the same problem is to run this code in your phpmyadmin

TRUNCATE TABLE `ps_customer_group`;


Sounds stupid, but it burned my head for at list 1 day, so I hope this solution helps others as well.

As far as I tested the customer registration works fine now in FO and BO.

Link to comment
Share on other sites

×
×
  • Create New...