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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bruno Kos 1 year, 4 months ago.

Assisted by: Bruno Kos.

Author Posts
January 17, 2024 at 10:01 pm #15197250

jasdevD

I am trying to:

WPML -> Languages -> Edit Languages -> Save

Link to a page where the issue can be seen:
hidden link

I expected to see: successful save message

Instead, I got:
"Invalid character in language code"
"Invalid character in language code"

Database error:
[17-Jan-2024 18:51:53 UTC] WordPress database error ALTER command denied to user 'user'@'10.0.0.0' for table 'wp_icl_string_translations' for query ALTER TABLE wp_icl_string_translations ADD INDEX `status` ( `status` ) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, SitePress->init, do_action('wpml_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, WPML_Upgrade_Loader->wpml_upgrade, WPML_Upgrade->run, WPML_Upgrade->run_admin, WPML_Upgrade->run_commands, WPML_Upgrade->run_command, WPML_Upgrade->maybe_run_admin, WPML_Upgrade_Run_All->run_admin, WPML\Upgrade\Commands\AddIndexToTable->run, WPML_Upgrade_Schema->add_index
[17-Jan-2024 18:51:53 UTC] WordPress database error ALTER command denied to user 'user'@'10.0.0.0' for table 'wp_icl_strings' for query ALTER TABLE wp_icl_strings ADD INDEX `string_package_id` ( `string_package_id` ) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, SitePress->init, do_action('wpml_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, WPML_Upgrade_Loader->wpml_upgrade, WPML_Upgrade->run, WPML_Upgrade->run_admin, WPML_Upgrade->run_commands, WPML_Upgrade->run_command, WPML_Upgrade->maybe_run_admin, WPML_Upgrade_Run_All->run_admin, WPML\Upgrade\Commands\AddIndexToTable->run, WPML_Upgrade_Schema->add_index
[17-Jan-2024 18:51:53 UTC] WordPress database error Unknown column 'jobs.ate_sync_count' in 'field list' for query
SELECT jobs.rid, jobs.job_id as jobId, jobs.editor_job_id as ateJobId, jobs.automatic , translation_status.status,
translation_status.review_status, jobs.ate_sync_count > 100 as isLongstanding
FROM wp_icl_translate_job as jobs
INNER JOIN wp_icl_translation_status translation_status ON translation_status.rid = jobs.rid
INNER JOIN wp_icl_translations translations ON translation_status.translation_id = translations.translation_id
INNER JOIN wp_icl_translations parent_translations ON translations.trid = parent_translations.trid
AND parent_translations.source_language_code IS NULL
LEFT JOIN wp_posts posts ON parent_translations.element_id = posts.ID
WHERE
jobs.job_id IN (
SELECT MAX(job_id) FROM wp_icl_translate_job
GROUP BY rid
)
AND jobs.editor = 'ate'
AND ( translation_status.status IN (1,2,40) OR 1=0 )
AND translations.language_code IN ('nl','en','fr','fr-ca','de','it','ja-jp','pt-br','pt-pt','es','es-mx')
AND translations.source_language_code IS NOT NULL
AND ( posts.post_status IS NULL OR posts.post_status <> 'trash' )
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\TM\ATE\Loader::getData, WPML\TM\ATE\Jobs::getJobsToSync, WPML\TM\ATE\Jobs::getJobsWithStatus
[17-Jan-2024 18:51:53 UTC] WordPress database error Unknown column 'jobs.ate_sync_count' in 'field list' for query
SELECT jobs.rid, jobs.job_id as jobId, jobs.editor_job_id as ateJobId, jobs.automatic , translation_status.status,
translation_status.review_status, jobs.ate_sync_count > 100 as isLongstanding
FROM wp_icl_translate_job as jobs
INNER JOIN wp_icl_translation_status translation_status ON translation_status.rid = jobs.rid
INNER JOIN wp_icl_translations translations ON translation_status.translation_id = translations.translation_id
INNER JOIN wp_icl_translations parent_translations ON translations.trid = parent_translations.trid
AND parent_translations.source_language_code IS NULL
LEFT JOIN wp_posts posts ON parent_translations.element_id = posts.ID
WHERE
jobs.job_id IN (
SELECT MAX(job_id) FROM wp_icl_translate_job
GROUP BY rid
)
AND jobs.editor = 'ate'
AND ( translation_status.status IN (30) OR translation_status.review_status IN ( 'NEEDS_REVIEW','EDITING' ) )
AND translations.language_code IN ('nl','en','fr','fr-ca','de','it','ja-jp','pt-br','pt-pt','es','es-mx')
AND translations.source_language_code IS NOT NULL
AND ( posts.post_status IS NULL OR posts.post_status <> 'trash' )
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\TM\ATE\Loader::getData, WPML\TM\ATE\Jobs::getJobsWithStatus

Screenshot 2024-01-17 at 1.49.48 PM.png
wpml-error-image.png
January 18, 2024 at 9:48 am #15198976

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for contacting WPML support!

The error messages you're encountering in your WordPress database are indicating two different issues:

1. **Permission Issues**: The first two errors are related to permission issues. The database user 'user' does not have permission to alter tables in your database. This is evident from the errors stating "ALTER command denied to user 'user'@'10.0.0.0'". You need to ensure that the database user has the necessary privileges to modify the database schema. This typically involves granting the user `ALTER` privileges on the database.

2. **Missing Column**: The subsequent errors are related to a missing column in your database. The specific error is "Unknown column 'jobs.ate_sync_count' in 'field list'". This indicates that your query is trying to access a column named `ate_sync_count` in the `wp_icl_translate_job` table, but this column does not exist in your database schema.

To resolve these issues, you may need to do the following:

- **Update Database Privileges**: Ensure that the database user 'user' has the appropriate permissions to alter tables. This is usually done through your database management system or through a control panel provided by your hosting service.

- **Add the Missing Column**: You need to modify the `wp_icl_translate_job` table to include the `ate_sync_count` column. This can be done using an SQL statement like `ALTER TABLE wp_icl_translate_job ADD COLUMN ate_sync_count INT;` (adjust the data type and constraints according to your needs).

It's important to back up your database before making any changes to avoid any data loss.

Regards,
Bruno Kos

ate sync.jpg

The topic ‘[Closed] WordPress database error Unknown column ate_sync_count in field list’ is closed to new replies.