Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client encountered an issue with the 'There is a problem with the String Translation table in your site.' error message and discovered that the uc_domain_name_context_md5 index was missing from the icl_strings table. Additionally, there were many duplicate entries in the icl_strings table, which prevented the creation of the index.
Solution:
We resolved the issue on the staging site and requested access to the live site or a database dump to apply the fix. Our 2nd tier support team planned to log in to the dashboard, install a database admin plugin such as Adminer, patch the table, and ensure everything was functioning correctly. We emphasized the importance of not making changes during this process and the necessity of having a database backup.

If you're experiencing a similar issue, we recommend you ensure that you have a recent backup of your database before proceeding. If the solution provided here seems outdated or not applicable to your case, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly encourage you to open a new support ticket in the WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 16 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 1 month ago.

Assisted by: Osama Mersal.

Author Posts
April 20, 2024 at 3:26 pm #15546233

nicolasG-72

While debugging the dreadful 'There is a problem with the String Translation table in your site.' message, I noticed that the uc_domain_name_context_md5 index is missing from the icl_strings table definition.

Trying to create this index fails because there are a lot of duplicate entries in the icl_strings table (ie. with the same _md5 value).

Would you have a pre-made query that would enable me to get rid of these duplicate entries without also deleting their translation? This site has been in operation for several years and I cannot lose any of the translations in the database.

Thanks.

April 21, 2024 at 12:43 pm #15547294

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) Please let me know if you have a staging site where we can debug the issue. If yes, I would need to request temporary access (WP-Admin and FTP)

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me a lot of information about how your site is configured.

Best regards,
Osama

April 26, 2024 at 12:37 pm #15570672

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the access details. I've consulted our 2nd tier support team regarding this issue, and I'll update you as soon as I get their reply.

Best regards,
Osama

April 29, 2024 at 9:22 am #15575958

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your patience. Would you please purge the cache on the staging site and check if you still see the message?

Best regards,
Osama

April 29, 2024 at 2:22 pm #15577706

nicolasG-72

Hi Osama,

Thanks much, everything seems to be working after a 'wp cache flush': the message is no longer here, the table has the missing index in place, and all string translations are there.

Can you please tell me how to replicate this fix on the production site?

Thanks,
--Nicolas.

April 30, 2024 at 6:13 am #15579295

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Nicolas,

It's great to hear that the issue is fixed on the staging site. Please share the live site's access details or a database dump of your live site, so our 2nd tier support tier can patch it with the fix.

Best regards,
Osama

April 30, 2024 at 9:26 am #15580500

nicolasG-72

Hi Osama,

I first need to understand what will be done on the live site as there are active users working and actively translating strings every day.

Can you share the exact operations that will be done by your staff? Will this require any downtime? Will any work done be lost?

Thanks,
--Nicolas.

April 30, 2024 at 9:48 am #15580641

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Nicolas,

Our 2nd tier support team will log in to your dashboard, install a database admin plugin, like Adminer, patch the table, and check if everything works as it should.

It's not recommended to make changes while we work, and it's necessary to have a database backup.

Best regards,
Osama

April 30, 2024 at 12:02 pm #15581124

nicolasG-72

Hi Osama,

I understand, but this would not be possible on our production environment for a number of reasons, including both technical ones (read-only code) and organizational (users working all the time on translations).

Since the development site was an exact replica of the production site, would it be possible for your second line support to list the queries/operations they did so I can replicate on the production site?

Note this was my original question. I am an experienced SQL database administrator and PHP developer, so will not have any issues understanding the steps needed to fix.

Thanks,
--Nicolas.

April 30, 2024 at 2:58 pm #15581885

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Nicolas,

I passed your reply to our 2nd tier support team and will update you as soon as I get their reply.

Best regards,
Osama

April 30, 2024 at 3:27 pm #15582013

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Nicolas,

Would it be possible to provide _icl_string* tables? Note: The asterisk means all similar named tables, including icl_string_translations, etc.

Our team will patch these tables and share them with you.

Best regards,
Osama

April 30, 2024 at 5:53 pm #15582392

nicolasG-72

Hi Osama,

If this is the only option then we need to synchronize so this happens when the users are not working and entering new translations. The users are located in Canada.

I will send the backups tomorrow morning European time, and would need to receive the corrected tables by early afternoon in order to install these before the users start working.

Can you please synchronize this with the second level support? What time do you start working in GMT timezone?

Thanks,
--Nicolas.

April 30, 2024 at 10:14 pm #15582870

nicolasG-72

Hi Osama,

The icl_* tables are available at hidden link

I will need these back by noon GMT tomorrow at the latest.

Thanks,
--Nicolas.

May 1, 2024 at 8:29 am #15583391

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Nicolas,

Thanks for the tables. My colleague is on vacation today and he will do it tomorrow.

Thanks,
Osama

May 2, 2024 at 7:12 am #15585703

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Here are the patched tables. (hidden link)

Best regards,
Osama