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.
This topic is split from https://wpml.org/forums/topic/i-am-trying-to-apply-new-image-sizes/
Tagged: Bug
This topic contains 32 replies, has 2 voices.
Last updated by Dražen Duvnjak 9 months, 2 weeks ago.
Assisted by: Dražen Duvnjak.
Author | Posts |
---|---|
March 23, 2023 at 8:20 am #13311965 | |
kristoferS-2 |
I could not reproduce this in you sandbox. In my site I see the following in wp-content/debug.log: [23-Mar-2023 08:09:06 UTC] PHP Notice: Trying to get property 'post_content' of non-object in /home/waysseab/[redacted]/wp-content/plugins/sitepress-multilingual-cms/inc/translation-proxy/wpml-pro-translation.class.php on line 420 |
March 23, 2023 at 8:24 am #13312023 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, I have opened a new ticket for your probably new issue. 1) In order to expedite handling your support requests, can you please share WPML support debug information from your site. - To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page. More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/ 2) Share a video of the issue and the step you take so I can see the problem and understand it better. 3) Please check if the issue still happens when using the WP default theme and only WPML plugins enabled, all others disabled. Thanks, |
March 23, 2023 at 8:43 am #13312213 | |
kristoferS-2 |
I have attached the debug information as well as the link to my video recording to the WPML debug info field. Added under the video under the key $video as this form requires that the value is valid JSON. As you can see in the video. The editor will show the uncropped image in the Featured Image field in the editor, not just on the front end. |
March 23, 2023 at 10:15 am #13313545 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, I am afraid I can not see the video. Please share a link in your reply. Also, I see you use a minimal environment, is there anything different you maybe use then in our clean sandbox website that I provided, where you tried and the issue is not happening? For example, some custom code, or must-use plugins, or image optimization from server side and etc.? Let me know. Thanks, |
March 23, 2023 at 10:22 am #13313695 | |
kristoferS-2 |
I do not wish to share the video with everyone on this forum. Is there a way for me to send it privately? I am not using custom code or must-use plugins. Our host uses Litespeed but the wp plugin for it is disabled so its optimizations are not applied. |
March 23, 2023 at 10:26 am #13313799 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, links (https) are hidden and seen only by you and support. Either way, I will enable private reply for you, you can it there. Thanks, |
March 23, 2023 at 11:39 am #13314673 | |
kristoferS-2 |
Oh I see. It seems that I cannot share my cloud links with your service. Here it is: hidden link |
March 23, 2023 at 12:43 pm #13315301 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for getting back and sharing the video. I have checked on the sandbox site, I was able to reproduce it there also. I suspect the workaround I shared from that other ticket might help here also, and to be same the case. Video: hidden link Can you please try again on the test sandbox site from our side: - hidden link Let me know how it goes and if I am doing something wrong. Thanks, |
March 23, 2023 at 1:52 pm #13315889 | |
kristoferS-2 |
You mean the code change in the wpml-media-translation plugin? I tried that and it works the same as before. I noticed that you use WPML 4.6.0 in the sandbox. In my site I have 4.6.2. In my much of Media Translation was moved to the main plugin. Found a similar class and did the same edit there. Can you apply the workaround to the sandbox? |
March 23, 2023 at 2:20 pm #13316069 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, I haven't yet tried a workaround, I wanted to first confirm we are seeing the same issue on the sandbox test site also. Since your first statement was that it doesn't happen there, but only happened on your hosting test website. So before, we continue, I want to confirm and clarify if we are checking the same issue here, and if we can continue to test it on our sandbox test site? Please check the website, and my video from the last reply and let me know. Thanks, |
March 24, 2023 at 8:26 am #13321171 | |
kristoferS-2 |
It is reproducible in the sandbox. I see different croppings in the post editor for the language versions. |
March 24, 2023 at 10:24 am #13322083 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks. Yes, seems the file and code changed with the latest versions. I have updated our 2nd tier support, they will recheck the workaround shared. I will update you soon with some news on this. Regards, |
March 29, 2023 at 11:43 am #13357411 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, I have just tested the next workaround from developers and seems it works fine. Please check and let me know how it goes. WORKAROUND: - Make sure ATE is enabled. - Go to wp-content/plugins/sitepress-multilingual-cms/classes/media-translation/MediaTranslationStatus.php - There right before the code: return $attachment_translation_id; add this: $this->copy_attached_file_info_from_original( $attachment_translation_id, $attachment_id ); 2. Make sure you are using WPML Media and your image has a title and this title is translated via WPML media 3. In WPML Settings, make sure that option Translate media library texts with posts is enabled 4. Make a small change to the default language page/post title and image title and save 5. Update translation and translate page/post/image title 6. Check cropped featured images of both posts and they should be synced Kind regards, |
March 30, 2023 at 11:08 am #13366549 | |
kristoferS-2 |
I have implemented the workaround. Rather than updating an existing post I created a new one and cropped the image before translating. The translated post still got the uncropped image. Is it the same for you in the sandbox, with the workaround? |
March 30, 2023 at 11:30 am #13366791 | |
Dražen Duvnjak Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, for me sandbox works just fine, you are free to check the sandbox site yourself. I would also suggest re-translating and making sure you follow the all steps, after updating it should fix even if you started with not synced uncropped images. Video: hidden link Let us know how it goes. Kind regards, |