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.
Our next available supporter will start replying to tickets in about 3.61 hours from now. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | - |
- | 19:00 – 22:00 | 19:00 – 22:00 | 19:00 – 22:00 | 19:00 – 22:00 | 19:00 – 22:00 | - |
Supporter timezone: Europe/Paris (GMT+01:00)
This topic contains 51 replies, has 3 voices.
Last updated by George Botsev 6 years, 1 month ago.
Assisted by: Yvette.
Author | Posts |
---|---|
September 27, 2018 at 11:59 am #2770409 | |
George Botsev Supporter
Languages: English (English ) Timezone: Europe/Sofia (GMT+02:00) |
Yes, that is what I was trying to explain. |
September 27, 2018 at 12:44 pm #2770487 | |
George Botsev Supporter
Languages: English (English ) Timezone: Europe/Sofia (GMT+02:00) |
As I suspected, that information was not enough for our developers to diagnose the issue and to suggest a proper resolution. They are asking if it will be possible to have a staging machine where the issue is reproduced - for testing, or if it is fine to test on that machine where you have already provided access? They need full access - even best if SSH access is included. Please let me know if you can provide a staging environment (I am enabling the private reply) or if you agree for us to use the current environment for tests. Please do note that using the current environment for tests is a dangerous operation and may lead to corruption or loss of data.. |
September 27, 2018 at 3:30 pm | |
October 5, 2018 at 8:22 am #2789853 | |
George Botsev Supporter
Languages: English (English ) Timezone: Europe/Sofia (GMT+02:00) |
Hello! They suggest two changes: So let me here provide you the exact changes that you can test. if ( preg_match("/^{$wpdb->base_prefix}(\d+)_/i", $wpdb->table,$matches) && strpos($wpdb->table, '_slim_') === false ) { to if ( preg_match("/^{$wpdb->base_prefix}(\d+)_/i", $wpdb->table,$matches) && strpos($wpdb->table, '_slim_') === false && strpos($wpdb->table, '_users') === false ) { And code change in our plugin code (might not be necessary): LEFT JOIN {$wpdb->users} u to LEFT JOIN {$wpdb->prefix}users u I see 3 instances in the WPML Translation Management plugin in the files: Please let me know how it goes. Please remember to create backups before you do anything. |
October 8, 2018 at 2:01 pm #2796315 | |
Václav |
Hello, SELECT DISTINCT SUBSTRING_INDEX(ito.element_type, '_', 1) AS element_type_prefix, ito.element_type AS original_post_type FROM mw_625_icl_translate_job j JOIN mw_625_icl_translation_status s ON j.rid = s.rid JOIN mw_625_icl_translations t ON s.translation_id = t.translation_id JOIN mw_625_icl_translate iclt ON iclt.job_id = j.job_id JOIN mw_625_icl_translations ito ON ito.element_id = iclt.field_data AND ito.trid = t.trid JOIN (SELECT rid, MAX(job_id) job_id FROM mw_625_icl_translate_job GROUP BY rid ) jobmax ON ( j.revision IS NULL AND j.rid = jobmax.rid) OR ( j.job_id = jobmax.job_id AND j.translated = 1) LEFT JOIN mw_625_posts p ON t.element_id = p.ID LEFT JOIN mw_625_users u ON s.translator_id = u.ID WHERE s.status > 0 AND s.status <> 9 AND (j.translator_id = 1 OR j.translator_id = 0 OR j.translator_id IS NULL ) AND s.translation_service='local' AND ( (t.source_language_code = 'cs' AND t.language_code IN ('en')) ) AND iclt.field_type = 'original_id' |
October 8, 2018 at 3:00 pm #2796524 | |
George Botsev Supporter
Languages: English (English ) Timezone: Europe/Sofia (GMT+02:00) |
I checked this. Yes you are correct - there is still error. LEFT JOIN {$wpdb->base_prefix}users u to: LEFT JOIN yotlix.{$wpdb->base_prefix}users u |
October 8, 2018 at 4:22 pm #2796925 | |
Václav |
Hello, {$wpdb->users} and defined in wp-config.php define('CUSTOM_USER_TABLE','yotlix.mw_users'); DB errors are gone, I can see the waiting translations in the dashboard. Any possible issues with this solution? Thanks! |
October 9, 2018 at 8:28 am #2798895 | |
George Botsev Supporter
Languages: English (English ) Timezone: Europe/Sofia (GMT+02:00) |
That is an awesome workaround that you found. Have you tested if you leave the prefix too if it is working? |
October 9, 2018 at 10:13 am #2799409 | |
Václav |
Hello, yotlix.yotlix.mw_users I'll debug this more..:) |
October 9, 2018 at 11:20 am #2799715 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+01:00) |
|
October 10, 2018 at 6:40 am #2803119 | |
George Botsev Supporter
Languages: English (English ) Timezone: Europe/Sofia (GMT+02:00) |
That is strange. |