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.
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...
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.
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?
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
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?!
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.
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!
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 ❌
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.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.