Skip to content

Instantly share code, notes, and snippets.

@scottalan
Created July 2, 2013 16:23
Show Gist options
  • Save scottalan/5910787 to your computer and use it in GitHub Desktop.
Save scottalan/5910787 to your computer and use it in GitHub Desktop.
PDOException
WD tmgmt_translator: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'custom_microsoft_translator' [error]
for key 'name': INSERT INTO {tmgmt_translator} (name, label, description, plugin, settings, weight, status, module) 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, :db_insert_placeholder_7); Array
(
[:db_insert_placeholder_0] => custom_microsoft_translator
[:db_insert_placeholder_1] => Custom microsoft translator
[:db_insert_placeholder_2] => Microsoft Translator service.
[:db_insert_placeholder_3] => microsoft
[:db_insert_placeholder_4] =>
a:5:{s:11:"auto_accept";i:1;s:8:"clientid";s:36:"[ID_GOES_HERE]";s:12:"clientsecret";s:44:"[SECRET_GOES_HERE]";s:3:"api";s:0:"";s:25:"remote_languages_mappings";a:2:{s:2:"en";s:2:"en";s:2:"es";s:2:"es";}}
[:db_insert_placeholder_5] => 0
[:db_insert_placeholder_6] => 2
[:db_insert_placeholder_7] => site_feature
)
in drupal_write_record() (line 7139 of /home/demo/public/custom/www/includes/common.inc). [384.28 sec, 189.18 MB]
WD php: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'custom_microsoft_translator' for key [error]
'name': INSERT INTO {tmgmt_translator} (name, label, description, plugin, settings, weight, status, module) 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, :db_insert_placeholder_7); Array
(
[:db_insert_placeholder_0] => custom_microsoft_translator
[:db_insert_placeholder_1] => custom microsoft translator
[:db_insert_placeholder_2] => Microsoft Translator service for custom.
[:db_insert_placeholder_3] => microsoft
[:db_insert_placeholder_4] =>
a:5:{s:11:"auto_accept";i:1;s:8:"clientid";s:36:"[ID_GOES_HERE]";s:12:"clientsecret";s:44:"[SECRET_GOES_HERE]";s:3:"api";s:0:"";s:25:"remote_languages_mappings";a:2:{s:2:"en";s:2:"en";s:2:"es";s:2:"es";}}
[:db_insert_placeholder_5] => 0
[:db_insert_placeholder_6] => 2
[:db_insert_placeholder_7] => site_feature
)
in drupal_write_record() (line 7139 of /home/demo/public/custom/www/includes/common.inc). [384.28 sec, 188.86 MB]
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'custom_microsoft_translator' for key 'name': INSERT INTO {tmgmt_translator} (name, label, description, plugin, settings, weight, status, module) 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, :db_insert_placeholder_7); Array
(
[:db_insert_placeholder_0] => custom_microsoft_translator
[:db_insert_placeholder_1] => Custom microsoft translator
[:db_insert_placeholder_2] => Microsoft Translator service.
[:db_insert_placeholder_3] => microsoft
[:db_insert_placeholder_4] => a:5:{s:11:"auto_accept";i:1;s:8:"clientid";s:36:"[ID_GOES_HERE]";s:12:"clientsecret";s:44:"[SECRET_GOES_HERE]";s:3:"api";s:0:"";s:25:"remote_languages_mappings";a:2:{s:2:"en";s:2:"en";s:2:"es";s:2:"es";}}
[:db_insert_placeholder_5] => 0
[:db_insert_placeholder_6] => 2
[:db_insert_placeholder_7] => site_feature
)
in drupal_write_record() (line 7139 of /home/demo/public/custom/www/includes/common.inc).
Drush command terminated abnormally due to an unrecoverable error. [384.29 sec, 188.85 MB] [error]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment