Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In my logs, I found below errors.
These always happened when a cron is executed.
Not sure if is it a problem of rules or Drupal cache. make a report here.
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'rules_empty_sets' for key 'PRIMARY': INSERT INTO {variable} (name, value) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => rules_empty_sets [:db_insert_placeholder_1] => a:91:{s:29:"commerce_cart_product_prepare";i:0;s:35:"commerce_payment_order_paid_in_full";i:1;s:32:"commerce_shipping_calculate_rate";i:2;s:11:"bean_insert";i:3;s:11:"bean_update";i:4;s:12:"bean_presave";i:5;s:11:"bean_delete";i:6;s:9:"bean_view";i:7;s:22:"commerce_coupon_insert";i:8;s:22:"commerce_coupon_update";i:9;s:23:"commerce_coupon_presave";i:10;s:22:"commerce_coupon_delete";i:11;s:27:"commerce_coupon_type_insert";i:12;s:27:"commerce_coupon_type_update";i:13;s:28:"commerce_coupon_type_presave";i:14;s:27:"commerce_coupon_type_delete";i:15;s:32:"commerce_customer_profile_insert";i:16;s:32:"commerce_customer_profile_update";i:17;s:33:"commerce_customer_profile_presave";i:18;s:32:"commerce_customer_profile_delete";i:19;s:30:"commerce_customer_profile_view";i:20;s:25:"commerce_line_item_insert";i:21;s:26:"commerce_line_item_presave";i:22;s:23:"commerce_line_item_view";i:23;s:21:"commerce_order_insert";i:24;s:22:"commerce_order_presave";i:25;s:21:"commerce_order_delete";i:26;s:19:"commerce_order_view";i:27;s:35:"commerce_payment_transaction_insert";i:28;s:35:"commerce_payment_transaction_update";i:29;s:36:"commerce_payment_transaction_presave";i:30;s:35:"commerce_payment_transaction_delete";i:31;s:33:"commerce_payment_transaction_view";i:32;s:23:"commerce_product_insert";i:33;s:24:"commerce_product_presave";i:34;s:23:"commerce_product_delete";i:35;s:21:"commerce_product_view";i:36;s:28:"field_collection_item_insert";i:37;s:28:"field_collection_item_update";i:38;s:29:"field_collection_item_presave";i:39;s:28:"field_collection_item_delete";i:40;s:26:"field_collection_item_view";i:41;s:23:"flag_flagged_order_flag";i:42;s:25:"flag_unflagged_order_flag";i:43;s:22:"flag_flagged_bookmarks";i:44;s:24:"flag_unflagged_bookmarks";i:45;s:9:"node_view";i:46;s:11:"node_delete";i:47;s:4:"init";i:48;s:4:"cron";i:49;s:8:"watchdog";i:50;s:11:"user_update";i:51;s:12:"user_presave";i:52;s:9:"user_view";i:53;s:11:"user_delete";i:54;s:10:"user_login";i:55;s:11:"user_logout";i:56;s:20:"taxonomy_term_insert";i:57;s:20:"taxonomy_term_update";i:58;s:21:"taxonomy_term_presave";i:59;s:20:"taxonomy_term_delete";i:60;s:26:"taxonomy_vocabulary_insert";i:61;s:26:"taxonomy_vocabulary_update";i:62;s:27:"taxonomy_vocabulary_presave";i:63;s:26:"taxonomy_vocabulary_delete";i:64;s:45:"rules_forms_wine_product_node_form_form_built";i:65;s:46:"rules_forms_wine_product_node_form_form_submit";i:66;s:72:"rules_forms_wine_product_node_form_button_submit_actions_submit_validate";i:67;s:70:"rules_forms_wine_product_node_form_button_submit_actions_submit_submit";i:68;s:73:"rules_forms_wine_product_node_form_button_submit_actions_preview_validate";i:69;s:71:"rules_forms_wine_product_node_form_button_submit_actions_preview_submit";i:70;s:96:"rules_forms_wine_product_node_form_button_submit_field_pdattr_image_und_0_upload_button_validate";i:71;s:94:"rules_forms_wine_product_node_form_button_submit_field_pdattr_image_und_0_upload_button_submit";i:72;s:96:"rules_forms_wine_product_node_form_button_submit_field_pdattr_image_und_0_remove_button_validate";i:73;s:94:"rules_forms_wine_product_node_form_button_submit_field_pdattr_image_und_0_remove_button_submit";i:74;s:100:"rules_forms_wine_product_node_form_button_submit_field_pdattr_grape_col_und_0_remove_button_validate";i:75;s:98:"rules_forms_wine_product_node_form_button_submit_field_pdattr_grape_col_und_0_remove_button_submit";i:76;s:93:"rules_forms_wine_product_node_form_button_submit_field_pdattr_grape_col_und_add_more_validate";i:77;s:91:"rules_forms_wine_product_node_form_button_submit_field_pdattr_grape_col_und_add_more_submit";i:78;s:95:"rules_forms_wine_product_node_form_button_submit_field_pdattr_rate_und_0_remove_button_validate";i:79;s:93:"rules_forms_wine_product_node_form_button_submit_field_pdattr_rate_und_0_remove_button_submit";i:80;s:88:"rules_forms_wine_product_node_form_button_submit_field_pdattr_rate_und_add_more_validate";i:81;s:86:"rules_forms_wine_product_node_form_button_submit_field_pdattr_rate_und_add_more_submit";i:82;s:97:"rules_forms_wine_product_node_form_button_submit_field_pdattr_winery_und_0_remove_button_validate";i:83;s:95:"rules_forms_wine_product_node_form_button_submit_field_pdattr_winery_und_0_remove_button_submit";i:84;s:90:"rules_forms_wine_product_node_form_button_submit_field_pdattr_winery_und_add_more_validate";i:85;s:88:"rules_forms_wine_product_node_form_button_submit_field_pdattr_winery_und_add_more_submit";i:86;s:99:"rules_forms_wine_product_node_form_button_submit_field_slideshow_image_und_0_upload_button_validate";i:87;s:97:"rules_forms_wine_product_node_form_button_submit_field_slideshow_image_und_0_upload_button_submit";i:88;s:99:"rules_forms_wine_product_node_form_button_submit_field_slideshow_image_und_0_remove_button_validate";i:89;s:97:"rules_forms_wine_product_node_form_button_submit_field_slideshow_image_und_0_remove_button_submit";i:90;} ) in variable_set() (line 972 of /var/www/m1ntcellars_svn/includes/bootstrap.inc).
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedi just got this too
Comment #2
ptmkenny CreditAttribution: ptmkenny commentedThis is not a reproducible error. See Tips for making a good issue report for more information.
Are you using Commerce Kickstart? What configuration do you have to make to get this error?
Comment #3
joelpittetThe latest dev seems to delete this extra variable for 'rules_empty_sets'. I upgraded to that, updated the db to remove it and reverted back to 7.x-2.2 and that PDOException no longer exists.
I had to revert because -dev was throwing this error:
Hope that helps you get past the PDOException at the very least...
Comment #4
Exploratus CreditAttribution: Exploratus commentedI got this when I upgraded to DEV. Reverted back
Comment #5
rbrownellI had the same problem... I am not using the Commerce Kickstart installation file but I am using Drupal Commerce.
Comment #6
fagoad #3 Please be sure to run update.php - that should have updated your registry. If for some reason that did not work out for you, try registry rebuild module or enable/disable any module.
ad issue: This should be fixed with the latest dev version or 2.3, please upgrade.
Comment #8
GrigoriuNicolae CreditAttribution: GrigoriuNicolae commentedI think that this message come from Search Api Db when cron runs
Comment #9
rv0 CreditAttribution: rv0 commentedNot using Search api, Not using commerce
But I'm seeing this error
Comment #10
gianlucarossi CreditAttribution: gianlucarossi commentedUp how to solve? i have the same error using drupal commerce kickstart 2.0
Comment #11
impara CreditAttribution: impara commentedI have the same error, but I'm not using commerce kickstart