Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / 1062 Duplicate entry '1213' for key 1 --trying to add How did you hear about us addon

1062 Duplicate entry '1213' for key 1 --trying to add How did you hear about us addon

Locked
This thread is locked. New replies are disabled.
23 Jul 2009, 3:42 AM
#1
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Post #1 by helpme

I am using 1.3.8a, upgraded from 1.3.7 I am getting an error after trying to add the How did you hear about us addon. I successfully put it into another site but now I get an error with on the second site.
1062 Duplicate entry '1213' for key 1
I have looked at the tables and I can't find any duplicates.
Please help. when someone signs up for an account it gives the error, even though they do get the account.
thanks!

23 Jul 2009, 11:26 AM
#2
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Post #2 by helpme

Now I have totally screwed it up!
Here is the error I am getting when I open the admin>customer
1054 Unknown column 'c.customers_referral' in 'field list'
in:
[select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_pricing, a.entry_country_id, a.entry_company, ci.customers_info_date_of_last_logon, ci.customers_info_date_account_created , c.customers_telephone, a.entry_company, a.entry_street_address, a.entry_city, a.entry_postcode, c.customers_authorization, c.customers_referral, cgc.amount from customers c left join customers_info ci on c.customers_id= ci.customers_info_id left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id left join coupon_gv_customer cgc on c.customers_id = cgc.customer_id order by ci.customers_info_date_account_created DESC limit 0, 50]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I am sure I need to take out the c.customers_referral, but I don't know where to find it.
Anyone??? please :)

23 Jul 2009, 1:11 PM
#3
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Post #3 by helpme

Sorry to post again, but I can't edit my last post (time ran out) I have fixed orig. problem but I am still getting the:

1054 Unknown column 'c.customers_referral' in 'field list'
in:
[select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_pricing, a.entry_country_id, a.entry_company, ci.customers_info_date_of_last_logon, ci.customers_info_date_account_created , c.customers_telephone, a.entry_company, a.entry_street_address, a.entry_city, a.entry_postcode, c.customers_authorization, c.customers_referral from customers c left join customers_info ci on c.customers_id= ci.customers_info_id left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id order by ci.customers_info_date_account_created DESC limit 0, 50] error when I open my admin>customers

I have checked in phpmyadmin and under customers there is no longer any referrals tables. Can anyone point me to where this is coming from or what to do to fix it?

again, thanks so much!!!!