Forums / Upgrading to 1.5.x / Cannot insert configuration_key "" because it already exists

Cannot insert configuration_key "" because it already exists

Views: 4,244

Results 21 to 25 of 25
26 Sep 2013, 5:09 PM
#21
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Cannot insert configuration_key "" because it already exists

rbarbour:

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.

26 Sep 2013, 7:49 PM
#22
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Cannot insert configuration_key "" because it already exists

Ajeh:

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

19 Jan 2014, 8:17 AM
#23
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

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
Attachment 13679
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...

20 Jan 2014, 8:54 AM
#24
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

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:

    $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...

13 Mar 2015, 10:34 AM
#25
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Cannot insert configuration_key "" because it already exists

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...