Passer au contenu Passer à la barre latérale

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 -
- - - - - - -

Fuseau horaire du support : Pacific/Easter (GMT-05:00)

Ce sujet contient 3 réponses, a 1 voices.

Dernière mise à jour par Ilyes Il y a 7 mois et 1 semaine.

Assisté par: Ilyes.

Auteur Messages
Avril 7, 2025 à 1:40 pm #16904739

alineY

Contexte de la question:
I used the WordPress regenerate thumbnails feature for my website, and now lots of thumbnails are missing in the translated version of my website. The French original version has no issues. The issue can be seen on this page: lien caché

Symptômes:
I expected to see thumbnails, but instead, I got blank 404 not found errors.

Questions:
Why are thumbnails missing in the translated version of my website after regenerating them?
How can I fix the 404 not found errors for thumbnails on the translated pages?

Avril 8, 2025 à 3:08 pm #16910146

Nicolas V.
Supporter

Les langues: Anglais (English ) Français (Français )

Fuseau horaire: America/Lima (GMT-05:00)

Hi,

Welcome to the WPML support forum. Thanks for contacting us.

While waiting for one of my colleagues to help with this ticket, and based on what you've described, allow me to walk you through some initial debugging steps.

Could you please try the following solution:
1. Go to "WPML > Settings > Media Translation"
2. Ensure that these 3 options are selected:
- Translate existing media in all languages
- Duplicate existing media for translated content
- Duplicate the featured images for translated content
3. Click on "Start"

That should duplicate any missing image in the secondary language.

Looking forward to hearing back from you.
Nico

Avril 9, 2025 à 9:38 am #16912282

alineY

Hello i tried but i got Duplicate media: please try again (error)

can you maybe tell me how to use it in WP-CLI? or any workaround?

Avril 10, 2025 à 10:34 pm #16920563

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-05:00)

Hello,

We don't really have a WP-CLI command equivalent to these functions, that is why I suggest we debug the error instead,

Check for WPML-related errors or warnings in the WordPress debug log or server error log when you encounter this problem. You may need the support of your hosting team to access the server error log.

To enable WP debug logging, open your wp-config.php file and search for:

define('WP_DEBUG', false);

and replace it with:

define('WP_DEBUG', true);

// Enable debug logging in /wp-content/debug. log

define('WP_DEBUG_LOG', true);

// Disable the display of errors and warnings, which is recommended on a live site.

define('WP_DEBUG_DISPLAY', false);

@ini_set('display_errors',0);

Next, try to reproduce the problem and check whether any errors have been logged in the debug.log file in the /wp-content/ directory.

If you could paste your debug.log at https://pastebin.com/ and provide me with this link, that would be great!

You could also share an access to your site, I could debug this myself,

Best,

Le sujet '[Fermé] Missing regenerated thumbnails missing for my translated pages' est fermé aux nouvelles réponses.