Skip Navigation

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

Problem:
If you're experiencing 404 errors on all translated WooCommerce pages with translated slugs, including pages like /my-account and /shop, it might be due to several issues with the endpoints.

Solution:
We recommend checking for invalid endpoints that might be duplicated, wrongly translated, or contain mixed languages. Here are the steps we suggest:
1. Remove all endpoints from WPML -> String Translation -> WP Endpoints domain. This action will register the default endpoints again in English.
2. Translate and ensure that endpoint slugs do not contain spaces or accented letters and are registered in English, as WooCommerce defaults to English.
3. Verify that the 'My Account' page is correctly linked in WooCommerce -> Settings -> Advanced -> 'My account page'.

After following these steps, your product pages and account pages should function correctly, including their translations.

Please note that this solution might be outdated or not applicable to your specific case. If the issue persists, 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 needed, do not hesitate to open a new support ticket 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.

This topic contains 0 replies, has 0 voices.

Last updated by Waqas Bin Hasan 1 week, 1 day ago.

Assisted by: Waqas Bin Hasan.

Author Posts
January 29, 2025 at 6:40 am

leonardT-5

Background of the issue:
All translated WooCommerce pages with translated slugs are returning a 404 error, including /my-account and /shop.

Symptoms:
translated WooCommerce pages return a 404 error.

Questions:

Why are translated WooCommerce pages returning a 404 error?

January 29, 2025 at 7:43 am
January 29, 2025 at 7:44 am #16644552

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to our recent chat, I've moved it to this ticket and working on it.

I'll update you as soon as I've more information.

Regards.

January 29, 2025 at 12:51 pm #16646538

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation. I am working on this and 'll get back to you as soon as I find something or have a solution.

January 30, 2025 at 6:14 am #16649258

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

Looks like there were several invalid endpoints which were duplicated, wrongly translated and of mixed language. Perhaps at some point site's default language was changed from Portuguese to English or WP was installed in Portuguese first and then changed to English. There are also chances that these were manually translated, without considering the followings best approaches:

- endpoint slugs shouldn't contain spaces
- these shouldn't contain accented letters
- endpoints must be registered in English (a default from WC)

So I removed all of the end points from WPML -> String Translation -> "WP Endpoints" domain. This registered default endpoints again in English and I then translated these properly (as mentioned above).

"My Account" page's entry was also missing in WooCommerce -> Settings -> Advanced -> "My account page". So I linked the page in there too.

And now all product pages and account pages are working fine including their corresponding translations.

Attached are the images for your reference.

my-account.jpg
endpoints-st.jpg
endpoints.jpg