error Duplicate entry '263' for key 'PRIMARY'
-
I originally posted this in the plugins section Sorry for re-posting it but I have some additional information now and it belongs here.
Hi
I am having a problem that started today. Below is the error message that appeared in my logs every time I do anything weather it is related to WP_online_store or not.
[Mon May 13 16:12:27 2013] [warn] [client 192.168.0.1] mod_fcgid: stderr: WordPress database error Duplicate entry '263' for key 'PRIMARY' for query INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (263, 'Display Product Sort Order', 'PRODUCT_SORT_ORDER', '0', 'Do you want to display the Product Sort Order column?', 8, 29, '', '', NULL, NULL); made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/wp-online-store/WP_online_store.php'), generate_config, referer: https://mysite/wp-admin/admin.php?page=WP_online_store&submenu=index
Below is the configuration table record 263
"263","Display Product Sort Order","PRODUCT_SORT_ORDER","0","Do you want to display the Product Sort Order column?","8","29","0000-00-00 00:00:00","0000-00-00 00:00:00","",""
Any ideas?
On line 234 of WP_online_store.php is the following code
$wpdb->query("INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (263, 'Display Product Sort Order', 'PRODUCT_SORT_ORDER', '0', 'Do you want to display the Product Sort Order column?', 8, 29, '', '', NULL, NULL);");
which is responsible for creating record 263 in the configuration table. My problem appears to be that every time the screen changes this code is run (weather in the dashboard or on the front end). Does any one have any suggestions how to fix this problem?
- The topic ‘error Duplicate entry '263' for key 'PRIMARY'’ is closed to new replies.