Totally Zenned
- Join Date:
- Aug 2009
- Location:
- North Idaho, USA
- Posts:
- 2,015
- Plugin Contributions:
- 0
Cannot insert configuration_key "" because it already exists
I keep attempting to install a responsive template by picaflor-azul and keep getting errors when running the SQL files.
The following SQL statement yields the error which follows:
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES(NULL, '<font color="#0044ff">ACTIVATE Responsive Template by selecting Column Widths</font>', 'COLUMN_WIDTH', '2', 'Width of the Left and Right Columns<br />0 = Use Default Template Settings<br />1 = 75px<br />2 = 150px<br />3 = 225px',@configuration_group_id, NULL, NOW(), NULL, 'zen_cfg_select_option(array(\'0\', \'1\', \'2\', \'3\'),');
Upgrade_exceptions TABLE
Cannot insert configuration_key "" because it already exists
Given my limited knowledge of peeking/poking around, I assume the error means that configuration_key “” means “Blank, nothing, nada” is in that field. The configuration_key of nothing cannot be inserted because it already exists in the table.
Looking at the table, I find
configuration TABLE
configuration_id 1146
configuration_title Installed Modules
configuration_key blank
configuration_value blank
configuration_description This is automatically updated. No need to edit
configuration_group_id 6
sort_order 0
last_modified NULL
date_added 2012-09-21 07:10:38
use_function NULL
set_function NULL
So there is already a configuration_key “” (blank, nothing, nada)
Using ADMIN:TOOLS: Developers Tool Kit to search in zen-cart-v1.3.9h-full-fileset-10262010 for:
This is automatically updated. No need to editThe result is admin/modules.php around line 266
'This is automatically updated. No need to edit.', '6', '0', now())");
**My logic tells me that this is what caused the BLANK configuration_key to be inserted into the database in Sept 2012.
My question is Why is it there, can I delete that entry, if so, what will be affected since it was inserted for some reason in the first place.
A default v1.3.9h install does not have this configuration_key in the database, so when upgraded to V1.5.1, the responsive template install works like a charm.
MY v1.3.9H database, converted to V1.5.1 DOES have this configuration_key and I am assuming that is why the responsive template install is failing.**
Additional info, which may or maynot be relevant:
Looking through website backups, I found a myDEBUG-adm file
[21-Sep-2012 14:10:52 UTC] PHP Warning: reset() expects parameter 1 to be array, null given in /home/MYHOSTINGACCOUNT/public_html/MySecretAdmin/modules.php on line 297
[21-Sep-2012 14:10:52 UTC] PHP Warning: Variable passed to each() is not an array or object in /home/MYHOSTINGACCOUNT/public_html/MySecretAdmin/modules.php on line 298
Also, from server logs, again, may or maynot be relevant
Line 473868: 208.94.86.183 - ProtectedFolder [21/Sep/2012:07:10:38 -0700] "GET /MySecretAdmin/modules.php HTTP/1.1" 200 3272 "-" "Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1"
Line 473869: 208.94.86.183 - ProtectedFolder [21/Sep/2012:07:10:38 -0700] "GET /MySecretAdmin/includes/languages/english/images/buttons/button_module_install.gif HTTP/1.1" 200 921 "http://chainweavers.com/MySecretAdmin/modules.php" "Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1"
Line 473870: 208.94.86.183 - ProtectedFolder [21/Sep/2012:07:10:52 -0700] "GET /MySecretAdmin/modules.php?set=&module=&action=install HTTP/1.1" 302 26 "http://chainweavers.com/MySecretAdmin/modules.php" "Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1"
Line 473871: 208.94.86.183 - ProtectedFolder [21/Sep/2012:07:10:52 -0700] "GET /MySecretAdmin/modules.php?set=&module=&action=edit HTTP/1.1" 200 3390 "http://chainweavers.com/MySecretAdmin/modules.php" "Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1"
Line 473872: 208.94.86.183 - ProtectedFolder [21/Sep/2012:07:10:53 -0700] "GET /MySecretAdmin/includes/languages/english/images/buttons/button_update.gif HTTP/1.1" 304 - "http://chainweavers.com/MySecretAdmin/modules.php?set=&module=&action=edit" "Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1"
Line 473873: 208.94.86.183 - ProtectedFolder [21/Sep/2012:07:10:53 -0700] "GET /MySecretAdmin/includes/languages/english/images/buttons/button_cancel.gif HTTP/1.1" 200 451 "http://chainweavers.com/MySecretAdmin/modules.php?set=&module=&action=edit" "Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1"
Line 473874: 208.94.86.183 - ProtectedFolder [21/Sep/2012:07:11:01 -0700] "GET /MySecretAdmin/modules.php?set= HTTP/1.1" 200 3273 "http://chainweavers.com/MySecretAdmin/modules.php?set=&module=&action=edit" "Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1"