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: Exception
This topic contains 5 replies, has 0 voices.
Last updated by wioletaR 3 months ago.
Assisted by: Otto.
| Author | Posts |
|---|---|
| October 15, 2025 at 1:36 pm #17487192 | |
|
wioletaR |
Background of the issue: Symptoms: Questions: |
| October 15, 2025 at 1:43 pm #17487214 | |
|
wioletaR |
i m sorry but yr AI got it all wrong. now the string translation plugin is inactive. when active the site gets a critical error. I wanna fix my site and not loose the translations credits used |
| October 15, 2025 at 3:36 pm #17487676 | |
|
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello, I am sorry for the inconveniences. Please try the following: ❌ Please make a full website backup before proceeding ❌ 1. - With ST inactive, go to WPML → Support → Troubleshooting. - Run “Fix WPML tables” twice. - Click “Set language information / Recreate ST tables” options if visible, then “Clear cache in WPML”. - Try activating String Translation. 2. - Make a full file+DB backup. - Keep WPML String Translation (ST) deactivated to avoid the fatal. - Add this temporary code at the end of your (child) theme’s functions.php :
function wpml_fix_missing_icl_tables(){
if ( function_exists('icl_sitepress_activate') ) {
icl_sitepress_activate(); // Re-runs WPML installer and creates any missing tables
}
}
add_action('wp_footer','wpml_fix_missing_icl_tables');
- Visit the site’s homepage once while logged in (this triggers the installer). - Remove the snippet. - Go to WPML → Support → Troubleshooting and run, in order: - Activate String Translation again and test. Best Regards, |
| October 15, 2025 at 4:32 pm #17487851 | |
| wioletaR |
Hi Otto, I followed your instructions: with ST inactive I ran Fix WPML tables twice and cleared WPML cache, then triggered the installer once via a one-shot MU plugin calling icl_sitepress_activate(), reinstalled WPML String Translation, and verified the missing schema—yhoj_icl_string_batches now exists (indexes added). WPML and ST are working, no more critical errors, translations are fine. The only remaining issue is the wizard still shows “The WordPress REST API must be enabled,” but hidden link i will work tonigjht on the site , if something is ubnormal a will ask u again so far no more fatal errors but the rest api issue must also be solved New threads created by Otto and linked to this one are listed below: https://wpml.org/forums/topic/rest-api-false-positive-warning/ |
| October 15, 2025 at 4:57 pm #17487932 | |
|
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello, Great, I am glad it helped. It's better to keep one issue per ticket. Let's keep this one for the fatal error. And let's continue here, about the REST API warning: Best Regards, |
| October 15, 2025 at 5:02 pm #17487963 | |
|
wioletaR |
thank you |