Skip Navigation

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

Problem:
The client is experiencing 404 errors, incorrect URL links on translated pages, and issues with string translations in a WooCommerce environment after restoring a backup. The suspected causes include potential conflicts with SEO plugins or incompatibilities with the 'Divi Plus' plugin.
Solution:
1. To address the 404 errors, we recommend resetting the SEO Press plugin by deactivating it, clearing all caches, and reactivating it. This approach has resolved similar issues in the past.
2. If the problem persists, test the website with only WPML plugins and a standard theme, while deactivating all other plugins to isolate the issue.
3. For issues specifically related to the 'Divi Plus' plugin, it appears there is a known compatibility issue with WPML. We advise contacting the plugin author to request a compatibility update. Additionally, plugin developers can refer to WPML's documentation for making their plugins compatible.
4. If you encounter PHP notices related to '_load_textdomain_just_in_time', this is a known issue with WordPress 6.7 affecting many plugins and themes, including WPML. Updating your plugins and themes to the latest versions may resolve these notices.

Please ensure to back up your website before making any changes and, if possible, perform these actions on a staging site to avoid affecting your live site.

If these solutions do not resolve your issues or if they seem outdated or irrelevant to your specific case, 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. Should you need further assistance, please do not hesitate to open a new support ticket 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.

This topic contains 11 replies, has 0 voices.

Last updated by Waqas Bin Hasan 2 weeks, 2 days ago.

Assisted by: Waqas Bin Hasan.

Author Posts
February 24, 2025 at 1:58 am #16738832

andreasS-164

Background of the issue:
I am experiencing several issues with WPML on my website, particularly after restoring a backup. The issues include 404 errors, incorrect URL links on translated pages, and problems with string translations. The issues are affecting my WooCommerce shop pages and other parts of the site. Here are the URLs where the issues can be seen: hidden link; hidden link.

Symptoms:
404 error caused by WPML, URLs on translated pages link to the original language, and string translations not showing in the search results.

Questions:
How can I resolve the 404 errors caused by WPML?
Why are URLs on translated pages linking to the original language?
How can I fix the issue with string translations not showing in the search results?

February 24, 2025 at 9:20 am #16739609

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting the support.

As per our forum policy we can only handle one issue per ticket, so in this ticket I'll take care of 404 issues. For other issues, please report in separate tickets, so you can get more to the point help, instead of mixing several issues in one big ticket.

I checked several pages in your site (including translations) in an effort to find 404 issues but can't see any. Can you please provide the list of the pages or content where this issue is happening?

On the other hand, I recently had a similar issue where an SEO plugin was causing a similar issue. Can you please try resetting the SEO Press plugin settings? Usually a simple deactivate, clearing all caches and activating again is helpful.

If that doesn't work, I request checking with only WPML plugins and a standard theme, while deactivating all other plugins to see if the problem is really coming from the WPML?

IMPORTANT: Please take full backup of your website and database before trying any of the above mentioned. 

It is highly advised to try this on a staging/dev site first, so your live website isn't compromised.

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

Regards.

February 27, 2025 at 10:31 am #16755173

andreasS-164

Hi Waqas,

thank you for your feedback. I have opened 2 new tickets for the other issues. Issue 3 (with the string translations) is solved.

I'll see if we can sort out the issue with URLs linking to the original language instead of the set language, maybe they are somehow related.

I will give you an update in a couple of days!
Kind regards

February 27, 2025 at 1:12 pm #16756224

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Sure, please take your time and let me know when you're ready.

February 28, 2025 at 10:46 am #16760280

andreasS-164

Hi Waqas,

the page runs into a permalink issue when you do the following: open a page in German and in English in a second tab. Then really quickly click on different buttons on both tabs. This will sooner or later result in a 404 error. And I assume it's related to the fact, that on translated pages, the URLs of most buttons (altough they are dynamic links) link to the original (German) version.

On a backup page from January, with the same plugins, I don't have this issue.

Best regards

February 28, 2025 at 12:32 pm #16760744

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Thank you for the updates.

I see that most of the buttons and the links in the footer are pointing to default language links in hidden link (translated home page).

I, however, couldn't reproduce 404 error.

