I'm having a lot of issues with Woocommerce endpoints, as they show 404.
Website default language is Serbian, and there are English and Czech as secondary languages.
It only works if I switch to English and flush permalinks, but the problem returns after a while and I need to flush permalinks again.
This is a huge issue as the customers are complaining, not being able to access their downloadable products on /downloads endpoint.
Initial /my-account endpoint shows fine, but when customers want to access my-account/orders or my-account/downloads in other languages it shows 404 page.
Again, I've checked the endpoints you mentioned in all languages, several times, and didn't get any issues. Could you please record your screen next time it happens, and share the screen recording with me?
That might give me the first clues I need to check the issue.
Also, please share the complete URLs that are presenting the issues.
You were not replying, so I re-saved the permalinks as that solves the issue.
Simply, translated endpoints stop to work, especially
hidden link hidden link
Note that hidden link
always works, but everything past that is not.
I'll notify you if I experience the issue again, but I kindly ask you and your team to try to reproduce the issue on some local installation.
Steps to reproduce:
1. Put the website default in Serbian
2. Add English and Czech as secondary languages
3. Translate endpoints such as 'my-account', 'orders' and 'downloads' to all languages and see if you'll run into issues
4. Try to resave permalinks in different languages (only switch language, no need to change any setting)
5. Try to resave Woocommerce settings in different languages
Steps 4 and 5 seems to affect the behavior and cause 404.
The feature itself, of translating endpoints between supported languages is not a general issue from WPML, even after re-saving permalinks - this has been tested thoroughly and is a supported feature for many years.
I've downloaded a copy of your website, repeated the shared steps 4 and 5 and visited the both endpoints you shared, many times, switched languages many times, and did not have the issue. It's very likely that there's some issue on your specific server. With the screen recording I asked for, will help me to better understand the issue.
I apologize I do not have any quick solution to this, but those inconsistent issues that happen in production are trickier to solve. Perhaps, you can create a staging website and reproduce the issue there. This would be helpful as well.
Basically, go to Woocommerce settings anywhere where strings are present and save (in the screenshot it's a Completed email notification setting screen) - this will result in endpoints show 404 until permalinks are flushed in English language.
Thank you for sharing. I was able to reproduce the issue on a local copy, this time around. I've escalated this ticket to our development team, which will look for a permanent solution to this issue. This usually takes a few days, I'll keep you up to date.