[Resolved] Single event translations serving 404 errors
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing 404 errors when trying to access translated single events in the Events Calendar plugin. Recurring events were working fine, but single events were not accessible in the translated language, affecting the site's SEO.
Solution: We found that within WPML > Settings > Post Type Translation, the slug for "events" was incorrectly translated to "cy/events", which included a language directory and was not valid. We corrected the slug translation, and now the single event translations are working as expected.
If you're experiencing similar issues with translated events resulting in 404 errors, we recommend checking your slug translations in WPML > Settings > Post Type Translation to ensure they do not include language directories.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking 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 still need assistance, 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.
I am trying to:
The website is not serving up any of the translated single events in the Events Calendar plugin.
When I create an event in English, then publish the event, translate it (either automatically with credits or manually) and then go to the front end and click the Cymraeg (translate) button instead of taking me through to the translated version of the page it serves a 404 error.
This isn't just for new pages though, it is for the entire calendar of events which are not recurring (the recurring events work fine) meaning we have a lot of 404 issues with the site at the moment due to issues with your plugin and this is affecting our SEO, so we need a fix ASAP.
Link to a page where the issue can be seen: hidden link
I expected to see: The page translated when I click the translate button
Instead, I got: 404 Page not found
I have refreshed permalinks which did not fix the issue.
I also created an event, the translation page did not work. Then edited to make it a Recurring Event, then checked the front end and the translation page did work. So I would assume there is an issue with the linking or creation of the single events which is causing the bug.
First, please try if saving the WordPress Permalink Settings solve the issue.
If not, please revise if the example translation is published (Not saved as draft or in trash)
If so, I would like to offer to take a closer look at the problem and request temporary access (wp-admin) 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.
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.
Inside WPML > Settings > Post Type Translation you had translated the slug for "events" to "cy/events" and this is not a valid translation, as it includes a language directory.