Problem:
I have migrated the website from our staging server to the live server and I get this error:
We have detected a problem with some tables in the database. Please contact WPML support to get this fixed.
Table 'himmelsg_wp991.wp0g_icl_strings' doesn't exist
Array
(
[language] => en
[context] => WP Endpoints
[gettext_context] =>
[domain_name_context_md5] => 8d0ee533eb6eaa9960c52ecb3fc80232
[name] => order-pay
[value] => order-pay
[status] => 0
[translation_priority] => optional
[allow_empty_value] =>
)
I followed the instructions here: https://wpml.org/errata/missing-_icl_strings-_icl_string_translations-data-tables/
But the issue is still there, the code made no difference. The error doesn't appear on the staging server.
Solution:
We could solve the icl_table issue in your website following these steps:
- First, we excluded WPML plugins and reinstalled with their latest versions
- Then, we removed the code on functions.php that you've added in order to recreate the icl tables
- We went to your database and could find the entries "wpml_string_table_ok_for_mo_import" and "wpml_notices"
- After we deleted them, the issue was fixed and the notice on your WP Dashboard disappeared
Relevant Documentation:
https://wpml.org/errata/missing-_icl_strings-_icl_string_translations-data-tables/