Skip Navigation

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

Problem:
The client is experiencing incorrect URL generation for a news article on the translated version of their website using 'The Events Calendar' plugin. The issue manifests as a 404 error when attempting to access the article via the Calendar page, with the URL incorrectly incorporating the Dutch home URL.
Solution:
First, we recommend checking if the issue aligns with a known problem described in our errata here: https://wpml.org/errata/the-events-calendar-tec-incorrect-event-urls-with-domain-per-language-url-format/. If it matches, please apply the suggested workaround.
Additionally, verify the

.htaccess

file for any unusual redirects or entries that might be causing the issue. Consulting with your hosting provider can also be beneficial as the problem might be specific to your server environment.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your case, 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. Should the problem persist, please do not hesitate to open a new support ticket with us for further assistance at 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 4 replies, has 0 voices.

Last updated by Andreas W. 2 weeks, 5 days ago.

Assisted by: Andreas W..

Author Posts
November 6, 2024 at 9:27 pm #16374741

martin

Background of the issue:
I am trying to get the correct URL for a news article on the translated version of the website, controlled by the plugin 'The Events Calendar'. The issue can be seen on this page: hidden link. I need to get this URL: hidden link. On the staging website, the issue was resolved by changing the WPML Language setup from 'A different domain per language' to 'Different languages in file folders'.

Symptoms:
I expected to see the article page when clicking on the Calendar page, but instead I got a 404 error page. The URL is wrong and adds the Dutch home URL in the URL. Instead, I get this URL: hidden link.

Questions:
What goes wrong with the URL translation on the live site?
How can I fix the URL issue on the live site as it was fixed on the staging site?

November 7, 2024 at 1:03 am #16374948

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hello,

Could you please verify if the issue is related to the following errata?

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

If you need assistance with applying the workaround, please let me know.

Best regards
Andreas

November 7, 2024 at 7:52 am #16375419

martin

Hello Andreas,

Thank you for your reply. Yes, I'm aware of that errata. The errata you'r referring to has been processed and does not solve the problem.

Best regards,
Martin

November 7, 2024 at 9:56 pm #16380111

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hello,

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further.

However, I would also be very grateful if you could provide a staging site or copy of the website from your server yourself for this purpose. This step would only be required if the issue is replicable on such a staging site.

If you have any questions about creating such a staging site, you can consult your hosting provider. Just take note that WPML should be registered on this site again.

If you are unable to provide such a copy of the site for testing, please let me know on this ticket.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

November 8, 2024 at 8:47 pm #16383543

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Take note, that the workaround from our errata needs to stay integrated into the file, until the author has fixed this issue. The workaround was not present when I checked your site. I gave it a quick test and it did not solve the issue.

I create a local copy of your site and registered a subdomain in my hosts file.

The issue does not occur on this local install. See screenshot.

I suggest you check the .htaccess file on your server for unexpected redirects or uncommon entries. Also I would like to encourage you to consult the hosting support about this issue, as it only seems to occur on your server.

local test.jpg
November 11, 2024 at 8:30 am #16387141

martin

Hello Andreas,

Ok, thank you for your find. My staging website is also on the same server/hosting. Probably that's way I did not think of this. I will check the .htaccess file and consult the hosting support.

All best,
Martin

November 11, 2024 at 3:51 pm #16389528

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hi Martin,

In case further assistance is requiered please let me know and I will be glad to have another look at the staging site.

Best regards
Andreas

November 13, 2024 at 9:27 am #16396090

martin

Hello Andreas,

Did you change something on the website the last time you've checked?
I've checked the website an hour ago and the problem seems solved. But I did nothing after you're last reply (nov 8).

Wanted to work on the website (started an hour age) to check the setup(s) you were referring to. The site was offline (strange) and showed a blanc page. Re-installed a full backup of last night. The problem seems solved. So was wondering if you put the workaround in place or did something else to fix this error.

Best regards,
Martin

November 13, 2024 at 6:16 pm #16399082

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hello Martin,

No, the last time I accessed the site was on the 8th of November when I tried to apply the workaround again. It did not solve the issue, so I took a copy for testing.

Please let us know in case the issue occurs again.

Best regards
Andreas