This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing 404 errors on your translated pages after permanently removing a page and find that re-saving permalinks via /wp-admin/options-permalink.php does not resolve the issue, this summary might help. Solution: 1. Ensure that your homepage is set up correctly. In WordPress, a page set as the homepage should be accessible directly via the main domain (e.g., domain.com) and not through a URL like domain.com/homepage. This setup should apply to both the default language and its translations. 2. If you are using WooCommerce, ensure that you have the WooCommerce Multilingual (WCML) add-on installed and that all related products and categories are translated. This is essential for the correct display of WooCommerce content across different languages. For more details, visit WooCommerce Multilingual documentation. 3. Check that the translated slugs are stored in the wp_posts table, which holds all translated content and slugs, similar to the default language.
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.
After permanent remove page I had 404 error in all pages, do You know why ? I must use /wp-admin/options-permalink.php to restore all urls. It's not acceptable because broke site. On production is very risky and confusion. I've translated again main page but I have 404 error. It's not tru because page exists and is public now. Please look for all attachmets.
ACF options page - resolved.
as mentioned lets continue here on your new issue report. I am not sure why this happens and would need to further check what happens and what plugins you are using.
1) In order to expedite handling your support requests, can you please share WPML support debug information from your site.
- To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page. - Once on the “debug information” page, select the entire content of the text box and copy it. - Now go back to our support forum, find debug information box and paste it.
More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/
2) Please share the access details of your website, so I can log in and take a look.
I’m enabling a private message for the following reply.
- 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.
Sure.
My answers:
- Does the issue occur on the default language as well, or only on the translated page?
Only translated. Original page does work correctly hidden link
- Does the issue get resolved after re-saving the permalinks?
No
I found something strange.
This is a home page hidden link but this is home page hidden link with default slug and doesn't work, maybe here is a problem, but why that happens ?
I lost "- Home page" label. Similar to "- My account", "- Draft" (screen: ...2-58.pg)
I lost also template homepage, now is default template. (screen: ...9-43.png)
Translation for home page has been finished. (screen: ....1-49.png)
I’ve checked this further and can see that the homepage itself is set up correctly. When a page is set as the homepage, it should be accessed directly via the main domain, for example domain.com, and not via a URL like domain.com/homepage. This applies both to the default language and to translations, as that is not how WordPress works in general.
For example, if you check the German version of your homepage, it works correctly also:
- hidden link
Since you are using WooCommerce, please also make sure that you are using the WooCommerce Multilingual (WCML) add-on and that the related products and categories are translated as well. This is required for WooCommerce content to display correctly across languages.
This site has only woocommerce tables but the plugin is not use anymore. Are those tables can exists in database? Where are saved slugs urls of translation pages ?
I’m not completely sure about WooCommerce, but if the plugin was deleted, it’s likely that those tables were deleted as well.
Regarding where slugs are stored: they are kept in the same table as for the default language or when WPML is not used. The translated page is saved in the wp_posts table, including all translated content and the translated slug.
I hope this helps. Let me know if you have any other questions.