Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2004
    Location
    Eagle Creek, OR USA
    Posts
    50
    Plugin Contributions
    0

    Default duplicate options in admin confiuration

    Greetings all,

    I have a puzzle that I need help solving. In the admin>configuration>Layout Settings I have a number of duplicate entries. I need to find where to fix this: Mysql, php files?

    Or should I just dump this install which was an upgrade from 1.25 to 1.3.0.1 done as a fresh install with a database upgrade. Everything seems to be working! This has been my first upgrade that has been discouragingly difficult.

    drdan

    en Cart 1.3.0.1
    Database Patch Level: 1.3.0.1

    Server OS: Linux 2.4.21-40.ELsmp
    Database: MySQL 4.0.24
    PHP Version: 4.3.11 (Zend: 1.3.0)
    HTTP Server: Apache/2.0.46 (Red Hat)
    Attached Images Attached Images  

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: duplicate options in admin confiuration

    What you can do is use phpMyAdmin to browse your configuration table ...

    Sort on the configuration_key and look for duplicates ...

    You can delete the duplicates from the table ... but need to be careful about any changes to them ... meaning if you have duplicate configuration_keys but their descriptions or functions are the same ...

    If you are familiar with phpMyAdmin and looking at sql files ... a safe way to fix this would be to delete an configuration_key that is a duplicate ... as in all occurances ... then find the configuration_key in the /zc_install/mysql_zencart.sql file and reload the valid configuration_key ...

    This would assure you have the current configuration_key and values and associated functions ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jun 2004
    Location
    Eagle Creek, OR USA
    Posts
    50
    Plugin Contributions
    0

    Default Re: duplicate options in admin confiuration

    I have gone through the configuration Table and found 10 duplicates. Each one's
    configuration_id is about 80 increments apart. Is this the only place to look for this problem page? I think I can assume the higher numbered twin is the newest. They all appear to have the same values.

    I have a backup database on line and have just backed up this one to local hard disk before I selectively nuke from orbit.

    drdan

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: duplicate options in admin confiuration

    You can make that assumption ...

    However, try to double check against the mysql_zencart.sql file to assure that this is working right ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jun 2004
    Location
    Eagle Creek, OR USA
    Posts
    50
    Plugin Contributions
    0

    Default Re: duplicate options in admin confiuration

    Mission accomplished. I compared each duplicate with the other and with the mysql_zencart.sql and they were identical. The duplicates were 11 of the last 12 records in the database as ordered in ascending id numbers. The duplicates are now gone in Layout settings in configuration, and the zencart seems to run just fine.

    I am tempted to look around in mysql for other duplicates, but I have decided to resist said temptation. My eyeballs are very happy with that decision. There is on the order of 600 records in that table.

    Thank you Ajeh,

    drdan

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: duplicate options in admin confiuration

    via phpMyAdmin ... try the following

    SELECT configuration_key from configuration

    SELECT DISTINCT configuration_key from configuration

    Do both pull up the same number of records?

    If they match ... then you have no more duplicates ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jun 2004
    Location
    Eagle Creek, OR USA
    Posts
    50
    Plugin Contributions
    0

    Default Re: duplicate options in admin confiuration

    Took me awhile to find the Distinct checkbox, but I have been able to confirm that there are no more duplicates.

    We are happy!

    Thank you very much Ajeh.
    drd

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: duplicate options in admin confiuration

    Thanks for the update and letting us know that you are back in business ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. 1062 Duplicate entry '1-1' for key 1 in Options Values Manager
    By willbarraclough in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 Sep 2010, 10:53 PM
  2. Duplicate Options Name Added Warning with EasyPopulate
    By chadderuski in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 28 Sep 2009, 03:08 AM
  3. [duplicate report] Duplicate option values in admin
    By joystick in forum Bug Reports
    Replies: 3
    Last Post: 6 Mar 2008, 02:54 AM
  4. Step 2 of checkout - duplicate CC options??
    By robinstl in forum General Questions
    Replies: 2
    Last Post: 9 Nov 2007, 07:15 AM
  5. Replies: 5
    Last Post: 2 Jul 2007, 07:16 PM

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