[Resolved] Unknown column 's.review_status' in 'field list'
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing database errors indicating a missing 'review_status' column or a non-existent 'wp_icl_background_task' table in your WPML plugin, it might be due to recent changes or migrations in your site. Solution: First, we recommend checking if the 'review_status' column exists in your 'wp_icl_translation_status' table. You can do this by logging into your database using a tool like PHPMyAdmin. If the column is missing, please ensure you have backed up your site, then run the following SQL queries to add the missing columns:
ALTER TABLE `wp_icl_translation_status` ADD COLUMN `review_status` enum('NEEDS_REVIEW','EDITING','ACCEPTED') COLLATE utf8mb4_unicode_ci DEFAULT NULL;
ALTER TABLE `wp_icl_translation_status` ADD COLUMN `ate_comm_retry_count` int UNSIGNED DEFAULT '0';
After applying these changes, verify if the issue persists.
Please note that this solution might be outdated or not applicable 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 problem continues, please open a new support ticket.
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.
Welcome to the WPML support forum. I will do my best to help you to resolve the issue.
Have you migrated the site recently? Please log in to your database (using a tool like PHPMyAdmin) and open the wp_icl_translation_status table, then make sure the
*review_status* column exists in the table or not. Refer to the attached image for more details.
Thank you for the updates. As per the screenshot you have shared the *wp_icl_translation_status* table is missing two columns. So please access the database via tools like PHPMyAdmin (after a site backup) and run the following query. Then make sure the bug exists or not.
ALTER TABLE `wp_icl_translation_status` ADD COLUMN `review_status` enum('NEEDS_REVIEW','EDITING','ACCEPTED') COLLATE utf8mb4_unicode_ci DEFAULT NULL;
ALTER TABLE `wp_icl_translation_status` ADD COLUMN `ate_comm_retry_count` int UNSIGNED DEFAULT '0';