[Resolved] Tutor LMS Dashboard Slugs Not Translating in Swedish (Shows
This thread is resolved. Here is a description of the problem and solution.
Problem: You are using Tutor LMS with WPML for a bilingual English and Swedish site, and you're facing issues with translating dashboard slugs like 'purchase_history', 'my-profile', 'enrolled-courses', etc. into Swedish. The page content loads correctly, but the page title displays 'Page Not Found' in Swedish, while English works fine. Additionally, after updating the Tutor LMS plugins, the sidebar menu in Swedish started working, but clicking the inner tabs redirects to a 404 page. Solution: We have identified that the issue with the page titles not displaying correctly in Swedish and the 404 errors when clicking on inner tabs are caused by your custom code. We recommend testing your site with a default theme, such as Hello Elementor, to confirm if the issue persists without the custom code. If the problem is resolved with the default theme, it indicates that the custom code is causing the translation and redirection issues. For further assistance, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and ensure you have installed the latest versions of themes and plugins.
If this solution does not apply to your case or if it becomes outdated, we highly recommend opening a new support ticket. You can do so at WPML support forum.
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.
Background of the issue:
I am trying to use Tutor LMS with WPML in English and Swedish so that the dashboard slugs (purchase_history, my-profile, enrolled-courses, etc.) are translated into Swedish and show the correct page titles. You can see the issue at hidden link. I expected to see the page title in Swedish corresponding to the dashboard section (e.g., 'Köphistorik' for 'Purchase History') when viewing in Swedish. Login details as a user: email: test123@gmail.com, password: test123@gmail.com.
Symptoms:
The page content loads correctly, but the page title says 'Page Not Found' when using the Swedish version. This only happens in Swedish — English works fine. It seems the Tutor LMS endpoint slugs are not translated. I could not find them in WPML → String Translation or Tutor LMS settings.
Questions:
Why are the Tutor LMS dashboard slugs not translating into Swedish?
How can I ensure the correct page titles are displayed in Swedish?
- Please backup the site files and database before providing us access.
- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.
I checked further and seems the issue is coming from custom code that you added in the parent theme functions.php.
I have deleted theme and re-installed new Hello Elementor theme and it works fine then in SW. Note, we can not support or debug custom code solution, for that would be best to hire or advise further with your developer.
I also see Tutor LMS plugins are older version, so please update to latest.
I have done these testing on local version, not on your staging site.
The issue with the sidebar menu in the Swedish version of the user dashboard has been resolved after I updated both Tutor LMS plugins. However, the inner tabs within the menu are still not functioning as expected — clicking them redirects to a 404 page.
I have also checked by commenting out all my custom code, but the issue with the inner tabs remains. The main menus now work after the plugin updates, but do you happen to have any idea what might be causing the inner tab issue?
New threads created by Dražen and linked to this one are listed below: