Skip to content Skip to sidebar

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

Problem:
The client was experiencing 404 errors on Spanish product category pages on a multilingual site using WPML, despite the products being visible and unique slugs for categories being set. The default language was Dutch, and the issue persisted even after re-saving permalinks and disabling caching/SEO plugins.
Solution:
We identified that the issue was due to the client setting a custom base but using a different shop slug. We recommended using the original shop page slug 'winkel' and the regular WooCommerce permalink setting 'Shop base with category'. We adjusted the permalink settings from Settings > Permalinks to resolve the issue. After making these changes, the Spanish product pages began to display correctly.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your 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 problems persist, please open a new support ticket at WPML support forum for further assistance.

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 17 replies, has 0 voices.

Last updated by Dražen 1 month, 2 weeks ago.

Assisted by: Dražen.

Author Posts
September 11, 2025 at 9:39 am

ricardoA-6

Background of the issue:
I am running a multilingual site with WPML. The products are visible in Spanish, but when I click on a Spanish product category (for example /es/categoria-producto/...), I get a 404 error. Dutch is set as the default language. Slugs for categories in Spanish are unique and not duplicated. I have already tested re-saving permalinks and disabling caching/SEO plugins, but the issue persists. My goal is for Spanish product category pages to display normally, just like in Dutch and English. I have followed the WPML documentation on taxonomy translation and checked the category slugs. Despite following this, the issue remains. Link to a page where the issue can be seen: hidden link. I expected to see: Link die wel werkt: hidden link. Instead, I got: hidden link

Symptoms:
404 error on Spanish product category pages.

Questions:
Why am I getting a 404 error on Spanish product category pages?
How can I resolve the 404 error for Spanish product categories?

September 11, 2025 at 9:59 am #17393551

Dražen
Supporter

Languages: English (English )

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

Hello,

here is the ticket, please let me know once staging site is ready and I will continue to check.

If you have troubles, let me know and I can take a copy of your site and check like that.

Regards,
Drazen

September 11, 2025 at 10:17 am #17393602

ricardoA-6

Here is the link for the staging website, took a little longer than expected: hidden link

September 11, 2025 at 11:32 am #17394079

Dražen
Supporter

Languages: English (English )

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

Hello,

I checked and it seems something was blocking the save of slugs, could be security plugin, hosting firewall or custom code.

I am not sure, since now it works fine in staging site:

- hidden link

What I have done, is switched to WP default theme, disabled all plugins except for WPML plugins and WooCommerce. Went to WooCommerce Multilingual & Multicurrency > Store URLs > Clicked pencil for ES for product-categorie and just clicked saved and it works fine now.

Please try same on your production site.

Regards,
Drazen

September 11, 2025 at 12:10 pm #17394172

ricardoA-6

Hi I tried it and indeed the menu items are working but now I get the 404 error code when you click on a product page. Is there a possibility for you check if we can solve this?

Thanks in advance

Schermafbeelding 2025-09-11 om 14.09.03.png
September 11, 2025 at 12:13 pm #17394190

Dražen
Supporter

Languages: English (English )

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

Hello,

glad to hear that helped,

As I am not familiar with your website, please share more information of your steps and URL where such issue happens? Did you try same steps and resaved other store slugs?

Regards,
Drazen

September 11, 2025 at 12:31 pm #17394276

ricardoA-6

When you for instance click on one of the now appearing categories you see several products that fall within that category. When you click on one of those categories the 404 error code appears again.

I will now again install a WP basis theme de-active the not necessary plugins and do the same steps of saving links of products to see if this works. give me a minute

September 11, 2025 at 12:35 pm #17394294

Dražen
Supporter

Languages: English (English )

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

Hello,

I have tried to follow your instructions but seems it works fine for me.

Video: hidden link

Sure, please try same and if you still have issue, share exact steps and URLs with me.

Thanks,
Drazen

September 11, 2025 at 12:39 pm #17394297

ricardoA-6

Unfortunately this did not work, in the screenshot you can see the products that fall within one of the categories. If you click on a random product the 404 error code appears again.

I really hope you can help me with this.

Schermafbeelding 2025-09-11 om 14.37.57.png
Schermafbeelding 2025-09-11 om 14.38.32.png
September 11, 2025 at 12:51 pm #17394364

Dražen
Supporter

Languages: English (English )

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

Hello,

I am sorry, but screenshot is not helpful, I am not aware where this is.

Please share URL in staging site of the page where I can see and reproduce error, so I can check it out.

Regards,
Drazen

September 11, 2025 at 1:07 pm #17394440

ricardoA-6

Hi,

Now I see the problem, on the staging website the products appear when you click on them, while in the 'real' website this is not the case, so I can not sent you a link of the problem on the staging website only on the actual one:

hidden link

Hopefully this can be fixed

September 11, 2025 at 1:16 pm #17394487

Dražen
Supporter

Languages: English (English )

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

Hello,

okay, please then delete existing staging and create new one, so I can safely check the issue and see what is wrong.

Regards,
Drazen

September 11, 2025 at 1:19 pm #17394490

ricardoA-6

Okay I will, one second

September 11, 2025 at 1:24 pm #17394503

ricardoA-6

Here you go sir: hidden link

September 11, 2025 at 2:06 pm #17394686

ricardoA-6

Could you find the underlying problem? I was unfortunately not able to figure it out.
Looking forward to your answer.