Skip Navigation

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

Problem:
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.

Solution:
We've found some edge cases where this error is fixed following these instructions to recreate icl_tables:

- Make a full backup of your site (files and database)

- Please 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

Once you complete these steps, then you have to remove the keys "wpml_string_table_ok_for_mo_import" and "wpml_notices" from the options table (by default wp_options, where "wp_" is your database prefix), and all errors should be gone.

Relevant Documentation:
https://wpml.org/errata/missing-_icl_strings-_icl_string_translations-data-tables/

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.

This topic contains 2 replies, has 2 voices.

Last updated by marinaN 1 month, 4 weeks ago.

Assigned support staff: Mateus Getulio.

Author Posts
October 4, 2021 at 7:35 am #9713847

marinaN

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.

I cannot provide the debug information because wpml support page is blank.

October 4, 2021 at 8:08 pm #9718841

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Welcome to our support forum. I’ll be happy to assist you with this!

We've found some edge cases where this error is fixed following these instructions to recreate icl_tables:

- Make a full backup of your site (files and database)
- Please 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

Once you complete these steps, then you have to remove the keys "wpml_string_table_ok_for_mo_import" and "wpml_notices" from the options table (by default wp_options, where "wp_" is your database prefix), and all errors should be gone.

Please give it a try and let us know if it works for you. We're looking forward to your reply. Thanks!

Kind regards,
Mateus.

October 8, 2021 at 6:05 am #9745243

marinaN

Hello.

The code in functions.php file worked perfectly.

The rest I didn't do, as it was first installation for wpml and there were not any translations created, so I just made a reset.

All are working correctly now.

Thank you very much for your help.