Skip Navigation

Open

Reported for: WPML Multilingual CMS 4.5.14

Topic Tags: Bug

Overview of the issue

When you deactivate and reactivate WPML after migrating your website or updating WPML manually, you see the following error:

WordPress database error Duplicate entry ‘1616-de’ for key ‘wp_icl_translations.trid_lang’ for query UPDATE `wp_icl_translations` SET `language_code` = ‘de’ WHERE `translation_id` = ‘2122’ made by require_once(‘wp-admin/admin.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, SitePress->rebuild_language_information, TranslationManagement->add_missing_language_information, TranslationManagement->add_missing_language_to_posts, TranslationManagement->add_missing_language_to_post)

Keep in mind that the entry (1616-de) and translation_id (2122) values may vary from one website to another.

Workaround

Our developers are aware of this situation and working on a solution for it. If you encounter this situation, please open a chat in our support forum and share this erratum link. One of our specialists will be happy to help you.

4 Responses to “WordPress database error Duplicate entry”

    • Hi Moritz,

      If you’re facing the same issue, the workaround should still be effective. Just make sure to update the values for entry and translation_id.

      If you need further assistance, feel free to open a chat on our support forum, we’ll be happy to help!

  1. Hi there

    Turned out to be a filter that was triggering a function for adding a column in the post overview.
    The function called by the filter did not exist, not sure how this has ever been working. Anyway, this is fixed now.

    Thanks for your assistance nontheless!

    • Hi,

      I’m glad to hear that your issue has been resolved. Don’t hesitate to reach out to our support team if you need any help.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>