Skip Navigation

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

Problem:
The client is trying to translate Elementor archive pages using WPML, but encounters a 404 error after adding the translation.
Solution:
We recommend updating the WPML plugin and its add-ons to the latest version, currently 4.6.12, to ensure all recent bug fixes and improvements are applied. You can check for the latest versions under My Account -> Downloads on the WPML site. Detailed update instructions are available at https://wpml.org/faq/install-wpml/.
Before updating, ensure to backup your database. After updating, if the issue persists, please provide specific examples of the problem.

The client confirmed that the problem was fixed after installing WPML SEO.

If this solution does not apply because it might be outdated or not relevant 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. If the problem continues, please 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.

Tagged: 

This topic contains 15 replies, has 2 voices.

Last updated by Andrey 6 months, 2 weeks ago.

Assisted by: Andrey.

Author Posts
July 23, 2024 at 5:02 pm #15993779

andreasP-26

<b>Background of the issue: </b>
I am trying to translate Elementor archive pages on my site hidden link . I have a lot of categories, and for every category, there is an archive page assigned to it. Most of the categories are translated already.

<b>Symptoms: </b>
When I add the archive translation, it doesn't work and it's always 404.

<b>Questions: </b>
How can I correctly translate Elementor archive pages using WPML?
Why do my translated archive pages return a 404 error?

July 23, 2024 at 10:08 pm #15994964

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

How to Translate an Elementor Website with WPML:
https://wpml.org/documentation/plugins-compatibility/elementor/

Please update your WPML plugin and add-ons to the latest version, 4.6.12, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the newest code available to troubleshoot the issue best.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.

Please remember to backup your database before you proceed.

Could you please provide a few examples if the issue persists after an update has been done?

July 24, 2024 at 8:16 am #15996791

andreasP-26

I dont see any updates in commercial tab as well... I think this is because the key is wrong and i need to update it, since the site uses the key from my mlocal installation... how do i do it? Check also the screenshot i attached

Screenshot 2024-07-24 111504.png
July 24, 2024 at 9:21 am #15997159

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

You will need to:

– Unregister your website in the Plugins → Add New Plugin → Commercial tab

– Create a new site key in your account on wpml.org

– Register your site with the new site key in Plugins → Add New Plugin → Commercial tab

July 24, 2024 at 9:51 am #15997417

andreasP-26

Ok, i ve updated the plugins... but still the issue is there. Maybe i have to do some extra steps in order for the translated archuve to work?

July 24, 2024 at 10:00 am #15997460

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Can you show me some examples of the problem?

And the screenshots of the following:

When I add the archive translation, it doesn't work and it's always 404.

I need more information to understand the problem better and to know what has been done already.

July 24, 2024 at 10:07 am #15997520

andreasP-26

hidden link

this is the archive for the posts under sun-sea category

when i am adding a translation for it, and then switch to the language i added translation for (EL in my case) it goes 404 (see the screenshot)

hidden link this is the supposed url for the transalted archive

Screenshot 2024-07-24 130635.png
July 24, 2024 at 1:00 pm #15998525

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Does the problem persist if you temporarily deactivate all plugins except WPML and Elementor? Have you completed the translation for it?

July 24, 2024 at 1:48 pm #15998839

andreasP-26

Yes i ve completed the translation for 100%.
There is one thing... should i set the display condditions for the translated archives? Cause for the original one it is set to work for sun-sea category posts, and what i mean is to ask - should the translated archive work for the transated category of the original archive automatically? or is there an additional step?

July 24, 2024 at 2:50 pm #15999108

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

The translated category has a different slug, which could be a reason for the issue. Try to switch the language in the admin and see if the condition is valid for the secondary language.

July 24, 2024 at 4:53 pm #15999694

andreasP-26

Yes, the display conditions are not being set in elementor for that translated archive... but the problem is if i set it for translated category, the display conditions for the original archive are being reset ... so it seems like it's either one or another... can you check it somehow? i can provide the credentials for you

July 25, 2024 at 10:27 am #16002912

andreasP-26

Hello, i m sorry for being so persistent, but i have a strict deadline to finish the transltation of the site. can you please help me? if there is an issue or a bug somewhere, you probably could spot it better then me... I can provide the creadentials for you to debug it. Thank you in advance!

July 25, 2024 at 11:16 am #16003220

andreasP-26

Hello again, i ve tried to deactivate all the plugins. And it seems like the reason is the Yoast SEO plugin, because in the settings due to the client's request i set to exclude 'category' word from the url. And it seems to be breaking the whole flow... If i disable it, then i dont even need to translate the archives they are catching up the right category automatically... Do you something for that case?

July 25, 2024 at 2:13 pm #16004047

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Hello,

Thank you for the update. Let me check this.

In the meantime, could you please upload some backend screenshots of this option and the place where you set the display conditions?

I also need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – in order to be of better help. You will find the needed fields for this 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.

July 30, 2024 at 9:11 am #16019531

andreasP-26

Hello I ve resolved this issue after i installed your WPML Seo plugin. Thank you for you time!