PDOException: SQLSTATE[23000]: Integrity constraint violation:

Created on 10 November 2011, almost 14 years ago
Updated 11 June 2025, 3 months ago

I seem to be getting these errors when I do a fresh install and when I add a new content type.

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'application__file_styles_square_thumbnail__file_field_styles_fil' for key 'PRIMARY': INSERT INTO {file_display} (name, weight, status, settings) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => application__file_styles_square_thumbnail__file_field_styles_file_square_thumbnail [:db_insert_placeholder_1] => 0 [:db_insert_placeholder_2] => 1 [:db_insert_placeholder_3] => N; ) in drupal_write_record() (line 6884 of /home/quickstart/websites/test.dev/includes/common.inc).

Any help you can provide is appreciated. I'm running the latest 2.x-dev releases of media, file_entity, styles. This doesn't happen when the file_styles.module is disabled.

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States gmclelland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    Thank you for your contributions to this issue. As Drupal 7 has reached its End of Life and is no longer supported, we are closing this issue. We encourage you to upgrade to a supported version of Drupal.

Production build 0.71.5 2024