Skip Navigation

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

Problem:
You are experiencing intermittent 404 errors on translated pages after browsing other translated pages on your site using WPML. Disabling the 'Disable XML-RPC-API' plugin and refreshing the homepage in the original language temporarily resolves the issue, but it recurs after loading more translated pages.
Solution:
1. Ensure that the 'Disable XML-RPC-API' plugin is deactivated, as WPML requires the XML-RPC API to function properly.
2. After deactivating the plugin, either re-translate the pages or open the existing translations in the WordPress Editor and update them.
3. Check for any unexpected redirects that might be caused by other plugins, such as '301 Redirects'. If found, disable these plugins to see if the issue resolves.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum 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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by ayshaC 1 week, 4 days ago.

Assisted by: Andreas W..

Author Posts
February 7, 2025 at 9:02 pm #16681274

ayshaC

Background of the issue:
I am trying to use WPML on my site hidden link to translate pages into 4 languages. I followed the theme documentation on how to install and use the WPML plugin: hidden link.

Symptoms:
After installing and translating a few pages, I encounter a server-side error 404 on translated pages. The issue occurs intermittently, especially after browsing other translated pages. Refreshing doesn't solve the issue, but reloading the homepage in the original language does, although the problem returns after loading more translated pages.

Questions:
Why do I get a 404 error on translated pages after browsing other translated pages?
Why does reloading the homepage in the original language temporarily solve the 404 error issue?

February 8, 2025 at 3:03 am #16681617

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Usually, you should only get a 404 if the translation is saved as a draft. These translations are in fact published?

Does saving the WordPress-Permalinks solve the issue?

If not, does clearing the Cache solve the issue?

If the issue still persists, I would like to request temporary access (wp-admin and FTP) to the site to investigate the issue further.

The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up the site and database before granting us access.

If you cannot see the "wp-admin / FTP" fields, your post and site credentials will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may need to install a plugin called "All In One WP Migration" here to create a copy of the site that I can use to investigate the issue further.

However, I would also be very grateful if you could provide a staging site or copy of the website from your server for this purpose.

If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/de/account/websites/.

If you are not able to provide such a copy of the website for testing, please let me know on this ticket.

The private reply form looks like this:
hidden link

The next time you reply, click on "I still need assistance".

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.

Best regards
Andreas

February 8, 2025 at 3:39 pm #16682591

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Your site is using widgets that are coming from "CozyStay Core".

WPML by default supports all widgets that are shipped with Elementor and Elementor Pro.

Every Custom Elementor Widget must have an XML configuration so that it can be translated using the WPML Translation Editor.

It is the theme author's job to create such a configuration in a wpml-config.xml file in the root directory of the theme or plugin.

Guide:
https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

We also provide the following plugin, which makes creating such a config easier, but we do not recommend using it in a production environment:
https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/

If the author does not provide such a config, you can alternatively create one yourself. This config can be stored under WPML > Settings > Custom XML Configuration.

We can further offer a WPML test site on which we can recreate the issue and I assist you with a basic configuration for some of the widgets, but if there are many affected widgets it would be better to reach the author of those widgets.

We offer a program for theme and plugin authors to support them on this matter which you could name as a reference to the author:
https://wpml.org/documentation/support/go-global-program/

---

Alternative: Use the WordPress Editor as the translation method instead.

Instructions for translating with the WordPress editor:
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

Best regards
Andreas

February 8, 2025 at 3:45 pm #16682600

ayshaC

hello, you did not mention the issue we are having!

the problem is that even if we deactivate the "CozyStay Core" we still get error 404
so the issue is not from that plugin.

February 8, 2025 at 4:33 pm #16682684

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I am sorry, I did not see the 404 errors, as I only verified the homepage and the page "Villas".

The problem appears to be the plugin "Disable XML-RPC-API".

The XML-RPC API is required for WPML.

February 8, 2025 at 4:54 pm #16682761

ayshaC

the problems comes when you load few translated pages 1 after the other, try loading the site in french, in the explore menu you have translated pages. load these pages 1 after the other you get error 404 i attach the screenshot below

disabling Disable XML-RPC-API did not help i still get 404

Screenshot 2025-02-08 at 17.51.42.png
February 8, 2025 at 4:59 pm #16682791

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

After disabling the plugin you need to complete the translation again or open the translation on the WordPress Editor and update the post or page.

February 8, 2025 at 5:09 pm #16682809

ayshaC

after deactiving that plugin i did both, complete translation again on french translated pages and also open editor and save again. but i still get the error.

February 8, 2025 at 5:26 pm #16682829

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

On the French Contact page, I edited the title and saved the page.

I was then able to see it here:
hidden link

I then edited the original content page, and saved it and the issue occurred again.

I then disabled the plugin "301 Redirects" and the page was visible again and was no longer replicable.

Please revise the plugin for any unexpected redirects.

contact.jpg
February 8, 2025 at 5:30 pm #16682844

ayshaC

i disabled the 301 redirect plugin and got the error, the error comes if you load more than 1 translated page.

Screenshot 2025-02-08 at 17.51.42.png
February 8, 2025 at 5:39 pm #16682916

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I can not even reach the login page now. Please disable WPML and verify if the error persists.

February 8, 2025 at 5:46 pm #16682922

ayshaC

i have disabled WPML plugin, this issue has come with translation plugin. we did not have this issue before.

February 8, 2025 at 6:05 pm #16682982

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Thank you, I will take a local copy of the site to investigate further.

February 8, 2025 at 6:07 pm #16682986

ayshaC

thanks a lot, meanwhile i also continue testing things out as well!

February 8, 2025 at 8:24 pm #16683157

ayshaC

hey i found the problem it was the google review plugin!
thanks anyway.