Open
Overview of the issue
The debug.log content has these errors:
WordPress database error Table 'wp_icl_strings' doesn't exist for query…
WordPress database error Table 'wp_icl_string_translations' doesn't exist for query…
These errors result in the following issues:
- On the WPML → String Translation page there are no strings.
- When scanning for theme and/or plugin strings on the WPML → Theme and plugins localization page there are no strings found.
You may also see the following notification that cannot be dismissed:
We have detected a problem with some tables in the database. Please contact WPML support to get this fixed.
Array ( en =>
Workaround
These errors happen when the activation of WPML is not complete. We are not yet sure how this issue is exactly replicated.
Only if you have no translations, you can go to WPML > Support > Troubleshooting > Scroll down and Reset and Deactivate WPML
If you already have translations you can use the following workaround and continue to work with WPML.
- Make a full backup of your site (files and database). There are many free plugins on WordPress.org for this purpose.
- Add this code to the bottom of the functions.php file in your theme’s root folder.
function wpml_fix_missing_icl_tables() { if( function_exists( 'icl_sitepress_activate' ) ) icl_sitepress_activate(); } add_action( 'wp_footer', 'wpml_fix_missing_icl_tables' );
- Visit your site’s homepage at least one time.
- Remove the code.
when I visit the homepage, this apear Parse error: syntax error, unexpected ‘wpml_fix_missing_icl_tables’ (T_STRING) in /home/hudsonparkcom/public_html/hp/wp-content/themes/hotel-xenia/functions.php on line 400
Was a problem with the cppy paste. It´s ok now
How Do I delete the option key: wpml_string_table_ok_for_mo_import?
Please just remove the record from `wp_options` table in your database.
How can i give to you the ftp data so you can fix this issue for me?
Please open a ticket in our support forum.
I have removed option key wpml_string_table_ok_for_mo_import from options table. but it’s getting added again if reload the page.
Hello Ronda,
The best way to properly help you is through our support forum, so we can ask you some more details we can’t ask you in the errata’s comments.
Could you please create a new support thread?
I created the new tables, but still have the error message, any further advice?
Also, I never saw the the option key: wpml_string_table_ok_for_mo_import
Hello Joshua,
Could you please create a new support thread in our support forum?
Through the comments system of the errata, we can’t ask you some sensible details we may need to give you proper support.
Thanks.
Ok, I’ve posted. Thank you 🙂
Hello support team,
I have updated the WPML plugins with latest updates but There is displaying a warning in WordPress backed as
“There is a problem with the String Translation table in your site. This problem is not causing a problem running the site right now but can become a critical issue in the future. WPML support team knows how to fix it. Please add a message in the relevant support thread and we’ll fix it for you.”
Please suggest that how to remove it.
Thanks
Thijs
Hello,
I am sorry to hear this. Please go to our dedicated forum to clients.
Log in and start a new thread where one of our supporters will assist you https://wpml.org/forums/forum/english-support/
Kind regards,
Hello support team,
I have updated the WPML plugins with latest updates but There is displaying a warning in WordPress backed as
“There is a problem with the String Translation table in your site. This problem is not causing a problem running the site right now but can become a critical issue in the future. WPML support team knows how to fix it. Please add a message in the relevant support thread and we’ll fix it for you.”
Please suggest that how to remove it.
– – –
as it is the same problem i simply copied that stuff – saves time – it would be much better if you would simply provide a working solution here instead of keeping customers in line
Thanks
Andi
Hello!
If you had the tables missing, and you re-created them – then you might need to only remove the key “wpml_string_table_ok_for_mo_import” from the option table(by default wp_options, where “wp_” is your database prefix) in order to hide the notice.
If after removing the key, you still have the error – then probably your tables structure need patching.
We can help you with the patch process in the ticket: @https://wpml.org/forums/topic/wpml-is-telling-me-that-it-has-a-broken-table-that-needs-fixing/
However, we cannot provide manual steps on patching the database and retaining the strings and their translations, because this is something that has potentially hundreds of possibilities there that are tailored for the individual case and they vary greatly depending on the needed patch for the database.
Hi, am also having the same problem when trying to remove ‘wpml_string_table_ok_for_mo_import’ from wp_options it keeps coming back.
iv no table for ‘wp_strings’ what can i do, is it possible to give you access to site which iv got Adminer installed.
Could you please report this in our support forum, so that one of our supporters can help you?
Hello Glyn
I remember that you already contacted me in the ticket (@https://wpml.org/forums/topic/wpml-is-telling-me-that-it-has-a-broken-table-that-needs-fixing/ ) where we patch these cases.
You told me that the key comes back – and in reply #2751444 I responded to you that this is perfectly normal.
If you wish to proceed further, you can either share a database in that ticket or give access so that we can work on your site.
Hi George, iv already opened a ticket and @Bobby has answered it but i now can not open private message to send FTP to him…
A private message can be opened, once you request it from the supporter.
Just ask him and I am sure that he will open it for you.
Hello @George
I have issue while editing and updating the post, not able to see the media pages under media library as well. Getting the same error.
Thanks & Regards
Hello!
Please open a new ticket in our support forum so that we can help you and debug this issue.
Hello
I’ve got this message :
Array
(
[language] => en
[context] => Widgets
[gettext_context] =>
[domain_name_context_md5] => a48c6eb3c5890b18ba90320a27899305
[name] => widget title – 69e7df6b9f7404b4007d936978a45c81
[value] => Recent Comments
[status] => 0
[translation_priority] => optional
[allow_empty_value] =>
)
How to resolve this ? I add the function and go to HP but still have this message.
Thanks,
Jonathan
Hi Jonathan,
We found out some edge cases where this is a false positive message.
You can verify if this is a false positive:
1. Go to WPML -> String Translation
2. Search for the string “Recent Comments”.
If you manage to find the string with the same “context” (“Domain”), “gettext_context” (“Context”) and “Name”, the notice is a false alarm and you can dismiss it.
Otherwise, please open a ticket on the support forum and you will get assistance to fix your problem.
Thanks,
Pierre
Hi I have opened a ticket and the support team replied with a link that redirects me to this page. I followed the first step which is to backup the site. For the second step, I don’t understand how could I reach to the functions.php file or the theme’s root folder. I am currently using Xstore theme so does it mean I have to go to the CSS?
This was the error that i sent to the support team that redirected me to this site.
“We have detected a problem with some tables in the database. Please contact WPML support to get this fixed.
Array
(
[language] => en
[context] => wpv-views
[gettext_context] =>
[domain_name_context_md5] => 05b694accde8bab26286d380ef2cad1f
[name] => dc770a451931e3eb28348451a1ef9896
[value] => Text Search
[status] => 0
[translation_priority] => optional
[allow_empty_value] =>
) “
Thanks the support helped me
Hi,
We found out some edge cases where this is a false positive message.
You can verify if this is a false positive:
1. Write down the string mentioned in the “value” element of the “Array” (from the notice message)
2. Go to WPML -> String Translation
3. Search for the string
If you manage to find the string with the same “context” (“Domain”), “gettext_context” (“Context”) and “Name”, the notice is a false alarm and you can dismiss it.
Otherwise, if you don’t know how to edit the functions.php file of your theme, please ask for assistance in your support ticket. A supporter will help you to do this.
Thanks,
Pierre
hello guys could you help me please i really got confuse and irradiated because of this problem , ido have the same problem and im losing my work and my time becouse i cant work with wpml with this problem 🙁 help me please
It is hard to resolve things like this in the comments area.
Please open a new support ticket and ask us for help:
https://wpml.org/forums/forum/english-support/
We will be able to give you a better service over there.
Please fix.
this message came out on my website, how can i fix it? thank you!
There is a problem with the String Translation table in your site. This problem is not causing a problem running the site right now, but can become a critical issue in the future. WPML support team knows how to fix it. Please add a message in the relevant support thread and we’ll fix it for you.
Hi, this message is related to running an older WPML version, please report this in our support forum so we can help you resolve fast and safely. Thanks!
Is not related to an older WPML version, this is happening to me with the newest version available. I installed mine March 5 2020
WPML is probably the worst thing I have uploaded to my website.
OK, I am looking at that.
Thank you!
Very helpful
There is a problem with the String Translation table in your site. This problem is not causing a problem running the site right now, but can become a critical issue in the future. WPML support team knows how to fix it. Please add a message in the relevant support thread and we’ll fix it for you.
in my database F. PHP as below
<?php
if ( !defined( 'ICL_LANGUAGE_CODE' ) && !defined('TOPDEAL_THEME') ){
define( 'TOPDEAL_THEME', 'topdeal_theme' );
}else{
define( 'TOPDEAL_THEME', 'topdeal_theme'.ICL_LANGUAGE_CODE );
}
what i should do to remove this red note and solve problem
Please report that in our support forum (https://wpml.org/forums/forum/english-support/) so we can help you resolve.
Hi guys
re. “There is a problem with the String Translation table in your site. This problem is not causing a problem running the site right now, ” ETC ….
will you PLEASE update WPML we can easily dismiss this annoying message. It’s a simple matter of actually including an ‘X’ in the top right corner to dismiss the message and there have been so many customers asking you about this. Still it continues.
i add the code u said and the error desnt removed stills same
Hello Andi,
Make sure you followed step 3 (Visit your site’s homepage at least one time), it’s important to activate the code.
If the issue still occurs after this, please open a ticket or chat on our support forum and we will investigate.