Skip to content Skip to sidebar

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.

Tagged: 

This topic contains 9 replies, has 3 voices.

Last updated by Nigel 1 year, 8 months ago.

Assisted by: Nigel.

Author Posts
November 18, 2023 at 7:17 am #14867187

jelenaP-2

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

November 21, 2023 at 5:38 am #14881683

Waqar Ali

Hi,

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.

regards,
Waqar

November 25, 2023 at 4:59 am #14921229

jelenaP-2

Hi,

Its been two days since I gave you the website details. Did you check the issue?
Please let me know as soon as possible.

Thanks

November 27, 2023 at 4:39 am #14926245

Waqar Ali

Thank you for 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.

November 27, 2023 at 4:56 am #14926313

jelenaP-2

Yes, you can download a clone/snapshot of the website.

November 28, 2023 at 10:27 am #14937643

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

Hi there

Waqar isn't available today, and rather than have you wait, let me take over here.

I'm taking a copy of the site and will get back to you in a little while.

November 28, 2023 at 3:19 pm #14941349

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

I am familiarising myself with your site.

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.)

November 29, 2023 at 5:25 am #14946057

jelenaP-2

/dashboard/orders is created by default by Dokan plugin, here it shows all orders of events created by the vendor

November 29, 2023 at 12:02 pm #14950291

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

Thanks for clarifying.

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.

I'll update you again before too long.

November 29, 2023 at 4:09 pm #14953615

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

Actually, that wasn't quite the case, and the issue was specific to your site after all.

It turns out that some Dokan options were unnecessarily translated using String Translation, and this was causing unexpected consequences.

As you can see in the screenshot there are 3 Dokan admin texts located in String Translation (two of which have been translated).

I selected those strings and then deleted them, and the problem was resolved.

That was on my copy of your site, please try the same on your own server.

Screenshot 2023-11-29 at 16.04.53.png