This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing a 404 error after translating a page using WPML's automatic translation, it might be due to the theme you are using. In this specific case, the issue was related to the 'My Listing' theme by 27collective, which is not compatible with WPML. Solution: We recommend checking the compatibility of your theme with WPML. You can find more information about the 'My Listing' theme and its compatibility issues on our page: https://wpml.org/theme/mylisting/. Additionally, the theme authors have also acknowledged this compatibility issue on their ThemeForest page: ThemeForest MyListing. We suggest contacting the theme authors to encourage them to join our Go Global Program, which you can learn more about here: Go Global Program. Alternatively, consider using another theme or plugin that is officially compatible with WPML. You can explore suitable themes and plugins through these links:
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 you still need assistance, please open a new support ticket 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.
Background of the issue:
I translated a page with the automatic translation in WPML, saved it, and when I click on the translated link, it gives me a 404 error. The original URL is hidden link and the translated URL is hidden link. I have also provided an image for reference: hidden link.
Symptoms:
The translated page gives a 404 error when accessed.
Questions:
Why does the translated page give a 404 error?
How can I fix the 404 error on the translated page?
The problem seems to happen with URL pages with /l/. In Bulgarian, I can see a redirection from hidden link to hidden link. I think this part of the problem.
Can you please tell me what /l/ is?
Is it a parent page, a category, or something else?
Hi, /l/ - this is part of the URL of the ads, the archive part, but at the same time do not have a separate archive as is a blog, for example, or the store. So category most corresponds to what it is, maybe. /l/ doesn't have a dedicated archive page, generally speaking, and that's where this comes from.
What could be changed is to replace the /l/ in the structure with one of the following:
%listing_type% - which would show /mesta-za-sabitiya/
%listing_region% - which will show /raion-sofiya/
or a combination - %listing_region%/%listing_type%
Reading your description, I still don't understand how you have set /l/ to show in the URL. It sounds like you are manipulating the URL out of the ordinary. In any case, if you have it for the default language, you also need to have it translated into the other language.
If listing_type and listing_region are custom post types or/and custom taxonomies, you need to ensure they are set as translatable in WPML -> Settins -> Post Types Translation and Taxonomy Translation. And you must have them translated. Please read the following related guides.
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
Because your site is in Bulgarian and there are many settings on the listing's editing screen, it is hard for me to understand which taxonomy it is.
Can you please tell me which custom taxonomy zali-za-seminari-v-hoteli belongs to?
Also, please go to WPML -> Settings -> Taxonomy Translation and check that this taxonomy is set to be Translatable. A few taxonomies are set to Not Translatable, but they probably need to be put to Translatable. Please see the attached screenshot.
Please note that my weekend is Friday-Saturday, and I'll be able to continue to check this issue and help you on Sunday.
I've further checked this issue on your site and concluded that the problem is with the theme you are using, the My Listing theme by 27collective. I'm sorry, but the theme is known to be incompatible with WPML.