Skip Navigation

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

Problem:
If you're experiencing a 404 error after translating a page using WPML's automatic translation, it might be due to the theme you are using. In this specific case, the issue was related to the 'My Listing' theme by 27collective, which is not compatible with WPML.
Solution:
We recommend checking the compatibility of your theme with WPML. You can find more information about the 'My Listing' theme and its compatibility issues on our page: https://wpml.org/theme/mylisting/. Additionally, the theme authors have also acknowledged this compatibility issue on their ThemeForest page: ThemeForest MyListing.
We suggest contacting the theme authors to encourage them to join our Go Global Program, which you can learn more about here: Go Global Program. Alternatively, consider using another theme or plugin that is officially compatible with WPML. You can explore suitable themes and plugins through these links:

If this solution does not apply to your case, or if it seems outdated, 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 you still need assistance, 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 13 replies, has 2 voices.

Last updated by Itamar 9 months, 4 weeks ago.

Assisted by: Itamar.

Author Posts
August 24, 2024 at 2:09 pm #16100317

ralitzaW

Background of the issue:
I translated a page with the automatic translation in WPML, saved it, and when I click on the translated link, it gives me a 404 error. The original URL is hidden link and the translated URL is hidden link. I have also provided an image for reference: hidden link.

Symptoms:
The translated page gives a 404 error when accessed.

Questions:
Why does the translated page give a 404 error?
How can I fix the 404 error on the translated page?

August 25, 2024 at 3:19 pm #16101576

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I can see this problem on your site.

The problem seems to happen with URL pages with /l/. In Bulgarian, I can see a redirection from hidden link to hidden link. I think this part of the problem.

Can you please tell me what /l/ is?
Is it a parent page, a category, or something else?

Regards,
Itamar.

August 26, 2024 at 8:29 am #16103100

ralitzaW

Hi, /l/ - this is part of the URL of the ads, the archive part, but at the same time do not have a separate archive as is a blog, for example, or the store. So category most corresponds to what it is, maybe. /l/ doesn't have a dedicated archive page, generally speaking, and that's where this comes from.

What could be changed is to replace the /l/ in the structure with one of the following:
%listing_type% - which would show /mesta-za-sabitiya/

%listing_region% - which will show /raion-sofiya/

or a combination - %listing_region%/%listing_type%

Would that solve the case?

August 26, 2024 at 2:00 pm #16105014

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Reading your description, I still don't understand how you have set /l/ to show in the URL. It sounds like you are manipulating the URL out of the ordinary. In any case, if you have it for the default language, you also need to have it translated into the other language.

If listing_type and listing_region are custom post types or/and custom taxonomies, you need to ensure they are set as translatable in WPML -> Settins -> Post Types Translation and Taxonomy Translation. And you must have them translated. Please read the following related guides.

https://wpml.org/documentation/getting-started-guide/translating-custom-posts/

https://wpml.org/documentation/getting-started-guide/translating-post-categories-and-custom-taxonomies/

It sounds like you should change the structure to listing_region and listing_type, but they need to be translated.

Please let me now if it helps.

Regards,
Itamar.

August 27, 2024 at 12:59 pm #16110030

ralitzaW

Hi, we changed the structure and now the categories are logical, but all pages are giving us 404, what can we do to fix things?

For example this restaurant in English is showing but disappeared in English, gives 404 and separately the photos are not showing.

En
hidden link

Bg
hidden link

I see it in the dashboard, but url is not working - hidden link

It's not just him, our hotels have also disappeared - hidden link

Regards

August 27, 2024 at 1:22 pm #16110169

ralitzaW

May i send you the login details to have a look at the webiste and what i'm not doing right, or something else is wrong?

August 27, 2024 at 7:33 pm #16112028

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Sure, please let us have access to your site.

If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

August 28, 2024 at 11:12 am #16114432

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, and thanks for the access details.

It looks like you switched from Polylang to WPML. There is also an admin notice about it. Please see the attached screenshot.

1. Is it correct you switched from Polylang?
2. If so, did you follow our guide here?

https://wpml.org/documentation/related-projects/migrate-polylang-wpml/

Regards,
Itamar.

2024-08-28_14-09-27.jpg
August 29, 2024 at 8:45 am #16118556

ralitzaW

Hi, yes the dev did it, now i don't see this warning in admin panel.
That was the problem?

August 29, 2024 at 9:18 am #16118726

ralitzaW

I just translated a new page and it still gives 404, don't know why the English version goes to uncategorized.

hidden link

hidden link

You can try with this url - hidden link

August 29, 2024 at 5:37 pm #16121584

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Because your site is in Bulgarian and there are many settings on the listing's editing screen, it is hard for me to understand which taxonomy it is.

Can you please tell me which custom taxonomy zali-za-seminari-v-hoteli belongs to?

Also, please go to WPML -> Settings -> Taxonomy Translation and check that this taxonomy is set to be Translatable. A few taxonomies are set to Not Translatable, but they probably need to be put to Translatable. Please see the attached screenshot.

Please note that my weekend is Friday-Saturday, and I'll be able to continue to check this issue and help you on Sunday.

Regards,
Itamar.

2024-08-29_20-36-38.jpg
August 30, 2024 at 10:19 am #16124207

ralitzaW

Hi, it is Categories (job_listing_category) and was set as "Translatable".

August 31, 2024 at 2:37 pm #16127792

ralitzaW

New url translated from today - hidden link

It's interesting why english translate always put /uncategorized/ but not the correct category

hidden link

And why images are not copied?

This page also gives 404.

September 1, 2024 at 4:22 pm #16129335

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I've further checked this issue on your site and concluded that the problem is with the theme you are using, the My Listing theme by 27collective. I'm sorry, but the theme is known to be incompatible with WPML.

We state this in our page about this theme here:
https://wpml.org/theme/mylisting/

Moreover, the authors of this theme also state this on their Themforest pages here:

hidden link
They state the following:

MyListing can be translated to any language, but it is not multi-language or WPML compatible yet

I also found an older ticket where I dealt with issues stamping from this theme. You can see it here:

https://wpml.org/forums/topic/%2f-pages-dont-get-redirected-after-clicking-flag-in-language-switcher/page/2/#post-6495065

Please contact the authors and urge them to join our Go Global Program. Details about it are here:

https://wpml.org/documentation/theme-compatibility/go-global-program/

We will happily cooperate with the authors to make their plugin officially compatible with WPML.

Please consider using another listing theme or plugin that is officially compatible with WPML. You may find what you need in our lists here:

https://wpml.org/theme-category/real-estate-en/
General theme list: https://wpml.org/theme/

https://wpml.org/plugin-functionality/directory/
https://wpml.org/plugin-functionality/real-estate/
General plugin list: https://wpml.org/plugin/

Regards,
Itamar.