Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2004
    Posts
    187
    Plugin Contributions
    0

    Default Customer Default Email Preference duplicate entries

    Upraded to 1.39h and everything went well. However, In Admin/Customer Details, here is the screen I see. There are a bunch of duplicate files for Customer Default Email Preference. Have no idea why. Any feedback on this?
    thanks

    ----------------------------------------------------------------------
    Email Salutation true Info
    Date of Birth true Info
    Company true Info
    Address Line 2 true Info
    State true Info
    State - Always display as pulldown? false Info
    Create Account Default Country ID United States Info
    Fax Number true Info
    Show Newsletter Checkbox 1 Info
    Customer Default Email Preference 0 Info
    Customer Default Email Preference 0 Info
    Customer Default Email Preference 0 Info
    Customer Default Email Preference 0
    Customer Default Email Preference 0 Info
    Customer Default Email Preference 0 Info
    Customer Default Email Preference 0 Info
    Customer Default Email Preference 0 Info
    Customer Product Notification Status 1 Info
    Customer Shop Status - View Shop and Prices 0 Info
    Customer Approval Status - Authorization Pending 0 Info
    Customer Authorization: filename customers_authorization Info
    Customer Authorization: Hide Header false Info
    Customer Authorization: Hide Column Left false Info
    Customer Authorization: Hide Column Right false Info
    Customer Authorization: Hide Footer false Info
    Customer Authorization: Hide Prices false Info
    Customers Referral Status 0

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Customer Default Email Preference duplicate entries

    Looks like you've run the v1.2.2-to-v.1.2.3 upgrade script several times for some peculiar reason.

    Those symptoms also suggest that your "configuration" table is missing its unique index on configuration_key, and as such could possibly have many *other* duplicate entries as well.

    You'll want to clean up those duplicates. I suggest keeping only the first (lowest configuration_id value) of each as the main, and deleting the others that are duplicates.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2004
    Posts
    187
    Plugin Contributions
    0

    Default

    Thanks DrByte. I deleted those dupes. These are the only dupes I found.

    do you have a sql statement that I can add to the table?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Customer Default Email Preference duplicate entries

    Code:
    alter table configuration add unique index unq_config_key_zen (configuration_key);
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2004
    Posts
    187
    Plugin Contributions
    0

    Default Re: Customer Default Email Preference duplicate entries

    Thanks much for this. In fact, just that sql line was a very useful tool as it pointed me right to some
    more duplicates. All have been in there for 5 years.

    Anyway, you were spot on, thanks again

 

 

Similar Threads

  1. Status History & Comments (Customer & Admin side) Duplicate entries?
    By MaximumOverload in forum General Questions
    Replies: 3
    Last Post: 4 Apr 2011, 05:55 PM
  2. checkout_payment page : Change Payment Default Preference [Paypal] to Credit Card
    By dharma in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Jan 2009, 02:26 AM
  3. Remove email preference
    By Salina13 in forum General Questions
    Replies: 4
    Last Post: 8 Nov 2006, 02:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg