Passer au contenu Passer à la barre latérale

Ce sujet est résolu. Voici une description du problème et de la solution.

Problem:
The client is experiencing issues with language redirections on the Tutor LMS dashboard when switching between languages, such as being redirected to the English version when clicking on 'mon profil' in the French version.

Solution:
We recommend the following steps:
1. Consider using the Folder URL settings instead of parameters.
2. Re-save your permalinks in the WordPress settings.
3. Clear your website's cache.
4. If the issue persists, check if the page's slug has changed or if the permalinks are not synchronized correctly. To do this:
A. Confirm the complete URL that worked previously.
B. Perform a backup of your site.
C. Navigate to WPML > Support > Troubleshooting and use the buttons shown here: https://prnt.sc/rqcSNCt3DVLY
D. Re-save your permalinks again.
5. For the dashboard string issue, translate the necessary terms via WPML > String Translation. Search for the term and translate all matching strings as shown here: https://scrnli.com/files/8NXf5f16zaK9pw
6. If there's an error message related to Tutor LMS, it might be due to a string that should not have been translated or an issue originating from the Tutor LMS plugin itself. In this case, consider reaching out to Tutor LMS support for further insights.

If these solutions do not seem relevant to your situation, please do not hesitate to open a new support ticket with us for further assistance. You can do so by visiting the WPML support forum.

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Marqué : 

Ce sujet contient 12 réponses, a 2 voix.

Dernière mise à jour par Ilyes Il y a 1 année et 7 mois.

Assisté par: Ilyes.

Auteur Messages
Novembre 3, 2023 à 1:06 pm

stephanieD-24

Hello!
I've set up Wpml on my website using Tutor lms pro. But I've got a problem with redirections between the different languages on the tutor lms dashboard...
For example when i'm on the french version and I click on "mon profil" on the "tutor lms dashboard". It redirects directly on an english version
Thank you for your help!
Best regards,
sandrine

Novembre 3, 2023 à 2:55 pm
Novembre 3, 2023 à 7:08 pm #14728471

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello again,

I have recorded a video for you to show you the cause and one possible solution for this issue : lien caché

I'm escalating this to our development team, in the meantime, you should consider using the Folder URL settings instead of parameters, re-save your permalink and then delete your cache.

I will get back to your once I get an update,

Novembre 4, 2023 à 1:59 pm #14731161

stephanieD-24

Thank you Ilyes for the video (just for you to know I see only your screen with the wp back office, so when you go on the front to test I don't actually see the result).
So I did change the url format as showed, and I still have mistakes so far, but I suppose these will be corrected after the update?!
1- my dashboard links work now, but the title of the page displaid on the tabs is same as 404 result "page non trouvée" same in spanish
2- in the url the sub-menu still in english (same in spanish)
3- I've got a bug message "Warning: Undefined array key "tutor_dashboard_page" in /home/clients/0c2cb1832cfacf7751331cae6f33ee1e/web/wp-content/plugins/tutor-pro/addons/tutor-report/classes/Analytics.php on line 59" (same in spanish)
4- when I go hover the dahsboard with my mouse, all the items except the dashboard one are in english...it's not the case in spanish...
I put screenshot so you see...
thank you for your help!
sandrine

dashboard-hover-ok-in-spanish.png
dashboard-hover-in-english.png
bug-title-page.png
Novembre 6, 2023 à 7:36 pm #14741519

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

My apology, I should've re-checked the screen recording first, thank you for trying out the other URL format,

1- If this page used to work with the previous URL format (before the change) that only means that the issue is related to this page's slug changing or the permalink not synchronized correctly
Could you please try the following :
A- What is the complete URL when this used to work?
B- Can you please try to do a backup of your site and go to WPML > Support > troubleshooting and try all the following buttons: lien caché
C- Re-save your permalinks

2 and 4- The dashboard string is shown as French for your case and the rest is not because I was the one who translated it from String translation, You have to translate those terms from WPML > String translation > Search for the term > Translate all matching strings : lien caché (Same thing with the sub-menus)

3- I have downloaded a new copy of your site hoping I could see this error, it seems that either :
A- A string that wasn't supposed to be translated was indeed translated by mistake
B- An error entirely coming from the plugin Tutor LMS as the error suggests it belongs to the folder /tutor-pro/addons/tutor-report/classes/Analytics.php

I will run other tests, in the meantime, please consider contacting tutur LMS if they could give us an insight on that error message,

Best,

Novembre 8, 2023 à 9:54 am #14754517

stephanieD-24

Hello Ilyes,
Here are my answers with a ">>"

My apology, I should've re-checked the screen recording first, thank you for trying out the other URL format,
>> it's okay!

1- If this page used to work with the previous URL format (before the change) that only means that the issue is related to this page's slug changing or the permalink not synchronized correctly
Could you please try the following :
A- What is the complete URL when this used to work?
>> I'm not sure to understand...it was not working before.
B- Can you please try to do a backup of your site and go to WPML > Support > troubleshooting and try all the following buttons: lien caché
>> ok done
C- Re-save your permalinks
>> ok done

2 and 4- The dashboard string is shown as French for your case and the rest is not because I was the one who translated it from String translation, You have to translate those terms from WPML > String translation > Search for the term > Translate all matching strings : lien caché (Same thing with the sub-menus)
>> ok I've translated all of them, but still some of them appears in english even if they have been ALL translated (see screenshot) + exemple "enrolled courses"
>> even after the translation strings, the url still linked to the english items (see screenshot)

3- I have downloaded a new copy of your site hoping I could see this error, it seems that either :
A- A string that wasn't supposed to be translated was indeed translated by mistake
B- An error entirely coming from the plugin Tutor LMS as the error suggests it belongs to the folder /tutor-pro/addons/tutor-report/classes/Analytics.php
>> I'll send them a message today incase they can help...
Thank you for your help!
best regards, sandrine

item-url-in-english.png
enrolled-courses.png
bug-items-menus-not-translated.png
Novembre 9, 2023 à 2:44 pm #14768551

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

Thank you for your follow-up,

Any updates from Tutor LMS team about the error message?

Also, I've been trying to get “enrolled courses” translated, but it seems to be stuck, I'm transferring this to my second tier colleagues, so they can take a closer look,

Best,

Novembre 10, 2023 à 1:46 pm #14777189

stephanieD-24

Hello,
They did'nt answer to the question yet. I've send an email this morning, I let you know as soon as I have an answer.
best regards,

Novembre 20, 2023 à 9:23 am #14874355

stephanieD-24

Hello,
Is there any news on the items from the menus not being translated?
Thank you for your answer,
best regards,

Novembre 20, 2023 à 5:24 pm #14879841

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

Thank you for your patience,

I have finally found this string and was able to translate it : lien caché

It was another hidden string that wasn't detected before belonging to the theme : lien caché

Cordialement,

Novembre 21, 2023 à 11:05 am #14885723

stephanieD-24

Thank you Ilyes!
Do you have an idea for "create a new course" which is still in english althought I've translated it...
And I just received a message from the Lms team who corrected the error line, which is a good news!

Novembre 21, 2023 à 10:00 pm #14891441

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

hey again,

I'm glad LMS fixed your other issue,

For "create a new course" , I was also able to translate it using the same method here : lien caché

It is now translated in both French and Spanish, be carful to not delete the <br> html tag in that string or any other string for that matter, always leave the HTML formatting.

Best,

Novembre 28, 2023 à 1:04 pm #14939763
stephanieD-24

Hello Ilyes,
I'm sorry but I'm still having troubles with urls versions...maybe linked with the url repertory format.. I've translated my pages contents but when I click on the french or spanish version, I've got a error message (here enclosed):
An example:
english version: lien caché
french version: lien caché
spanish version: lien caché
It's the case for almost all my pages!
thank you for your help!
sandrine

Les nouveaux fils créés par Ilyes et associés à celui-ci sont repris ci-dessous :

https://wpml.org/fr/forums/topic/split-tutolms-dashboard-urls-are-redirecting-to-404/

Firefox_Screenshot_2023-11-28T12-45-17.058Z.png
Novembre 28, 2023 à 10:13 pm #14944939

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello again!

No problem at all, I'm glad to help again 🙂

However, I suggest we open a new ticket for you to keep our forum organized and easy to access for other users in case they got a similar issue,

Here is the link for your new ticket : https://wpml.org/fr/forums/topic/split-tutolms-dashboard-urls-are-redirecting-to-404/

Please mark this current one as solved and expect a reply to the new ticket from me soon 🙂

Best,