Passer la navigation

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.

Marqué : 

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Prosenjit Barman Il y a 1 année et 8 mois.

Assisté par: Prosenjit Barman.

Auteur Messages
octobre 3, 2023 à 8:43 am #14502363

clementV-3

Bonjour,

J'ai une erreur sur mon site concernant i18n

Uncaught ReferenceError: wp is not defined for:
wp.i18n.setLocaleData({'text direction\u0004ltr':['ltr']})

data:text/javascript;base64,d3AuaTE4bi5zZXRMb2NhbGVEYXRhKHsndGV4dCBkaXJlY3Rpb25cdTAwMDRsdHInOlsnbHRyJ119KQ==

et je me demandais donc si cela venait de WPML ou si vous pouviez m'aider à identifier la source du problème s'il vous plait ?

Je vous remercie.
Cordialement,

octobre 4, 2023 à 6:21 am #14509799

Prosenjit Barman
Partisan de WPML depuis 03/2023

Les langues: Anglais (English )

Fuseau horaire: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for contacting WPML Support.

As the tickets in French support forum is higher than usual, I took this ticket and responding in English to reduce the waiting time. Please let me know if you're okay with it or want me to forward this ticket to one of my French speaking colleague. I will be happy to do that for you.

I understand the issue you're having. Typically, this error arises when the script tries to use the 'wp' object before it's initialized. Does the issue persists even if you keep WPML deactivated?

If that's the case, then other plugins or the theme on your site might be causing the problem. Please disable other plugins and switch to a default theme like twenty twenty-one and check again. If that solves the issue, start activating the plugins and theme and after activating each, continue to check the issue. In this way, you'll be able to pinpoint what actually causing the issue.

But, if the issue gets resolved after deactivating WPML, please share more information about the issue and the link to the page where you're having the issue. I will check and be happy to assist you further.

Best Regards,
Prosenjit

octobre 5, 2023 à 4:59 pm #14522405

clementV-3

Hi,
No problem with an English answer.
So I couldn't try deactivating WPML because the issue didn't seem to appear when I was logged in. Which pointed me to my cache.

It appears that before optimization and cache, the issue doesn't seem to happen so I've contacted this service and will let you know when I know more.

Thank you,

octobre 6, 2023 à 8:12 am #14525137

Prosenjit Barman
Partisan de WPML depuis 03/2023

Les langues: Anglais (English )

Fuseau horaire: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for sharing the updates.

Indeed, caching could be a potential reason. Upon checking, I also found that this often occurs due to the deferred loading of JavaScript. But, maybe the service provider has a better explanation for this.

Let me know the update. We are always here to help.

Best regards,
Prosenjit

octobre 10, 2023 à 8:08 am #14547009

clementV-3

Hi,
So we reworked a bit optimization and caching and the issue disappeared.
Thanks for your help.
Best,