Skip Navigation

Resolved

Overview of the issue

You might encounter a message like this one:


Duplicate entry '....................' for key 'uc_domain_name_context_md5'
Array
(
[language] => ....................
[context] => ....................
[gettext_context] =>
[domain_name_context_md5] => ....................
[name] => ....................
[value] => ....................
[status] => ....................
[translation_priority] => ....................
[allow_empty_value] =>
)

In most cases, it is safe to just dismiss that notice as it could be a one-time event due to updates.

In other cases, this can cause a fatal error. If it does cause a fatal error, we advise disabling all caching on your site. This includes plugins and server-side caching, like memcache, APC, Varnish, Redis, etc.

We are working on resolving this problem.

Workaround

6 Responses to “Duplicate entry for key 'uc_domain_name_context_md5'”

  1. Hi there

    I got the same problem yesterday only by opening the woocommerce website and it come out. Before was no problem at all. When you can solve this problem?

    ————————————————————————–

    We have detected a problem with some tables in the database. Please contact WPML support to get this fixed.

    Duplicate entry ‘d544d50d76f51fa272d5ee5886032350’ for key ‘uc_domain_name_context_md5’
    Array
    (
    [language] => en
    [context] => woocommerce
    [gettext_context] =>
    [domain_name_context_md5] => d544d50d76f51fa272d5ee5886032350
    [name] => Table Rate_shipping_method_title
    [value] => Table Rate
    [status] => 0
    [translation_priority] => optional
    [allow_empty_value] =>
    )

    Thanks

    • Hi Stanislav,

      The issue has been fixed and we will release it in WPML 4.0.6 as soon as we close a few more tickets and complete our QA.

      It’s the holiday season and that may cause a slight delay in our release process, but it shouldn’t take more than a couple of weeks.

      We also plan to release a beta before the release.

  2. We have detected a problem with some tables in the database. Please contact WPML support to get this fixed.

    Duplicate entry ‘0’ for key ‘PRIMARY’
    Array
    (
    [language] => en
    [context] => admin_texts_woodmart_options
    [gettext_context] =>
    [domain_name_context_md5] => 3bdc897836c5c8514b8fc0e9b1a08147
    [name] => [woodmart_options]additional_tab_text
    [value] => [html_block id=”242″]
    [status] => 0
    [translation_priority] => optional
    [allow_empty_value] => 1
    )

    • Hello!
      The error message that you have provided here, indicates a serious problem with your string translation table in your database.
      “Duplicate entry 0 for key PRIMARY” usually means that the index of your table, that should always be unique – is not unique. This is a possible indication that the string translation table is damaged and should be analysed and possibly rebuilt.
      Please open a new ticket in our forum so that we can assist you in fixing this.