Skip Navigation

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

Problem:
I'm facing an issue with WPML and The Event Calendar. The linking on calendar navigation is having weird links like: /?:wydarzenia|veranstaltungen|events)/(/?:month|monat|miesic|miesi%C4%85c|miesiac)/.
Solution:
If you are experiencing a similar issue please review the following errata
https://wpml.org/errata/the-events-calendar-date-link-points-to-monthmonatmiesic/
Relevant Documentation:
https://wpml.org/errata/the-events-calendar-date-link-points-to-monthmonatmiesic/

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 17 replies, has 3 voices.

Last updated by Bobby 1 year, 6 months ago.

Assisted by: Bobby.

Author Posts
June 5, 2023 at 6:17 am #13767385

LukaszT-9

Hello, I'm facing an issue with WPML and The Event Calendar. The linking on calendar navigation is having weird links like: /?:wydarzenia|veranstaltungen|events)/(/?:month|monat|miesic|miesi%C4%85c|miesiac)/. I've already tried to use a fix by translating "page" and "link" but it didn't solve. I don't have any additional code as a workaround to this. I would appreciate it if someone could take a look at the settings and make sure they are correct. I'd also provide the links to calendars so you could see how it behaves. Also, on one of the language versions, the word Upcoming is needlessly translated to a different language despite not changing the version.

June 5, 2023 at 7:11 am #13767587

LukaszT-9

Hi, as to update you per your request: I tried setting up WPML for sandbox. It threw an error when installing String translation but after tapping continue again it seemed to install ok.

I'm facing the same issue I had initially - I can't set up urls for main calendar pages. So en/events and de/veranstaltungen are 404. Instead, I have /en/wydarzenia /de/wydarzenia/. "wydarzenia" meaning "events" in polish and it's the default language like on the main page. The issue with wrong links is replicated though.

Link to events on main page hidden link. I've added a menu item but you can see it's 404 and the only way to change into right page is by clicking on the flag.

June 5, 2023 at 8:01 pm #13774443

Bobby
Supporter

Languages: English (English )

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

Hello,

I'd like to verify that I understand the issues you are experiencing correctly:

#1 Nadchodzące changing to "upcoming" when selecting a date.

1. Go to hidden link
2. Click on Nadchodzące and select a date
3. Nadchodzące changes to Upcoming

This I can reproduce in the sandbox and your site

#2 URL format is broken or wrong

1. Go to hidden link or hidden link
2. Switch the language
3. Select an event
4. View the URL

At the moment I cannot reproduce this on your site or the sandbox with events

The URL I get is this for example (Sandbox):
hidden link

(Live Site):
hidden link

But I can reproduce it with the Month option on the calendar only, is that correct or am I missing a step or another area with this issue?

hidden link?:month|monat|miesic|miesi%C4%85c|miesiac)/

#3 You mentioned translating the events permalink gives 404 issues, this is only happening on our testing environment correct? Live eenvironment looks translated OK.

June 6, 2023 at 6:22 am #13775237

LukaszT-9

#1 Yes. There appear to be some translating issues.
#2 No, the single event urls seem to be working fine. The problem is with the navigation for the calendar (so List, Month, Day views).

Main Site
These are the links for English:

List: hidden link?:wydarzenia|veranstaltungen|events)/list/
Month: hidden link?:wydarzenia|veranstaltungen|events)/(/?:month|monat|miesic|miesi%C4%85c|miesiac)/
Day: hidden link?:wydarzenia|veranstaltungen|events)/today/

These are the links for German:

List: hidden link
Month: hidden link?:month|monat|miesic|miesi%C4%85c|miesiac)/
Day: hidden link

Note the "wydarzenia" instead of "veranstaltungen" in list and day view.

Also, on the polish version, clicking to "Previous Events" gets you this: hidden link?:wydarzenia|veranstaltungen|events)/list/&eventDisplay=past

And you end up on the english version.

#3 At the moment, the urls for the main event pages work fine on my website but don't on Sandbox.
The pages for events should be:

/wydarzenia
/en/events
/de/veranstaltungen

I had the same issue on the website before but I have no idea how it was fixed and thus don't know how to make it work on sandbox. It might be a reason why there are issues replicating the urls problems on sandbox.

June 6, 2023 at 5:10 pm #13780839

Bobby
Supporter

Languages: English (English )

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

Thank you for updating me and confirming the issues!

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

June 7, 2023 at 1:39 am #13781819

Bobby
Supporter

Languages: English (English )

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

Hello,

Thank you for the additional information,

I escalated this thread to our 2nd tier support and they will take a look at this issue.

You will be notified as soon as new information is available.

Thank you,
Bobby

June 7, 2023 at 8:12 am #13782867

LukaszT-9

Thank you, I'm hoping to hear from them soon.

I still would like to know if this ticket is private (as you haven't answered) and if you can make it so if it isn't.

June 7, 2023 at 5:39 pm #13788521

Bobby
Supporter

Languages: English (English )

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

My apologies for that, it is not private only our chat tickets are private.

Unfortunately there is no way to mark a ticket private, but all links and sensitive information shared such as URLs are private.

June 16, 2023 at 7:12 am #13836749

LukaszT-9

Hello,
I wanted to ask if there's any update on this. It's been over a week and there's no further information, fix or a workaround. There was a plugin update but the issue remains.

June 16, 2023 at 7:55 am #13837181

Bobby
Supporter

Languages: English (English )

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

Hello,

Our developers are still investigating the issue.

Please try the following steps which should resolve the issue:

- Go to Users > Profile > Language
- Select "Site Default"
- Go to Dashboard > Settings > Permalinks, and re-save the permalinks by clicking the "Save changes" button.

Let me know your results, please.

June 16, 2023 at 9:04 am #13837809

LukaszT-9

Hi, there was an option "Default for this site" and it was already chosen. I saved the profile and permalink page but the issue persists. I checked while logged in and out and in another browser.

June 16, 2023 at 2:16 pm #13840495

Lauren
Supporter

Languages: English (English )

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

Thanks for testing that for us. Bobby is off for a few days, so I am following up on his tickets. I will let the development team know that the previous solution didn't resolve the issue, and we will update you as soon as we have more information about this issue.

June 19, 2023 at 4:21 pm #13853347

Bobby
Supporter

Languages: English (English )

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

Thank you for updating us, if possible check the admin access details as I am no longer able to review the backend to investigate this further.

June 20, 2023 at 10:05 pm #13863315

Bobby
Supporter

Languages: English (English )

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

I have reviwed the backend and can confirm this did not resolve the issue.

Following up with our team I can also see that this is something that is caused by the event calendar's code and the issue has been reported to their team.

You can also see another workaround provided here:
https://wpml.org/errata/the-events-calendar-events-archive-pagination-not-working-and-redirects-to-pageseiteseite-d_-resulting-in-eventsveranstaltungen/ (their team did implement an issue for this issue but it looks like the issue you are experiencing is a result of their fix, our team is currently updating them regarding this)

In the meantime, I have removed the translation and that seems to resolve the issue.

If you go to WPML->string translations->search for list month today and instead use the English translation it seems to resolve the issue.

June 23, 2023 at 6:11 am #13881791

LukaszT-9

Hi,
thank you so much for helping. I observed it and it does appear to be working fine. I saw the code that you provided when I was researching but didn't try it before as it was supposed to be fixed and even removed. To be frank I'm scared to make changes now to not mess it up when it's finally working.
Which translation did you remove? The "Events" one? Is that the reason this word in not translated in strings like "Previous/Next Events or "No events scheduled for..."?