[Résolu] Dashboard URLs are redirecting to wrong language
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.
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
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.
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
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,
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
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,
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!
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.
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 :
Please mark this current one as solved and expect a reply to the new ticket from me soon 🙂
Best,
Gérer le consentement aux cookies
Nous utilisons des cookies pour optimiser notre site web et nos services. Votre consentement nous permet de traiter des données telles que le comportement de navigation. L'absence de consentement peut affecter certaines fonctionnalités.
Fonctionnel
Toujours activé
Nécessaire au bon fonctionnement et à la communication de notre site web.
Préférences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistiques
Nous les utilisons pour analyser les statistiques de notre site. Les informations collectées sont totalement anonymes. Le stockage ou l'accès technique qui est utilisé exclusivement à des fins statistiques anonymes. Sans citation à comparaître, la conformité volontaire de la part de votre fournisseur d'accès Internet ou d'autres dossiers d'un tiers, les informations stockées ou récupérées à cette fin ne peuvent généralement pas être utilisées pour vous identifier.
Marketing
Ces cookies suivent votre navigation pour vous proposer des publicités pertinentes pour vous.