Hi,
When I try to import language Gettext file for the Drupal 7.21 release, the following message is displayed :

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'temporary://drupal-7.21.fr__5.po' for key 'uri': INSERT INTO {file_managed} (uid, filename, uri, filemime, filesize, status, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => drupal-7.21.fr_.po [:db_insert_placeholder_2] => temporary://drupal-7.21.fr__5.po [:db_insert_placeholder_3] => application/octet-stream [:db_insert_placeholder_4] => 706757 [:db_insert_placeholder_5] => 0 [:db_insert_placeholder_6] => 1363084349 ) in drupal_write_record() (line 7106 of /var/www/vhosts/path.../includes/common.inc).

Many thanks for solving this issue !

Comments

devin carlson’s picture

Project: Drupal Commons » Drupal core
Version: 7.x-3.0 » 7.x-dev
Component: User interface » file system
Status: Active » Closed (fixed)

This is a core issue and isn't related to Commons.

I'd suggest clearing out any temporary files manually or waiting for them to be purged via cron (temporary files are automatically removed, after a period of time, during cron runs) before attempting to import any translations.