Skip to content Skip to sidebar

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

Problem:
The client is experiencing a persistent database error related to a missing table 'wp_icl_background_task' while using WPML on their website. Despite attempting to resolve the issue through the WPML troubleshooting page and reinstalling WPML, the error persists, causing white screens (fatal errors).
Solution:
We recommend the following steps to resolve the issue:
1. If WPML was just activated and there are no translations yet, consider resetting WPML and reconfiguring it. This can often resolve table-related issues.
- Go to WPML → Support and click the Troubleshooting link.
- In the Reset section, select the 'I am about to reset all translation and language data' checkbox, then click the 'Reset and deactivate WPML' button. Ensure you take a backup first. More details can be found here: WPML Reset Documentation.
2. If the issue persists, check for any custom code in the wp-config file that might be affecting WPML's functionality. Removing problematic lines of code can resolve the issue.
3. Additionally, refer to the WPML errata page for known issues related to missing database tables: Missing WPML Tables Errata.

If these solutions do not resolve the problem or if they seem outdated or irrelevant to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket 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.

Tagged: 

This topic contains 6 replies, has 0 voices.

Last updated by Andrey 2 hours, 42 minutes ago.

Assisted by: Andrey.

Author Posts
August 6, 2025 at 6:58 pm #17300701

jeremyj-2

Background of the issue:
I am trying to resolve a persistent database error related to a missing table while using WPML on PHP 8.0+. I have checked the WPML → Support → Troubleshooting page but did not find an option to 'Install missing WPML tables' or recreate the wp_icl_background_task table manually. I am running PHP 7.4 and using the Avada theme. I deleted and reinstalled WPML from scratch, but the issue persists. My website is hidden link.

Symptoms:
WordPress database error: Table 'wp_icl_background_task' doesn't exist. This issue causes white screens (fatal errors) when using WPML. The error persists even after disabling all plugins.

Questions:
How can I resolve the missing table error for wp_icl_background_task?
Why is the option to recreate WPML tables missing in the troubleshooting panel?

August 6, 2025 at 7:28 pm #17300731

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

If you have just activated WPML but have no translations yet, I suggest resetting WPML and reconfiguring it, as this should resolve the problem.

1. Go to WPML → Support and click the Troubleshooting link.

2. In the Reset section of the Troubleshooting page, select the I am about to reset all translation and language data checkbox. Then, click the Reset and deactivate WPML button.

https://wpml.org/documentation/getting-started-guide/language-setup/deleting-languages-and-plugin-data-by-doing-a-wpml-reset-on-your-site/#step-3-do-the-wpml-reset

Do not forget to take a backup first.

August 7, 2025 at 1:58 pm #17302847

jeremyj-2

So I did that and it deleted all the english side. In the admin i dont see the english pages anymore. How can i reccuperate these pages and associate them to the original french ones?
Thank you

August 7, 2025 at 2:28 pm #17302980

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

Could you please share some screenshots so I can better understand the issue?

You mentioned earlier:

I deleted and reinstalled WPML from scratch, but the issue persists.

The steps I suggested above apply only if you don’t have any existing translations on the site and are installing WPML for the first time.

August 7, 2025 at 8:49 pm #17304086

jeremyj-2

I read your instructions too fast... I rebuilt the translations. But still get an error.
Basically when i update to PHP 8.0 or higher the site doesnt load I get a white page in my browser... when i roll back to 7.4 everything work. Im not sure what is happening.

Here's the bug log
[05-Aug-2025 19:29:11 UTC] WordPress database error Table 'bailapr_baila.wp_icl_background_task' doesn't exist for query SELECT * FROM wp_icl_background_task WHERE task_status IN ('1','0','2') AND 1=1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, WPML\LIB\WP\Hooks::WPML\LIB\WP\{closure}, WPML\FP\Promise->resolve, WPML\FP\Right->chain, WPML\FP\Right->map, WPML\BackgroundTask\BackgroundTaskLoader->WPML\BackgroundTask\{closure}, WPML\BackgroundTask\BackgroundTaskLoader->getSerializedTasks, WPML\Core\BackgroundTask\Repository\BackgroundTaskRepository->getAllRunnableTasks, WPML\Core\BackgroundTask\Repository\BackgroundTaskRepository->getAllByTaskStatus

August 11, 2025 at 3:08 pm #17310538

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

Can you try the following solution?

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

Before making any changes, please ensure that you back up your database first.

August 11, 2025 at 3:18 pm #17310578

jeremyj-2

All good... found the problem... a line of custom code in the wp-config file was the culprit... it was making wpml go nuts... delete the line and all is well. Thanks for taking the time to help me.

August 11, 2025 at 3:23 pm #17310637

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Nice catch! Thanks for letting me know.

Have a nice week!