Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing issues with missing images on translated pages, which were visible on the default English page. The images were expected to be duplicated from the original page, but instead, they were missing.

Solution:
1. We asked the client if they were using a plugin to convert images from jpeg to avif format, as the images on the primary language page were loading in avif format, while on the translated page, they were in jpeg but broken.
2. We confirmed that the ShortPixel Image Optimizer plugin used by the client is compatible with WPML, as indicated on our documentation page. We recommended reviewing the plugin settings to check for any options that might cause the images to break on the translated page.
3. We advised the client to back up their website and perform a conflict test following the instructions on our conflict test documentation.
4. The client resolved the issue by finding the missing images in the media library and restoring the backups taken by ShortPixel, which made all images available in jpg format again.

If the solution provided here is not relevant to your case, either because it's outdated or not applicable, we recommend opening a new support ticket. We also highly recommend checking related known issues on our known issues page, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you need further assistance, please visit our support forum.

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.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by jonathanK-23 1 year, 2 months ago.

Assisted by: Kor.

Author Posts
March 20, 2024 at 2:47 pm #15432329

jonathanK-23

I am trying to:

Find out why some images are missing on translated pages but are clearly visible on the default language, English

Link to a page where the issue can be seen:

hidden link

I expected to see:
hidden link

The images in the post duplicated from the original, English page

Instead, I got:

Missing images. See screenshot and above URL

error-images-nbh.se.png
March 20, 2024 at 3:08 pm #15432530

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hello,

Thank you for contacting us. Upon review, it appears that the image link on the primary language page at hidden link is loading in avif format, while on the hidden link page, the images are loading in jpeg format but are broken.

Are you utilizing a plugin to convert images from jpeg to avif format?

March 20, 2024 at 3:14 pm #15432538

jonathanK-23

Yes, ShortPixel Image Optimizer. I also noticed this but it works on some pages and doesn't work on others.

March 20, 2024 at 3:17 pm #15432541

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for getting back to me.

I observed that this plugin is compatible with WPML, as indicated on this page: https://wpml.org/plugin/shortpixel-image-optimizer/. Could you kindly review the plugin settings to determine if there is an option causing the images to break on the translated page?

Alternatively, it would be advisable to back up your website and conduct a conflict test, following the instructions outlined here: https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#4-is-a-theme-or-a-plugin-causing-a-conflict

March 20, 2024 at 3:17 pm #15432542

jonathanK-23

For example, this post is showing the images fine, even though its translated: hidden link

March 20, 2024 at 3:18 pm #15432546

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Looks like we replied the same time, please go through my response here https://wpml.org/forums/topic/missing-images-on-translated-pages-divi-shortpixel/#post-15432541

March 26, 2024 at 11:47 am #15450945

jonathanK-23

The issue was solved by finding the images that were missing in the media library and restoring the backups ShortPixel takes. That made all the images available as jpg again.

In case this helps someone else.