Skip Navigation

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

Problem:
The client was experiencing a 404 error when trying to access courses in languages other than the default after translating them using WPML. Additionally, some content under the Curriculum tab and sidebar elements like 'Add to Wishlist' and 'Share' were not translated on the course page.
Solution:
1. We recommended ensuring that the course slug remains the same across all languages. This can be checked by going to Pages > All Pages in the secondary language, using the 'Quick Edit' to verify that the slug matches the default language.
2. For the 404 error, we suggested refreshing the permalinks by navigating to Settings > Permalinks and clicking 'Save Changes' without making any edits.
3. For untranslated strings under the Curriculum tab and in the sidebar, we advised using 'WPML > String Translation' to search for the specific text and add translations. If certain texts are not found, we recommended following the guide on this page.

If these steps do not resolve the issues or if the solution seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at our 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.

Tagged: 

This topic contains 8 replies, has 1 voice.

Last updated by Prosenjit Barman 2 months, 1 week ago.

Assisted by: Prosenjit Barman.

Author Posts
December 16, 2024 at 4:16 am #16515652

panagiotisL-3

Background of the issue:
I have installed the WPML plugin on my site hidden link and successfully translated our courses. The courses are created using a course builder/plugin. The default language is set, and I have followed the standard steps to translate the courses using WPML.

Symptoms:
When I try to access the courses in any language other than the default, I encounter a 404 error.

Questions:
Could you please assist us in resolving the 404 error on translated courses?

December 16, 2024 at 5:40 am #16515728

panagiotisL-3

KIND REMINDER

December 16, 2024 at 7:52 am #16516083

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello,

Thank you for reaching out to WPML support. Before your ticket is assigned to a supporter, I’d like to share some steps that might help resolve the issue.

1. Have you translated the courses slug from WPML -> Settings -> Post Type Translations? If so, please try changing the slug and see if that resolves the issue.

2. Additionally, go to Settings -> Permalinks, and simply click the "Save Changes" button without making any edits. This will refresh your permalinks and might help resolve the issue.

Let me know if these steps work for you or if you need further assistance.

Thanks

December 16, 2024 at 8:54 am #16516253

panagiotisL-3

If we give you the credentials can you check the first one for us? Because it is kind of confusing.

December 16, 2024 at 8:57 am #16516265

panagiotisL-3

We want the slug to be as it is for english the for different languages the language code will be added before the slug.

December 16, 2024 at 9:55 am #16516524

panagiotisL-3

NEED RESPONSE ASAP

December 16, 2024 at 10:33 am #16516715

panagiotisL-3

NEED QUICK RESPONSE

December 16, 2024 at 11:35 am #16516990

panagiotisL-3

HEY NEED RESPONSE

December 17, 2024 at 3:32 am #16519483

panagiotisL-3

GUYS WE NEED A SOULTION

December 17, 2024 at 8:28 am #16520201

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There!
Thank you for contacting WPML Support. Sorry for the delay in responding as we are currently experiencing a high volume of tickets. We’re actively working to address this and aim to provide timely responses moving forward.

I understand the issue you’re facing. As my colleague Shekhar mentioned, the problem with Courses in other languages often occurs when the slug of the Course page is translated. The slug must remain the same across all languages.

Please follow these steps to check and resolve the issue:

-- From your Admin dashboard, switch to the secondary language using the language switcher located in the top bar of the Admin area (Screenshot: hidden link).
- Go to Pages > All Pages.
- Locate the Course page in the secondary language and click on ‘Quick Edit’ below the page name.
- Ensure that the slug of the Course page matches the slug of the Course page in the default language exactly.

If it is the same and the issue persists, a closer inspection will be required to understand the root cause of the issue.

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.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response and I'm always here to help!

Best Regards,
Prosenjit

December 17, 2024 at 1:37 pm #16521969

panagiotisL-3

The language switcher you see now is not of WPML though because once everything is solved in the backend we will place the language switcher.

December 18, 2024 at 4:38 am #16524043

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There!
Thank you for the update.

Glad to hear that the suggestion worked!

Regarding the other issue you mentioned, I noticed that you haven’t provided a link to a specific page or a screenshot of the error. As a result, I’m not entirely sure what content is not appearing translated.

Could you please share the exact location where the issue occurs? If possible, a screenshot or a video of the problem in your next response would be very helpful for understanding, inspecting, and providing targeted assistance. Without this, it can be quite challenging to review each page, identify the issue, and offer relevant suggestions. I hope you can understand.

Looking forward to your response and I'm always here to help.

Best regards,
Prosenjit

December 18, 2024 at 5:36 am #16524085

panagiotisL-3

Hi Prosenjit,

We are experiencing translation issues on our course page. Specifically:

When visiting the Greek version of the course page:
hidden link
Some content under the Curriculum tab is not being translated.
Additionally, on the sidebar course preview, buttons like "Add to Wishlist", "Share", and other elements remain untranslated.

To help illustrate this, I have attached a screenshot for reference.

You can replicate this issue by navigating to:

Masterstudy > Course in the backend.
Choose any language other than English.
View the course page on the front end.

Could you please help us identify what we might be missing and guide us on how to resolve this? Your support would be greatly appreciated.

Looking forward to your prompt assistance.

Screenshot 2024-12-18 at 11-01-51 Διαδικτυακό μάθημα GreenComp for Enterprises – GreenComp Enterprises.png
December 18, 2024 at 6:40 am #16524240

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hii There!
Thank you for the update.

I understand the issue. Under the Curriculum tab, I can see that the lessons appear translated, but the Lesson title does not.

Could you please go to "WPML > String Translation", search for the lesson title, and translate it from there?

If the issue still persists, you may need to manually edit the course in the other language and update the lesson title directly. I hope you can understand.

As for the other text in the "Sidebar", since they are static strings, you should be able to translate them using String Translation. Please go to "WPML > String Translation", search for the text, and if it appears in the results, add the translation by clicking the "+" icon under the corresponding language flag.

However, if a specific text does not appear in String Translation, you can follow the suggestions provided in this guide and hope it will help.

Feel free to let me know if you need further clarification or assistance. I'll be happy to help.

Best regards,
Prosenjit

December 18, 2024 at 6:50 am #16524252

panagiotisL-3

Got it. I will try those and let you know if I face any issues.

One more issue I am facing when you click on GET COURSE button it is not going anywhere on the translated ones but it is working fine on English one which is our default language.
Could you look into this issue in the meantime please ?