Closed Lewiscowles1986 closed 8 years ago
This is an issue with permalinks and translation. Settings > Permalinks > save will fix it. It would be the same for any post type or taxonomy, e.g. translating the product category base.
Actually saving without manually overriding the permalinks does not fix (by manually overriding I mean specifying /produkt/ as a constant value rather than using the canned options
Additionally, doing a manually flush via code wouldn't be safe. Some rules could be excluded. Best to leave to user.
Actually saving without manually overriding the permalinks does not fix
Does is all other reports of this ever. The permalink is translated. Saving permalinks fixes the rules.
Again, saving the permalink Does not fix the issue unless I specify a manual string. Please stop being so dismissive
I tried saving without changing options. I tried changing to another option. Saving the permalinks did nothing unless a string constant was provided
Please stop being so dismissive
Don't be dismissive of my dismissal :p
Your rewrite rules clearly are not being updated. Whether thats multisite related or not I cannot be sure, but thats the issue here; rules need to be updated if the permalink base changes due to translation. That does not make this a bug.
Saving the permalinks did nothing
So if you change it to some random string, it still 404s? Then thats a clear sign that your rules are not updating.
Rules:
Link:
See if it 404s in your case.
changing to a random string works; however changing back from a random string expecting /produkt/ to work as it's the german translation for product, and where woocommerce is pointing to gives a 404.
And if you manually set to produkt?
I notice you're using language switcher plugins. What if those are setting /product/ because the backend lang us not german too?
If it's a plugin conflict; I can accept that; I am an advocate against too many plugins; it might-well-be something to do with multilingualpress, I will file a report with them also; perhaps they are doing something strange. As pictured (above) even when the back-end language is German; it seems to be a problem. I'll work it out, I wanted a bug report in-case it was a WooCommerce problem; I just knew that working around permakinks wasn't cutting it for me.
Setting it manually to /produkt/
, doing the same for categories and tags was my original work-around as mentioned in original report; the report is because that seems less than ideal, but it might not be a Woo problem.
With standard you're relying on translation. So thats product/ in english and produkt/ in german. The rules should save using whatever value is translated, but yes, as I said plugins could affect that especially with switchers involved.
Setting manually would be best if you never want it to change.
EXPLANATION OF THE ISSUE
Using WordPress 4.5.2 and WooCommerce 2.5.5 (probably prior versions also); If the language of a site changes it seems to break permalinks. Clicking on a link in a product category, or the main store redirects to a locale-specific string that returns 404
STEPS TO REPRODUCE THE ISSUE
SYSTEM STATUS REPORT
Steps to remit (at least temporarily)
/produkt/
as the product premalink prefix