Skip to content Skip to sidebar

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

Problem:
You are experiencing 404 errors on product category pages in your DE webshop when using the 'Smart OpenGraph by PixelYourSite' plugin, which is overwriting the WooCommerce product category slug, making it untranslatable by WPML.
Solution:
To resolve this issue temporarily, you can:
1. Change the WordPress Permalink structure to "Plain".
2. Disable the 'Smart OpenGraph by PixelYourSite' plugin if possible.
3. If you prefer to keep the plugin, go to WPML > String Translation, search for the product category slug "product-category", and delete its entry from String Translation to ensure the category base slug is not translated.

If these steps do not resolve your issue or if the solution becomes outdated, we 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 persists, 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 19 replies, has 2 voices.

Last updated by Andreas W. 4 years, 2 months ago.

Assisted by: Andreas W..

Author Posts
February 18, 2022 at 12:46 am #10607183

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

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

Hello Bart,

If you need the OpenGraph Plugin on the site you could also go inside the WordPress Settings and change the permalinks to "Plain".

This also solved the issue on my test.

Until now, I do not have any reply from the compatibility team about this issue, but I will be in contact shortly.

Best regards
Andreas

February 24, 2022 at 2:21 am #10652165

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

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

Hello Bart,

The issue here appears to be that the "Smart OpenGraph by PixelYourSite" plugin is overwriting the WooCommerce product category slug and as result is not longer translatable by WPML.

If you would like to avoid disabling the "Smart OpenGraph by PixelYourSite" plugin you could go to WPML > String Translation, search for the product category slug "product-category" and delete its entry from String Translation.

If the category base slug is not translated it would also work for now.

Example:

wordpress-278662-2444933.cloudwaysapps.com/product-category/test-a/

en.wordpress-278662-2444933.cloudwaysapps.com/product-category/test-a-en/

I will let you know once our team has more information.

In case you will no longer use the "Smart OpenGraph by PixelYourSite" plugin please let us know.

Best regards
Andreas

February 27, 2022 at 8:01 am #10671861

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

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

Hallo,

Zusatz zu meiner letzen Nachricht:

Wir können in diesem Fall momentan leider keine weitere Hilfe anbieten und nur empfehlen:

- den Slug nicht zu übersetzen, bzw. den gleichen Slug in allen Sprachen zu verwenden
- oder die Permalinkstruktur "Plain" oder "Einfach" zu verwenden

Für einen Fix zu diesem Problem benötigen wir die Kooperation des Plugin-Authoren, welcher sich unter folgendem Link in unserem Go-Global-Programm anmelden kann:

https://wpml.org/documentation/support/go-global-program/

Bitte leiten Sie diese Information weiter an:
hidden link

Mit freundlichen Grüßen
Andreas

March 2, 2022 at 9:28 am #10694301

bartV-47

Hello Andreas,

Thank you for looking into this. For us disabling the plugin is the only option, otherwise the URL structures will be changed.

I will contact Pixelyoursite about this and let you know.

Greetings,
Bart

March 2, 2022 at 7:59 pm #10700825

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch )

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

Hello Bart,

Thank you for your message and I hope the plugin author might consider reaching out to us in order to fix occurring issues between their plugin and WPML.

Please forward this link to them:
https://wpml.org/documentation/support/go-global-program/

Best regards
Andreas