Background of the issue:
I am trying to display Tutor LMS course pages correctly across different WPML languages. I have courses in Swedish (sv) and English, and I'm using custom code to show courses from all languages on archive pages. Here is a link to a page where the issue can be seen: hidden link.
Symptoms:
The course page sometimes shows a 404 error and sometimes works correctly. This happens inconsistently - the same URL might work in one browser tab but show 404 in another tab, or work initially but show 404 after browsing the site.
Questions:
Why do course pages show 404 errors intermittently with WPML and Tutor LMS integration?
How can I ensure the course page loads consistently every time, regardless of the active language or navigation method?
Also, the add-on from their team is required as well: hidden link
Being that you do have a functioning translation it sounds like you already know these things, but please do double check.
Typically a 404 error can happen due to server caching as well, I can see that you are using LiteSpeed Cache, if possible please test with it temporarily deactivated and let me know your results.
NOTE: At the moment I am not able to reproduce the 404 error, I have refreshed the URL provided a few times to attempt reproducing it.
I am reviewing, unfortunately this issue is more complex and has to be handled in our standard email support.
If you would prefer I can locate another supporter in a closer timezone as you as I am located in Pacific Time.
What is your preferred timezone?
To further investigate either with myself or another supporter closer to your timezone we will need to be able to reproduce the issue.
I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)
**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **
I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.
NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.
On the site hidden link
, some course and lesson pages intermittently return a 404 error.
Example course URL (Swedish): hidden link
Example lesson URL: hidden link
Behavior Observed
The problem happens mainly in the Swedish language version, so please check from Swedish pages first.
Sometimes the page loads normally, but other times it shows a 404 Page Not Found.
The issue is intermittent – not every time.
Trigger cases:
Switching the currency 2–3 times.
Sometimes simply accessing the same slug.
If you wait a few minutes and refresh, the same page usually loads fine again.
Impact
This is affecting real users of the site.
The 404 errors create confusion, interrupt learning, and directly impact the business.
This needs urgent resolution.
Requirements
On the course archive page, show all courses from all languages.
If a course belongs to Swedish, it should always open in Swedish, even if the user is browsing in another language.
Example: If a user is on the English version of the archive and clicks a Swedish course, they should be redirected to the Swedish course URL, not the English one.
Permalinks should remain stable and always resolve correctly without showing random 404s.
Currently, sometimes permalinks break due to WPML/slug/currency conflicts.
The issue of intermittent 404 errors must be diagnosed and fixed.
Also, please provide the reason why this is happening, so I understand the root cause.
✅ In short:
On the archive page, show all courses (both English and Swedish).
When clicking a course, it should open in its original language (not based on current site language).
Fix the intermittent 404 error that sometimes appears when opening Swedish course/lesson pages.
Provide an explanation of why this happens and the final solution.
I’m based in Toronto, Canada, but since I work at night, I’m available for live chat between 1:00 AM and 11:00 AM (Toronto time).
[removed]
I have already taken a full backup of the site. You (or your support team) are free to make any changes needed to fix this issue. My main concern is to have it resolved because the site has real users, and they are facing this issue, which is directly impacting my business. Please also provide the reason why this happens, in addition to fixing it.