Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
  1. #21
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Cannot insert configuration_key "" because it already exists

    Quote Originally Posted by rbarbour View Post
    If you have another similar template installed such as the Responsive Apparel Boutique Template?

    Then you will get an error stating:
    Error ERROR: Cannot insert configuration_key "" because it already exists

    Because you already installed the sql patch when installing the other Responsive Template.
    Perhaps, but it should say "COLUMN_WIDTH" instead of ""
    .

    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.

  2. #22
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Cannot insert configuration_key "" because it already exists

    Quote Originally Posted by Ajeh View Post
    Okay ... this should be fun ...

    You know what those settings are now, so I am going to ask you to click on Delete for that record ...

    That will remove the record then, go browse the table:
    configuration_group

    do you have a group for:
    Responsive Sheffield Blue Template

    If so, what is the value for the:
    configuration_group_id
    Sorry I missed this post yesterday. It must have come in while I was replying to DrByte.

    Not to worry about the 'fun'. I'm working in my sandbox, so it is easy for a 'do-over'

    Delete which record? The one with the blank configuration_key?

    Yes, there is a configuration_group_id for Responsive Sheffield Blue Template: 47
    Yes, there is a configuration_group_id for Responsive Apparel Boutique Template: 46
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  3. #23
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,833
    Plugin Contributions
    31

    Default Re: Cannot insert configuration_key "" because it already exists

    While testing out some sql I got the same error and found the same blank configuration_key as mentioned in post #9
    Name:  Screen Shot.jpg
Views: 180
Size:  6.8 KB
    configuration_title "Installed Modules".

    I do keep copies of all mods done but I cannot find where this entry came from.

    Anyway, deleting the record allowed the sql to process completely.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  4. #24
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,833
    Plugin Contributions
    31

    Default Re: Cannot insert configuration_key "" because it already exists

    I find that the only place where this text
    "Installed Modules. This is automatically updated. No need to edit."
    could have come from is not a mod but admin/modules.php:

    PHP Code:
        $db->Execute("insert into " TABLE_CONFIGURATION "
                    (configuration_title, configuration_key, configuration_value,
                     configuration_description, configuration_group_id, sort_order, date_added)
                     values ('Installed Modules', '" 
    zen_db_input($module_key) . "', '" zen_db_input(implode(';'$installed_modules)) . "',
                             'This is automatically updated. No need to edit.', '6', '0', now())"
    ); 
    so, I've put it down to some glitch when installing a payment/shipping module.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  5. #25
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,833
    Plugin Contributions
    31

    Default Re: Cannot insert configuration_key "" because it already exists

    as this is still occurring, I've stuck this in bug reports:
    http://www.zen-cart.com/showthread.p...s-empty-db-key
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. v154 Blank screen after curesec-com file insert ("headers already sent")
    By RixStix in forum General Questions
    Replies: 4
    Last Post: 13 Sep 2015, 09:58 PM
  2. Replies: 5
    Last Post: 14 Mar 2015, 12:28 AM
  3. v139h Cannot "add to cart", "sign up", or "log in". Returns to home.
    By Damn Kitten in forum General Questions
    Replies: 3
    Last Post: 12 Aug 2013, 03:11 AM
  4. Skipped:cannot .... because it already exists
    By Wilfred in forum Installing on a Linux/Unix Server
    Replies: 26
    Last Post: 22 Nov 2010, 08:48 PM
  5. Replies: 0
    Last Post: 7 Dec 2008, 02:31 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