Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

Tagged: 

This topic contains 5 replies, has 1 voice.

Last updated by Bobby 2 months ago.

Assisted by: Bobby.

Author Posts
September 5, 2025 at 2:29 pm #17379396

chrisL-17

Background of the issue:
I am trying to fix the redirect for the main Events calendar page, which keeps breaking. I have identified that WPML is causing the issue by overwriting the redirect for the English URL, /events/, with the French URL, /evenements/. The issue occurs this page: hidden link. It's not happening now because I have produced some code that does hard reset on the rewrite rule whenever they're changed by

Symptoms:
I expected to see the events page, but instead, I got a 404 error page.

Questions:
How can I prevent WPML from overwriting the redirect for the English URL?
What steps can I take to fix the 404 error on the events page?

September 5, 2025 at 6:28 pm #17380268

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly. Please go to WPML -> String Translation and search for the term events. Make sure to check the box to search in translations as well. It is possible that the slug is assigned the wrong language and that could interfere with the correct slug translation. If you find the slug is registered to the wrong language, check the box next to it and then click change language of selected string, and there you can change it. Then resave permalinks and clear cache.

If that does not resolve the issue, let us know and we will be happy to further troubleshoot.

September 8, 2025 at 1:15 pm #17383691

chrisL-17

I think the string translation is as it should be. It's hard to tell as not all of the string have context. And in some contexts (like URLs for example) "events" translated to "évènements" could be problematic.

However I expect that in those cases, it's the french slug that would break. But in fact what's happening is that the rewrite rule for TEC's main page in the default language /events/ is being replaced with the french, /evenements/.

This is a brand new site and the client's first order of business is promoting an important fundraising event. And every time this happens they're cringing and thinking 'lost revenue'.

And they're not wrong.

Screen Shot 2025-09-08 at 9.12.01 AM.png
September 8, 2025 at 7:43 pm #17384990

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

I completely understand how that can be an issue, glad that you have been able to tackle it with custom code.

As I can see your site is using different domains per language, and at the moment we do have a known issue that seems related to your case with a workaround available.

Please review https://wpml.org/errata/the-events-calendar-tec-incorrect-event-urls-with-domain-per-language-url-format/

and let me know your results.

September 16, 2025 at 2:30 pm #17406652

chrisL-17

Will that work with the custom code I've got (which gets at the issue from a totally different direction) and what will happen when next I upgrade the Events Calendar? I will have to re-do the fix, yes?

Wouldn't it be better to get TEC to make this change?

cmkl

September 17, 2025 at 9:01 pm #17411244

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I’m not fully certain how it will behave with custom code, but you are correct — the workaround would need to be reapplied after each update. It would indeed be preferable if TEC implemented this directly in their code.

Our compatibility team is already in contact with their team, and we are currently awaiting the author’s feedback.

For now, this option should be considered only a temporary workaround. If your custom code works for your setup, you may continue using it. Once a permanent solution is implemented, the Errata page will be updated accordingly.

The topic ‘[Closed] The Events Calendar permalinks rewrite rules being broken by WPML’ is closed to new replies.