Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 16 replies, has 0 voices.

Last updated by Waqas Bin Hasan 2 days, 9 hours ago.

Assisted by: Waqas Bin Hasan.

Author Posts
September 9, 2025 at 12:54 pm #17387187

Dixa Butani

Background of the issue:
I am trying to display all courses on the course archive page using WPML and Tutor LMS integration. When I open a course, it sometimes shows a 404 error. The issue can be seen on this page: hidden link.

Symptoms:
Course pages intermittently show 404 errors when opened.

Questions:
Why do course pages show 404 errors intermittently?
How can I prevent 404 errors from occurring on course pages?

September 9, 2025 at 1:11 pm #17387256

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

Please note that only the Pro version of Tutor LMS is compatible with WPML and requires the installation of their hidden link">WPML Addon. Please make sure that you're using Pro version and the required WPML addon.

Additionally, please provide the debug information of your website for an overview of your setup. See https://wpml.org/faq/provide-debug-information-faster-support/ for more information.

I've enabled the debug information section for your next reply.

Additionally you can also take a look at https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/ and cross-check for a few initial fixes.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

Regards.

September 9, 2025 at 1:36 pm #17387305

Dixa Butani

Can we talk in live chat ?

September 10, 2025 at 6:02 am #17389160

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the debug information, which apparently looks fine along with the use of Tutor LMS Pro.

You can connect via chat and any available supporter can help you around. If you wish to continue over this ticket, please try the following:

Take a full backup of your site and database before proceeding. It is highly advised to try these on a dev or staging site first, so your live site isn't compromised.

1) Increase “WP Memory Limit” to at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set this in your wp-config.php file by adding following code:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Remember to add these lines before the line where it says:

/* That's all, stop editing! Happy publishing. */ 

See https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php for details. Increasing WP Memory helps improve the performance.

2) Then deactivate all plugins except WPML, String Translation, Tutor LMS & Pro.
3) Switch to a standard theme like 2024 or 2021.
4) Clear all caches and check for the issue if it still happens.
5) Then start activating plugins one by one while keep checking for the issue. This way you 'll be able to pinpoint a conflict when & where it starts creating the problem.
6) If after activating all plugins you see that it still works fine, then switch to your theme and see if that's causing it.

Please let me know your findings and I'll try my best to help you further on the matter.

September 10, 2025 at 7:39 am #17389335

Dixa Butani

I am already do all this things and i change memory limit to 512M
define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

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).

