Skip Navigation

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 5 replies, has 1 voice.

Last updated by oldrichH 2 months ago.

Author Posts
April 4, 2025 at 1:44 pm #16897785

oldrichH

Background of the issue:
I am trying to have a functional website. I expected to see an empty debug.log.
I have already asked for the solution. But after applying SQL Create table query on production site, the web was completely corrupted and I had to restore the full backup. I know what I did, I applied the fix exactly same way as on the staging site.
The site was migrated to the new hosting, yes, but after my further research, on the previous hosting there were even much more problems with WPML and autoload!

Symptoms:
The debug log is flooded with errors related to 'icl_background_task' table not existing. The log file has grown to 20 MB due to these errors. Example error: WordPress database error Table 'u117824311_aoov.wpeg_icl_background_task' doesn't exist for query SELECT * FROM wpeg_icl_background_task WHERE task_status IN ('1','0','2') AND 1=1.

Questions:
Why is the 'icl_background_task' table missing?
How can I stop the debug log from being flooded with these errors?

April 4, 2025 at 1:47 pm #16897842

oldrichH

Fyi: I´ve already tested deactivate all the plugins, but this issue is internal WPML problem. After applying patch from last chat, I could not create any new posts or pages, WP instalation was completely corrupted after that.

April 4, 2025 at 2:23 pm #16898019

oldrichH

I have run this query:
CREATE TABLE IF NOT EXISTS `wpeg_icl_background_task` (
`task_id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
`task_type` VARCHAR(500) NOT NULL,
`task_status` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`starting_date` DATETIME NULL,
`total_count` INT UNSIGNED NOT NULL DEFAULT 0,
`completed_count` INT UNSIGNED NOT NULL DEFAULT 0,
`completed_ids` TEXT NULL DEFAULT NULL,
`payload` TEXT NULL DEFAULT NULL,
`retry_count` SMALLINT UNSIGNED NOT NULL DEFAULT 0
)

This doesn't look like harm potential query, but the question is, which operation follows after, when the table has been created.

April 4, 2025 at 2:32 pm #16898030

oldrichH

I will try to apply patch one more time during the night after full backup. Please convert this chat to the ticket.

April 5, 2025 at 11:43 pm #16900530

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The issue might be that the table "icl_background_task" does not exist.

Please go to WPML > Settings > Translation Editor and enable the Advanced Translation Editor.

If I am not mistaken, this should automatically create the table and solve the error.

After that, you can switch back to the Classic Translation Editor, in case you prefer this translation editor.

Best regards
Andreas

April 8, 2025 at 1:47 pm #16909714

oldrichH

Hello Andreas,

I have tested to switch CTE to ATE, but issue is not resolved.
I tested DB query again on dev site. Works without any problems.
Switching to ATE on production site return another error:

Which translation engines do you want to use?

Automatic translation engines differ in translation style and supported language pairs. If your preferred translation engine does not support a language pair that you want to use, we fall back to your next preferred engine that does support it. Learn more about,

Failed to load engines

I will test to run DB query during the night at production site.

April 9, 2025 at 5:31 am #16911350

oldrichH

After second patching it seems to be working without side effects. I am able to create new posts and pages.