Closed (outdated)
Project:
Panels
Version:
7.x-3.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 May 2013 at 13:11 UTC
Updated:
13 Jul 2026 at 16:47 UTC
Jump to comment: Most recent
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'flexiblev2:homepagelayout' for key 'PRIMARY': INSERT INTO {ctools_css_cache} (cid, filename, css, filter) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => flexiblev2:homepagelayout [:db_insert_placeholder_1] => public://ctools/css/3ef110ff2247e01ce13c441e9711fc8f.css [:db_insert_placeholder_2] => .panels-flexible-region { padding: 0; } .panels-flexible-region-inside { padding-right: 0.5em; padding-left: 0.5em; } .panels-flexible-region-inside-first { padding-left: 0; } .panels-flexible-region-inside-last { padding-right: 0; } .panels-flexible-column { padding: 0; } .panels-flexible-column-inside { padding-right: 0.5em; padding-left: 0.5em; } .panels-flexible-column-inside-first { padding-left: 0; } .panels-flexible-column-inside-last { padding-right: 0; } .panels-flexible-row { padding: 0 0 0.5em 0; margin: 0; } .panels-flexible-row-last { padding-bottom: 0; } .panels-flexible-column-homepagelayout-main { float: left; width: 99.0000%; } .panels-flexible-homepagelayout-inside { padding-right: 0px; } .panels-flexible-homepagelayout { width: auto; } .panels-flexible-region-homepagelayout-tophomepanel { float: left; width: 99.0000%; } .panels-flexible-row-homepagelayout-2-inside { padding-right: 0px; } .panels-flexible-region-homepagelayout-topleft { float: left; width: 59.3286%; } .panels-flexible-region-homepagelayout-topright { float: left; width: 39.6714%; } .panels-flexible-row-homepagelayout-1-inside { padding-right: 0px; } [:db_insert_placeholder_3] => 0 ) in ctools_css_store() (line 87 of /www/www-live/drupal.sanger.ac.uk/htdocs/sites/all/modules/contrib/ctools/includes/css.inc).
Comments
Comment #1
merlinofchaos commentedAs I've said elsewhere, this is almost certainly an issue with your replication setup.
Comment #2
stephenrobinson commentedComment #3
stephenrobinson commentedThis occurs as when 2 users generate the cache, user 1 can delete the row, user 2 can then insert a row, then user 1 tries to insert the row and then get an error:
this can be avoided:
Comment #4
geerlingguy commentedThis needs a patch attached for review :)
Comment #5
japerryDrupal 7 is no longer supported, closing.