Login link for wp-admin: [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.

Also can you give me how much time take to resolve this issue.

Thank you,
Dixa

September 10, 2025 at 11:04 am #17390234

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

For the lesson link (hidden link), I see 404 all the time.

For course URL (hidden link) I couldn't reproduce a 404, however, I'm wondering what's the English URL for this? Because I enabled Footer Language Switcher also and looks like there's no English (default) language URL about it. This shouldn't be a problem, but for the sake of translation workflow, default language content should exist also.

Anyways, moving forward, I need to deactivate plugins which also includes the plugin providing temporary access link. Since I can not edit my profile (trying to edit returns with "You don't have permission to access this page" error).

So I request temporary access (WP-Admin and FTP), with proper user/password.

Your next answer will be private, to share this information safely.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

P.S.: If you don't see the section for providing access information, do not write in the message box or the information may appear as public. I've also removed the temporary access link from your previous public message.

September 10, 2025 at 12:57 pm #17390865

Dixa Butani

The issue was not caused by the plugin that provides the temporary access link, so please do not deactivate this plugin.

September 10, 2025 at 2:31 pm #17391321

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I understand the issue is not caused by the plugin providing temporary link. But the point is to check by deactivating other plugins, as well as, being able to access my user profile for some related settings like seeing admin bar on the frontend and etc.

Other than that a proper user/password based access is needed to debug in more detail and to escalate the issue as needed.

I have already removed the previously provided temporary link from your previous public message (as per our forum policy), for safety reasons. So I don't have access to your site anymore.

Your next answer will be private, to share this information safely (with proper user/password).

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

P.S.: If you don't see the section for providing access information, do not write in the message box or the information may appear as public. I've also removed the temporary access link from your previous public message.

September 10, 2025 at 6:31 pm #17392064

Dixa Butani

this is link again:
hidden link

The admin bar is hidden on the frontend, which is why it wasn’t showing. I’ve given you administrator access so you can now access everything from the backend. After that, I also took a backup of the site, so please go ahead and work on this. If you encounter any errors, let me know — at this point, the issue is consuming time without moving toward a solution.

If you need the wp-admin username/password for any specific task that cannot be done with your current access, I will provide it. Please understand the urgency, because my users are facing 404 errors and this is directly impacting the site.

If possible, I’d prefer a live chat so we can discuss in real time and resolve the issue more quickly instead of delays.

If possible, I’d prefer a live chat so we can discuss in real time and resolve the issue more quickly instead of delays.
I’m based in Toronto, Canada, and since I work at night, I’m available for live chat between 1:00 AM and 11:00 AM Toronto time.”

September 11, 2025 at 7:56 am #17393055

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

Apparently there was the following critical error, coming from Hello Elementor theme, which perhaps has been customized:

PHP Fatal Error: Uncaught Error: Call to undefined function get_field()
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): blankslate_load_scripts()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/script-loader.php(2299): do_action()
#4 /wp-includes/class-wp-hook.php(324): wp_enqueue_scripts()
#5 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /wp-includes/general-template.php(3192): do_action()
#8 /wp-content/plugins/pro-elements/modules/theme-builder/views/theme-support-header.php(27): wp_head()
#9 /wp-content/plugins/pro-elements/modules/theme-builder/classes/theme-support.php(72): require('/home/u27332901...')
#10 /wp-includes/class-wp-hook.php(326): ElementorPro\Modules\ThemeBuilder\Classes\Theme_Support->get_header()
#11 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#12 /wp-includes/plugin.php(517): WP_Hook->do_action()
#13 /wp-includes/general-template.php(38): do_action()
#14 /wp-content/plugins/tutor/classes/Utils.php(9731): get_header()
#15 /wp-content/plugins/tutor/templates/single-course.php(26): TUTOR\Utils->tutor_custom_header()
#16 /wp-includes/template-loader.php(106): include('/home/u27332901...')
#17 /wp-blog-header.php(19): require_once('/home/u27332901...')
#18 /index.php(17): require('/home/u27332901...')
#19 {main} thrown in /wp-content/themes/hello-elementor/functions.php on line 58
Theme: Hello Elementor
File: /wp-content/themes/hello-elementor/functions.php
Line: 58

So I had to switch to a standard WordPress theme, since support for custom coding is out of scope of this forum.

However, with the minimal possible setup and a default theme, the issue of 404 not found on Swedish translated Lessons is more evident (i.e. happening all the time and not an intermittent one).

I also reproduced the issue in a fresh sandbox site. Issue is more or less the same but in my case, the language switcher is producing wrong URLs. However, if I change the language at a course page and then continue with lessons, it goes fine. But as soon as I try to change language from the language switcher, I get 404 (in case of both languages).

So as a next steps, I'm downloading a backup of your site via All in One Migration plugin, as well as, a backup of my sandbox site. And 'll escalate to our 2nd tier team for further investigation.

Please note that it may take some time, as we've a weekend ahead also. However, I'll try my best to add notes about urgency of the matter.

Besides this, your availability hours for chat are out of my work hours. However, you can connect to chat anytime and can refer to this ticket. An available supporter will try to catch up. But please note that since the issue 'll be escalated, the chat may not be much useful.

I'll keep you posted as the matter progresses further.

September 11, 2025 at 8:39 am #17393213

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I just wanted to update you that the issue has been escalated to our 2nd tier team. I'll update you as soon as there's more to it.

September 11, 2025 at 8:59 am #17393257

Dixa Butani

Okay

September 12, 2025 at 4:53 am #17396049

Dixa Butani

have you solve issue ?

September 12, 2025 at 5:12 am #17396056

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

The matter has been further escalated to our compatibility team. As I mentioned earlier that it may take some time, your patience is highly appreciated.

I'll update you as soon as there's more to it.

September 12, 2025 at 6:33 am #17396109

Dixa Butani

In the meantime, please provide an alternative solution, as this issue is currently affecting my live users and having a significant impact on my business.