I see that for your English links problem pointing to the German links, is being addressed in https://wpml.org/de/forums/topic/auf-uebersetzten-seiten-linken-links-im-main-bereich-auf-originalsprache/. I'll recommend to wait for the fix on this issue, so we can then check again about the 404 issues here.

Please let me know when the other issue has been resolved.

March 3, 2025 at 4:53 pm #16770141

andreasS-164

Hi Waqas,

thank you for your feedback. In the meantime I was able to solve the issue with the English/Italian links pointing to the German version. Under Languages, the Theme-Translation got automatically disabled after updating to WPML 4.17.0.

However, the issue with the 404 errors remains. I found out, that when disabling Divi Plus, the 404 doesn't occur anymore. So I assume it's related to Divi Plus, WooCommerce and WPML. It also happens when switching languages on a product category page, like here: hidden link

(right now, Divi Plus is disabled to avoid the issue)

March 4, 2025 at 6:41 am #16771544

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Thank you for the updates.

Looks like the  "Divi Plus" plugin is not compatible with WPML:
- hidden link
- hidden link
- hidden link

I couldn't find any mentioning of WPML and Translations as well.

I recommend you to contact the plugin author and request a compatibility update. WPML offers very useful information for developers aiming to make their themes/plugins compatible. Please see https://wpml.org/documentation/support/ and https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/ for details.

Theme and plugin authors are welcome to join WPML’s Go Global program, which helps them make their code multilingual ready. Together with WPML’s compatibility team, they can test and confirm that their theme or plugin works with WPML. See https://wpml.org/documentation/support/go-global-program/ for details and you can refer your theme/plugin provider to this as well.

March 5, 2025 at 5:38 pm #16780156

andreasS-164

Hi Waqas,

thank you for your feedback. I talked to Divi Plus and say this issue is new to them, altough Divi Plus is used on many pages where WPML is running.

Whenever the issue occurs, I see this error log in WP Debug:

[05-Mar-2025 17:34:00 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

complianz-gdpr

domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the

init

action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u714873444/domains/blackcamp.it/public_html/wp-includes/functions.php on line 6114
[05-Mar-2025 17:34:00 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

woocommerce-payments

domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the

init

action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u714873444/domains/blackcamp.it/public_html/wp-includes/functions.php on line 6114

But these errors also occur when Divi Plus is disabled.
Is there anything you can think off to debug or solve the problem?

Best regards,
Michael

March 6, 2025 at 6:08 am #16781088

Waqas Bin Hasan
Supporter

Languages: English (English )

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

The PHP notice about "_load_textdomain_just_in_time" started happening after WordPress 6.7 with almost every plugin and theme, including WPML. So we updated our plugins (see errata https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/), as well as, other popular authors did the same.

There are still so many authors or devs who still need to update their plugin or theme to cater this. However, this may not be the reason of those 404 errors in your site.

If you observe these notices, you'll find the responsible plugins (i.e. complianz-gdpr and woocommerce-payments in your case). Although these are not critical issues but it's always a good idea to report to the relevant authors about these PHP notices, so they can take care of it (or perhaps if you update these plugins to the latest version, they may have already done it).

As long as those Divi Plus related 404 errors are concerned, I'll recommend prepare a test site with only WPML and Divi Plus plugins, reproduce the issue, then deactivate Divi Plus and see if 404 error is still there or not? If not, then of-course you can provide all your investigation with proof to Divi Plus support. However, if issue is still there (even after deactivating Divi Plus), feel free to share the same with us and we'd love to take care of it.

March 11, 2025 at 1:20 pm #16801938

andreasS-164

Hi Waqas. Thank you for your feedback.
I got in contact with Divi Plus, this is what they replied:

We discussed your last response with our developer team and they mentioned that our plugin is translation friendly but it does not have any code that may result in turning the modules into short codes when the language it changed.

However, as I have another support ticket open with your German colleague Marcel (I had to split the various issues into various tickets, therefore I continued in this thread) I will continue with him on this.

So feel free to close this ticket.

Kind regards,
Michael

March 12, 2025 at 8:42 am #16805649

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Thank you for the updates.