This thread is resolved. Here is a description of the problem and solution.
Problem:
While configuring WPML, the client encountered a database error indicating that the table 'dbam4gw1njitaz.wp_icl_strings' does not exist.
Solution:
If you're experiencing this issue, we recommend the following steps to recreate the missing icl_tables:
- First, ensure to make a full backup of your site (files and database).
- Add the following 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 once.
- Remove the code from the functions.php file.
- Finally, remove the keys "wpml_string_table_ok_for_mo_import" and "wpml_notices" from the options table (typically wp_options, where "wp_" is your database prefix).
This should resolve the error. If the issue persists or if this solution seems outdated or irrelevant to your case, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket at WPML support forum for further assistance.
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 1 reply, has 2 voices.
Last updated by 2 years, 10 months ago.
Assisted by: Mateus Getulio.