[Resolved] Orders page showing not found after translation with wpml
This thread is resolved. Here is a description of the problem and solution.
Problem: The client's orders page was showing a 'not found' error after translating the site. The issue persisted until the 'WPML String Translation' plugin was deactivated, indicating that the problem was related to a translation.
Solution:We found that some Dokan options were unnecessarily translated using the String Translation feature, leading to the error. To resolve this: 1. Navigate to the String Translation section. 2. Locate the Dokan admin texts that have been translated. 3. Select these strings and delete them. This solution worked on our copy of the client's site; if you face a similar issue, try checking for Dokan option texts that have translations which are not necessary.
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.
Hello,
After translation of site, orders page is showing not found error ( screenshot: hidden link ) . I tried by deactivating all plugins but when I deactivated 'WPML String Translation' plugin the page is working fine. Orders page is important page so please let me know about this as soon as possible. Please let me know if you need the website's login details also.
Thanks
Thank you for contacting us and I'd be happy to assist.
This doesn't seem to be related to any of the known issues, so it will need some troubleshooting. Can you please temporarily enable WordPress debugging and see if any errors or warnings are recorded in the server's error log?
( ref: https://wordpress.org/documentation/article/debugging-in-wordpress/ )
In case there are none, you're welcome to share temporary admin login details, in reply to this message. We'll also need your permission to download a clone/snapshot of your website if it needs to be investigated on a different server.
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
During troubleshooting on my website with similar settings, I couldn't reproduce this 404 error. Also, I couldn't find anything obvious on your website's settings, which could cause this.
Most likely, it can be a theme compatibility issue, but, to confirm, I'll need your permission to download a clone/snapshot of the website. This will allow us to investigate this in more depth, without affecting the actual website.
Can you tell me what is responsible for the dashboard page? /dashboard/orders/ isn't a WordPress page, although /dashboard/ is. The orders "sub-page" is a generated virtual page.
What is responsible for creating that?
(I need to understand how the default English language version of the page is made before working out why the translation is failing.)
Just to keep you up-to-date, I have been able to reproduce the problem on my own site, it is not something limited to your site.
I will be escalating this to the compatibility team, they will need to coordinate with the Dokan team about a fix, but before I do I'm digging into the plugin code to see if I can identify exactly where this goes wrong, in case I might be able to provide you with a workaround.