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 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | - |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
Tagged: Exception
This topic contains 51 replies, has 2 voices.
Last updated by Waqas Bin Hasan 2 years, 1 month ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
March 22, 2023 at 2:02 pm #13305795 | |
robinB-8 |
Here's the full text I chatted with WP.com: --- OperatorWed, Mar 22, 12:57 PM OperatorWed, Mar 22, 12:58 PM OperatorWed, Mar 22, 12:58 PM OperatorWed, Mar 22, 12:58 PM dev99devWed, Mar 22, 12:59 PM dev99devWed, Mar 22, 12:59 PM OperatorWed, Mar 22, 1:00 PM dev99devWed, Mar 22, 1:03 PM OperatorWed, Mar 22, 1:03 PM OperatorWed, Mar 22, 1:07 PM dev99devWed, Mar 22, 1:07 PM dev99devWed, Mar 22, 1:07 PM OperatorWed, Mar 22, 1:08 PM dev99devWed, Mar 22, 1:08 PM OperatorWed, Mar 22, 1:09 PM OperatorWed, Mar 22, 1:09 PM dev99devWed, Mar 22, 1:09 PM OperatorWed, Mar 22, 1:10 PM dev99devWed, Mar 22, 1:10 PM dev99devWed, Mar 22, 1:11 PM dev99devWed, Mar 22, 1:11 PM OperatorWed, Mar 22, 1:12 PM dev99devWed, Mar 22, 1:13 PM OperatorWed, Mar 22, 1:18 PM OperatorWed, Mar 22, 1:19 PM dev99devWed, Mar 22, 1:19 PM dev99devWed, Mar 22, 1:19 PM OperatorWed, Mar 22, 1:19 PM dev99devWed, Mar 22, 1:19 PM OperatorWed, Mar 22, 1:22 PM dev99devWed, Mar 22, 1:23 PM OperatorWed, Mar 22, 1:24 PM OperatorWed, Mar 22, 1:24 PM dev99devWed, Mar 22, 1:25 PM dev99devWed, Mar 22, 1:26 PM dev99devWed, Mar 22, 1:26 PM dev99devWed, Mar 22, 1:26 PM OperatorWed, Mar 22, 1:29 PM dev99devWed, Mar 22, 1:31 PM dev99devWed, Mar 22, 1:32 PM dev99devWed, Mar 22, 1:32 PM dev99devWed, Mar 22, 1:32 PM OperatorWed, Mar 22, 1:32 PM dev99devWed, Mar 22, 1:32 PM OperatorWed, Mar 22, 1:32 PM dev99devWed, Mar 22, 1:35 PM dev99devWed, Mar 22, 1:46 PM OperatorWed, Mar 22, 1:47 PM dev99devWed, Mar 22, 1:47 PM OperatorWed, Mar 22, 1:47 PM dev99devWed, Mar 22, 1:49 PM dev99devWed, Mar 22, 1:49 PM OperatorWed, Mar 22, 1:49 PM OperatorWed, Mar 22, 1:52 PM OperatorWed, Mar 22, 1:54 PM dev99devWed, Mar 22, 1:54 PM OperatorWed, Mar 22, 1:55 PM dev99devWed, Mar 22, 1:56 PM OperatorWed, Mar 22, 1:56 PM dev99devWed, Mar 22, 1:57 PM OperatorWed, Mar 22, 1:57 PM dev99devWed, Mar 22, 1:58 PM OperatorWed, Mar 22, 1:58 PM |
March 22, 2023 at 3:46 pm #13306951 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for the update. So the issue is fixed after clearing the cache and I think they pointed out right that you need to clear the cache when editing the image. I also double checked with my team and the issue isn't reproducible on local by using your site package. And they advise the same. As an alternate you can disable caching plugins but of course this 'll have a toll on the performance. You can also disable and/or clear cache in WPML -> Support -> Troubleshooting page. See this guide hidden link if you want to force disable cache on WordPress level. In short, caches help boosting the performance and if you are frequently updating the content, you can set the cache expiry threshold to minimum or can clear caches manually as needed. I hope this clarifies the matter now. Regards. |
March 22, 2023 at 3:52 pm #13307013 | |
robinB-8 |
I don't like disable cache. Can you fix WPML so that when I "save" in "advanced editor" , it will automatic clear cache for me? I don't like disable or manual delete cache |
March 22, 2023 at 4:35 pm #13307439 | |
robinB-8 |
I disabled AND clear cache in WPML -> Support -> Troubleshooting page. But the error still exists. Error only fixed when I clear cache at hidden link (Hosting Configuration from WP.com) |
March 22, 2023 at 4:37 pm #13307445 | |
robinB-8 |
I think you fix this error not only for me, but for many users at WordPress.com hosting. So I think you should fix it thoroughly this error |
March 23, 2023 at 3:15 pm #13316549 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for the updates and sorry for the delay. Actually I was waiting for some updates from our team as well as I am off today. However, I got some info and the issue is being further escalated. Our compatibility team is trying to communicate with wp.com so that they get more insights and fix this for the good. I appreciate your patience and cooperation in this regard. I'll keep you posted for further development. Regards. |
April 4, 2023 at 6:20 pm #13403333 | |
robinB-8 |
any updates? |
April 4, 2023 at 8:49 pm #13404277 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, I just checked in our system, there're active efforts towards this but no clear picture so far. Our team is trying to contact and communicate. I'll update you once there's any visible or notable information available. Thank you for your patience and cooperation. Regards. |
April 11, 2023 at 10:57 pm #13450667 | |
robinB-8 |
Do you need keep stagging site? |
April 12, 2023 at 3:12 pm #13457149 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, I've just asked the team for a confirmation on this. I'll update you as soon as I hear back. Regards. |
April 13, 2023 at 3:28 pm #13466319 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for your patience and cooperation. I've got some confirmation about the staging site, but, still waiting from dev team about it. I'll write you as soon as I have that. Regards. |
April 14, 2023 at 3:25 pm #13475041 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for your patience and cooperation. Our team is using that staging site and is in active communication with WordPress.com team. So they need it for some more time, I hope that's not a problem for you. I'll write you about further updates as soon as I have one. Regards. |
April 14, 2023 at 5:14 pm #13475477 | |
robinB-8 |
Thank you, hope it gets fixed soon |
April 14, 2023 at 7:26 pm #13476157 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
We hope so too, thank you for your understanding and cooperation. Have a great day 🙂 |
April 19, 2023 at 3:57 pm #13506311 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you so much for your patience and cooperation. Our team suggests to add the following code to your active theme's functions.php file: // WPML Workaround for compsupp-6695 function wpml_compsupp6695_clear_cache_for_media_translation($sources, $size_array, $image_src, $image_meta, $attachment_id) { if (is_singular() && class_exists('SitePress')) { // Get the current language $current_language = apply_filters('wpml_current_language', NULL); // Continue If the current language is not the default language if ($current_language !== apply_filters('wpml_default_language', NULL)) { // Get the image's language using WPML filter $image_language = apply_filters('wpml_element_language_code', NULL, array('element_id' => $attachment_id, 'element_type' => 'post_attachment')); // If the image's language is different from the current language, flush the cache if ($image_language !== $current_language) { wp_cache_flush(); } } } return $sources; } add_filter('wp_calculate_image_srcset', 'wpml_compsupp6695_clear_cache_for_media_translation', 10, 5); and save the file. Then try and let me know as they have tested it and it seems to fix the problem. Confirm this on your staging site first, then apply on the production. Remember to take full backup of your site and database beforehand. FYI, hopefully it 'll be fixed in a future version. Regards. |