Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue with the Tutor LMS registration form, which only displays in one language. When WPML redirects the URL, it causes a bug that prevents the form from displaying on the registration page in other languages.
Solution:
We found a way to display the registration form in multiple languages. Here are the steps:
1. Navigate to Tutor LMS Pro > Settings > Advanced > Student Registration Page.
2. Go to WPML > String Translation > Translate texts in admin screens.
3. Search for the option

"student_register_page"

and add it to String Translation.
4. Return to String Translation and translate the page ID from English to French and Spanish.
Now, the registration form should display correctly in French and other languages. For further guidance, refer to our documentation on finding strings that don't appear on the String Translation page.

If this solution doesn't look relevant, please open a new support ticket.

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.

This topic contains 9 replies, has 3 voices.

Last updated by stephanieD-24 1 year, 4 months ago.

Assisted by: Long Nguyen.

Author Posts
January 18, 2024 at 4:55 pm #15201523

stephanieD-24

Iv'e got a problem with the registration form used with Tutor Lms for le students.
It can be set only on one language so as wpml redirects the url, it creates a bug on the other languages (the form won't display on the registration form page).
Here is Tutor lms reply:

"Now coming to the issue, WPML is not compatible with Tutor LMS anymore because WPML changed the slug URL when you click on the language flag on the top. And Tutor LMS default pages like
/tutor-registration, /tutor-login, /dashboard these pages are bind to the exct slug. When the slug changes the page not found message shows. I hope you have understand it now."

Do you have a solution? an idea on how we could workaround that problem...

January 19, 2024 at 12:04 pm #15204753

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello @stephanieD-24, welcome to the WPML support forum!

While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.

Maybe you can try to copy the original slug for the other languages, as was done in this ticket: https://wpml.org/forums/topic/tutor-lms-dashboard-2/

Please let us know if it works.

January 22, 2024 at 8:57 am #15209940

stephanieD-24

Thank you for your reply, but in that case, I don't have a 404 answer, but a page without the registration form
English version working fine: hidden link
French version not working: hidden link
Is your solution a "temporary" solution? so the french page redirects to the english one?

January 22, 2024 at 9:52 am #15210175

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

No, the workaround is to use the same page slug in the French language as the original page in English language. It is a separate page in the French language, not the redirection.
For example:
hidden link
hidden link

Also, please notice that you need to use the WordPress editor to translate content on your site if you use Tutor LMS. Refer documentation
https://wpml.org/plugin/tutor-lms-pro/
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

Look forward to your reply.
Thanks

January 22, 2024 at 11:34 am #15211028

stephanieD-24

Ok but even if I copy the original slug in the other languages, there will always be a redirection as the option "use directrory for default language" is selected, so It can't be the same slug...
Am I missing something?!

January 23, 2024 at 1:39 am #15213893

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

According to the debug log, I see you are enabling the option "Browser Language Redirect": "Redirect visitors based on browser language only if translations exist" in WPML > Languages.
However, it doesn't relate to this case, you can have the same page slug across languages without the redirection.
Please try to turn off the Browser Language Redirect, set the same page slug and recheck this issue.

If it does not help, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Refer documentation
https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/

Look forward to your reply.
Thanks

January 24, 2024 at 11:36 am #15221415

stephanieD-24

Thank you for your answer!
Before giving you a temporary access, I would like to clear a point.
You said: "however, it doesn't relate to this case, you can have the same page slug across languages without the redirection.", but in the WPML settings, the option "different languages in directories > use directory for default language" is selected so how can I have the same page slug?! as I will always have the language directory different depending on the language...

It still doesn't work even after "disabling browser language redirect"even if my browser..
Thank you for your help!

January 25, 2024 at 1:55 am #15224352

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

When you edit a page in a second language, you can click on the URL option to set the page slug manually, please check the screenshot attached. The language code is not a part of the page slug, it is a part of the URL like parameter, directories (/?lang=fr or /fr/).
Please read more about language URL format in the documentation
https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/

If it doesn't help, please share temporary access (wp-admin and FTP) to your site. Your next reply is set to private to share the info.
❌ IMPORTANT: Please backup your database and website before proceeding ❌

Look forward to your reply.
Thanks

Edit Page “A propos de nous.” ‹ WPML Testing — WordPress 2024-01-25 08-41-11.png
January 29, 2024 at 2:31 am #15235144

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I found a way to display the registration form in the French language. The registration page is setup in Tutor LMS Pro > Settings > Advanced > Student Registration Page.
I go to WPML > String Translation > Translate texts in admin screens > Search for the option "student_register_page" > Add it to String Translation.
Go back to String Translation and translate the page ID from English to French and Spanish.

Now you can see the registration form displays in the French language as well. Refer to this documentation https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

Look forward to your reply.
Thanks

Inscription des étudiants – Mercia Academy 2024-01-29 09-24-03.png
String Translation ‹ Mercia Academy — WordPress 2024-01-29 09-25-12.png
Edit Page “Inscription des étudiants” ‹ Mercia Academy — WordPress 2024-01-29 09-22-44.png
January 31, 2024 at 3:00 pm #15249975

stephanieD-24

Thank you so much for your help!!!

January 31, 2024 at 3:00 pm #15249977

stephanieD-24

Thank you so much for your help!!!