Skip Navigation

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

Problem:
The client was experiencing inconsistent language in WooCommerce emails, with some strings appearing in the wrong language. This issue persisted even when all plugins were disabled, and it was exacerbated by plugins that hook into WooCommerce emails, such as 'germanized' and 'Kadence email designer'. The client suspected that the problem was related to the main installation language not being English and that WPML was not respecting the 'wpml_language' meta field of an order when creating emails.

Solution:
We investigated the issue by disabling all plugins and re-enabling them one by one. We discovered that disabling the 'GeoDirectory Multilingual' plugin caused the order interface to revert to English and the email language inconsistency issue did not replicate. This suggests that the 'GeoDirectory Multilingual' plugin might be causing the language translation issue. Unfortunately, further investigation was halted due to a critical error on the staging site after re-enabling the plugins. We advised the client to restore from a backup so we could continue debugging.

If you're experiencing similar issues with the language of your WooCommerce emails, we recommend checking for plugin conflicts, particularly with 'GeoDirectory Multilingual', and ensuring that your site's main language is set correctly. If the solution provided here is not relevant to your case, possibly because it's outdated or not applicable, please open a new support ticket. We also highly recommend checking the related known issues, 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 contact us in the WPML 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 30 replies, has 2 voices.

Last updated by Ilyes 1 year, 1 month ago.

Assisted by: Ilyes.

Author Posts
February 13, 2024 at 6:05 pm #15299131

holgerD-8

ps ... and i don´t know if woo core or a "plugin" is sending the payment confirmation. It´s always about what triggers which email. Thats why in my first post (in this thread?) i was asking why not everytime wpml_language is checked in the meta data of the order before sending any mail. But hey, i have no clue how woo is handling emails.

Got my email with the emails?

February 13, 2024 at 11:05 pm #15299813

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Yes, I received your email, I should be able to escalate this soon with all the info I have,

I will let you know what I have found,

February 16, 2024 at 12:51 am #15309786

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

I think I was able to replicate it whenever the admin order language is set to German, I tried to detect which plugin is used to make the interface in German, so I disabled all your plugins and Enabeled them one by one.

I found out that when I disable GeoDirectory Multilangual, the interface goes back to english, but I didn't know that this plugin is able to do such thing.

Long story short, the issue never replicated when the order interface is in English, and one plugin is causing this translation, any idea what could it be? is it Geodirectory by any chance?

I wasn't able to keep investigating as enabling plugins back caused a critical error to your staging site, sorry for that, I hope if you have a backup so I can debug this further, please let us know if you have any more information on this.

Best,

February 16, 2024 at 8:41 am #15310457

holgerD-8

Oh man, you can´t believe how happy i am that you could replicate that problem. After 4 pagelong support threads with onthegosystems 😉

My Server Provider cut "you" off. Thought a script was spamming. It should work again.

Mmh, Geodirectories ... i would wonder if admin site language would be determined by GD. Maybe you mean:

WPML-Spracheinstellungen
Bearbeitungssprache: Admin-Sprache als Bearbeitungssprache einstellen.

?

Also the Mails that are triggered in FrontEnd i sent you from the live site that shouldn´t depend on the admin language are still sometimes wrong.

It´s a wpml core problem when your setup do not depend on EN as main language. You can´t believe how many problems i had to solve and how many support threads i opened with onthegosystems to solve (in crazy ways) those problems. I´m guessing sometimes wpml messes up which string belongs to which language .... to fix this is a nightmare where you have to delete strings completly from the database and reinsert all languages again.

Anyways for many problems i couldn´t find a real fix since. The email behavior is one of those.

....., it would wonder me if a plugin is the culprit. Delete Geodirectories and try again, if you think that solves the problem. The server should operate again.

February 16, 2024 at 8:45 am #15310463

holgerD-8

PS ... the email problem existed right from the beginning. Geodirectories i established maybe 1-2 years ago. Meaning long after the initial setup.

February 20, 2024 at 12:22 pm #15322604

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

Thank you for your patience over the weekend,

I'm sharing your case with our 2nd tier team to further investigate the issue,

I will let you know once I receive updates,

February 21, 2024 at 12:58 am #15325099

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

I have recorded this video to explain my findings, please let me know what you think,

hidden link

Best,

February 21, 2024 at 1:00 am #15325100

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Question, what happens if you resend the email again, I'm referring to the emails that have wrong language. Does it correct itself or it repeats it?

If it repeats, that would be easier for us to simply repeat the same email over and over again,

February 21, 2024 at 9:31 am #15326331

holgerD-8

You´re the man, Ilyes! .... Funny thing is, i´m pretty sure the same problem existed also before i installed GeoDirectories. i strongly hope i´m wrong.

Or, there was another problem before with a similar behavior that poured into the GD problem and thats why i didn´t realize?

I will disable GD Multilingual, or better, get in contact with the GD-guys (they are very responsive) to have them have a look on your video. I will link them also to this thread.

I would love NOT to resend the wrong emails to the customers to proof the concept. It would be even more embarassing. I think having a trial period after GD have a look, debugging/switching off, waiting for some more new orders will tell us. Ok?

PS. if this is the problem, i will personally book vacation to the place where you live to kiss your feet.

February 21, 2024 at 1:34 pm #15328262

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hi again,

Welcome anytime! I'm trying my best to locate the issue, but this was the best theory I came with so far, as I wasn't able to replicate since then.

Let's hope they give us some insight about this,

Looking forward to your results,

February 26, 2024 at 10:54 am #15343587

holgerD-8

ps never mind. in the email log on staging you can view all emails. Just realized.

Hi Ilyes, did you keep the wrong emails from staging? could you send them to me (the admin-email address from the staging site. Don´t want to post it here)? GD-Support is asking for some examples from staging.

thanks
H.

February 27, 2024 at 5:04 pm #15350351

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

You should find it in the email log in the second page, here is the exact email with dates : hidden link

Best,

February 27, 2024 at 9:36 pm #15351382

holgerD-8

Hi Ilyes, GD-guys found the problem. Thanks to you finding the culprit! (I can´t thank you enough)

Lets hope after the codechanges Geodirectory is truly fully compatible with wpml as advertised ->

https://wpml.org/plugin/geodirectory/

I hope onthegosystems is going to do a better job with testing plugins in the future. (Date last test 19/Sep/2023) ... i have the problem at least for a year or longer.

February 27, 2024 at 9:51 pm #15351400

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

I'm glad that all these trials were actually used to solve the issue,

Keep in mind that compatibility is tricky as it consists of collective work between both parties (WPML and the plugin authors)

If one party changes anything without taking into consideration the other party (most of the time unintentionally), it creates issues like this one, and it is only possible to know if an issue exists is by having a support forum like this one where our users can share bugs and insights.

I hope for your understanding that compatibility projects require the cooperation of all parties along with their users,

Your patience was really admirable, and I hope I answered your concerns!

Best,

February 27, 2024 at 10:45 pm #15351546

holgerD-8

Well, i do agree in parts. "Fully compatible" means to me it works at least without breaking bugs. This is the third plugin listed as fully compatible that costed me many hours by NOT being fully compatible (besides many bugs in wpml itself).

This list of plugins is advertisement for onthegosystems and their product wpml. I think a bit more thoroughness in testing and less marketing would be appreciated by users....

Without supporters like you who are willing to go the extra mile (there are others too in this forum), i would have given up on wpml a long time ago.

Thank you again!