Skip Navigation

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

Problem:
The client was experiencing an issue with the event calendar on the French version of their site, where the calendar would get stuck in a loop when performing actions such as queries, searches, or date changes. This was suspected to be due to WPML translating a URL for a script incorrectly, causing JavaScript errors in the console.
Solution:
We suggested that the issue might be related to a known problem with The Events Calendar and custom slug translations, similar to what is described in https://wpml.org/errata/the-events-calendar-incorrect-link-format-with-custom-slug-translations/. We recommended trying the workaround mentioned there. Additionally, upon further inspection, it was found that remnants of a previous translation app in the .htaccess file were causing the issue. Removing these remnants resolved the problem.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket.

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 3 replies, has 1 voice.

Last updated by Jay 1 month ago.

Assisted by: Dražen.

Author Posts
May 1, 2025 at 7:31 pm #16987290

Jay

Background of the issue:
I am trying to resolve an issue on the event calendar on the French side of my site. When we do a query, search, or change the date on the calendar in French, the calendar gets stuck in a loop: hidden link. However, changing the date on the calendar view in English works fine: hidden link.

Symptoms:
I see JS errors in the console on the French side. I suspect that WPML is translating a URL for a script (maybe adding a /fr). The calendar in french can't load content once you make a query (search, use pager, change the dates).

Questions:
Why does the calendar get stuck in a loop on the French side?
Is WPML translating a URL for a script incorrectly?
Can you recommend a fix or fix it?

May 2, 2025 at 3:36 pm #16990198

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

This is possibly the same issue as
https://wpml.org/errata/the-events-calendar-incorrect-link-format-with-custom-slug-translations/

Can you try this workaround? Because I see the same wrong pattern in the URL, so the filter wants to use that invalid URL, causing the issue.

wrong url.jpg
May 2, 2025 at 5:37 pm #16990449

Jay

I tried it but it didn't change anything...
You can see with the the extra code here:
hidden link

Any other ideas?

May 6, 2025 at 6:56 am #16999345

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thanks for getting back.

I am checking your FR page, but I see it works fine.

Video: hidden link

Can you explain how I can see the issue?

Regards,
Drazen

May 6, 2025 at 12:42 pm #17001665

Jay

Thank you for looking into it. We found some remnants of a previous translation app in the ht access file, we removed it and it seems to have solved the issue we were experiencing.

Cheers