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 |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: America/Los_Angeles (GMT-07:00)
This topic contains 35 replies, has 2 voices.
Last updated by Bobby 3 years, 2 months ago.
Assisted by: Bobby.
Author | Posts |
---|---|
September 27, 2021 at 8:06 pm #9671323 | |
Thierry |
Hi, I am getting these errors constantly in our error log. This is a multisite. I am unsure if related, but we are often getting 500 errors when customers try to order on our site: [Mon Sep 27 19:32:02.876532 2021] [proxy_fcgi:error] [pid 7686:tid 140633687398144] [client 162.158.63.241:15354] AH01071: Got error 'anslations.translation_id, wpml_translations.element_id, wpml_translations.language_code, wpml_translations.source_language_code, wpml_translations.trid, wpml_translations.element_type\n\t\t\t\t FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type)\n\t\t\t\t JOIN wp_10_icl_translations tridt\n\t\t\t\t ON tridt.element_type = wpml_translations.element_type\n\t\t\t\t AND tridt.trid = wpml_translations.trid\n\t\t\t\t WHERE tridt.trid = (SELECT trid FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type) WHERE element_id = 96551 LIMIT 1) made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_arr...PHP message: WordPress database error Unknown column 'wpml_translations.translation_id' in 'field list' for query SELECT wpml_translations.translation_id, wpml_translations.element_id, wpml_translations.language_code, wpml_translations.source_language_code, wpml_translations.trid, wpml_translations.element_type\n\t\t\t\t FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type)\n\t\t\t\t JOIN wp_10_icl_translations tridt\n\t\t\t\t ON tridt.element_type = wpml_translations.element_type\n\t\t\t\t AND tridt.trid = wpml_translations.trid\n\t\t\t\t WHERE tridt.trid = (SELECT trid FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type) WHERE element_id = 96607 LIMIT 1) made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_arr...PHP message: WordPress database error Unknown column 'wpml_translations.translation_id' in 'field list' for query SELECT wpml_translations.translation_id, wpml_translations.element_id, wpml_translations.language_code, wpml_translations.source_language_code, wpml_translations.trid, wpml_translations.element_type\n\t\t\t\t FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type)\n\t\t\t\t JOIN wp_10_icl_translations tridt\n\t\t\t\t ON tridt.element_type = wpml_translations.element_type\n\t\t\t\t AND tridt.trid = wpml_translations.trid\n\t\t\t\t WHERE tridt.trid = (SELECT trid FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type) WHERE element_id = 94022 LIMIT 1) made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_arr...PHP message: WordPress database error Unknown column 'wpml_translations.translation_id' in 'field list' for query SELECT wpml_translations.translation_id, wpml_translations.element_id, wpml_translations.language_code, wpml_translations.source_language_code, wpml_translations.trid, wpml_translations.element_type\n\t\t\t\t FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type)\n\t\t\t\t JOIN wp_10_icl_translations tridt\n\t\t\t\t ON tridt.element_type = wpml_translations.element_type\n\t\t\t\t AND tridt.trid = wpml_translations.trid\n\t\t\t\t WHERE tridt.trid = (SELECT trid FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type) WHERE element_id = 96524 LIMIT 1) made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_arr...PHP message: WordPress database error Unknown column 'wpml_translations.translation_id' in 'field list' for query SELECT wpml_translations.translation_id, wpml_translations.element_id, wpml_translations.language_code, wpml_translations.source_language_code, wpml_translations.trid, wpml_translations.element_type\n\t\t\t\t FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type)\n\t\t\t\t JOIN wp_10_icl_translations tridt\n\t\t\t\t ON tridt.element_type = wpml_translations.element_type\n\t\t\t\t AND tridt.trid = wpml_translations.trid\n\t\t\t\t WHERE tridt.trid = (SELECT trid FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type) WHERE element_id = 94586 LIMIT 1) made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_arr...PHP message: WordPress database error Unknown column 'wpml_translations.translation_id' in 'field list' for query SELECT wpml_translations.translation_id, wpml_translations.element_id, wpml_translations.language_code, wpml_translations.source_language_code, wpml_translations.trid, wpml_translations.element_type\n\t\t\t\t FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type)\n\t\t\t\t JOIN wp_10_icl_translations tridt\n\t\t\t\t ON tridt.element_type = wpml_translations.element_type\n\t\t\t\t AND tridt.trid = wpml_translations.trid\n\t\t\t\t WHERE tridt.trid = (SELECT trid FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type) WHERE element_id = 94562 LIMIT 1) made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_arr...PHP message: WordPress database error Unknown column 'wpml_translations.translation_id' in 'field list' for query SELECT wpml_translations.translation_id, wpml_translations.element_id, wpml_translations.language_code, wpml_translations.source_language_code, wpml_translations.trid, wpml_translations.element_type\n\t\t\t\t FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type)\n\t\t\t\t JOIN wp_10_icl_translations tridt\n\t\t\t\t ON tridt.element_type = wpml_translations.element_type\n\t\t\t\t AND tridt.trid = wpml_translations.trid\n\t\t\t\t WHERE tridt.trid = (SELECT trid FROM wp_10_icl_translations wpml_translations\n\t\t\t\tJOIN wp_10_posts p\n\t\t\t\t\tON wpml_translations.element_id = p.ID\n\t\t\t\t\t\tAND wpml_translations.element_type = CONCAT('post_', p.post_type) WHERE element_id = 96525 LIMIT 1) made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_arr...', referer: hidden link I am also getting this error: |
September 27, 2021 at 8:50 pm #9671405 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Hello, Please go to your database and review the table wp_icl_translations. In the structure do you see translation_id with Auto Increment enabled? See my screenshot for comparison |
September 27, 2021 at 9:03 pm #9671441 | |
Thierry |
Yes it is, see screenshot |
September 28, 2021 at 6:22 pm #9680725 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Thank you for the screenshot! Is there a table with the prefix wp_10 ? In the error log i believe that is the one with the issue. |
September 28, 2021 at 7:08 pm #9681131 | |
Thierry |
Hi Bobby, so yesterday I semi fixed it myself, basically the wp_10 subsite doesn't have wpml activated on it, so I went in the WPML multisite settings and reset all the sites that don't have WPML activated. The log was clean until today and the errors came back for all the databases of subsites that don't have WPML active. I can confirm that the table wp_10_icl_translations does not exist, and that is normal since WPML is not active on that site and I reset it. |
September 28, 2021 at 7:25 pm #9681145 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Are the errors randomly generated or is there a specific action that reproduces them? Also do they only showcase in the error log or there is a fatal error in the front end as well. I would like to request temporary access (wp-admin and FTP) to your site to test the issue. **Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken ** I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/ NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin. Thank you, |
September 28, 2021 at 7:30 pm #9681151 | |
Thierry |
Hi Bobby, From the log, it seems it is happening pretty much everywhere, either on the backend or front-end when people are purchasing. I am not seeing the error elsewhere than the log, but the site is getting a lot of 500 errors so i'm assuming this is the culprit. Regarding the backup, this is a huge multisite, is it ok if I backup without the images? |
October 1, 2021 at 6:33 am #9700805 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
The backup is for your own protection, while no major changes/tests are done on your live site it is always good to have a backup before providing access to any 3rd party |
October 5, 2021 at 4:57 am #9720585 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Hello, I have run some troubleshooting actions and could not get an error to display with DEBUG DISPLAY activated. If possible, please double-check now and let me know your results If the error persists, I would need to see the detail of the error. You can see how to enable debug logging here: |
October 5, 2021 at 6:38 pm #9726195 | |
Thierry |
Hi Bobby, i just enabled the logging to debug.log in wp-content and it's already full of errors from WPML, you can go check it out. |
October 6, 2021 at 10:34 pm #9736155 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Hello, I can see that you have WP installed in directories. hidden link..com/ --> has WPML Active However, there are also some WP installations such as /au/ It looks like the database table wp_10_options --> points to hidden link..com/au/ This might be causing this issue. Try the following: 1. Go to WPML->Languages->select Language name added as a parameter and then empty the error log |
October 6, 2021 at 10:46 pm #9736165 | |
Thierry |
Hi Bobby, First of all, can you edit the url of my website from your message? Thanks for looking into it. I knew about the /AU/ not having WPML, indeed I only have WPML on the 2 first sites, which is why I don't understand why it's looking for anything in wp_10_options. I don't understand your request, I can't do this on the australian website since it doesn't have WPML active on it. On which site should I do this? |
October 7, 2021 at 4:25 pm #9742735 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Hello, Please note the URLs are private and only seen by you and I, however, I have edited them per your request of course. The steps perform, on hidden link as that is the main domain using WPML. Let me know your results, please. |
October 8, 2021 at 2:37 pm #9748687 | |
Thierry |
Hi Bobby, i activated that feature yesterday and the log keeps showing the same errors. Feel free to play around with the settings yourself as well as this is a staging site. |
October 12, 2021 at 1:49 am #9766665 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
I have emptied the debug.log and at the moment cannot reproduce the error. If possible, please let me know if there are any specific steps that cause it. So far I have tested: 1. Create a translation I recommend keeping an eye on the log to see which action tends to trigger the errors if possible. |