Make WordPress Core

Opened 17 months ago

Last modified 6 weeks ago

#39587 new defect (bug)

link problems with language settings

Reported by: aansel Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 4.7
Component: I18N Keywords:
Focuses: Cc:

Description (last modified by ocean90)

Dear Developers!

After WP versiion 4.7 i think i found a bug it is not listed.

In version 4.7 we have the option to have a X site language but with Y language admin dashboard. (clever idea Cheers for it!!)

But if i use the dashboard in Y language >>> it changes the links (after you edit something) language to Y language. (maybe it is related ~only in/with woocommerce)

for example the link changes from "product" to "termek" or vica-versa...

makes many pages unreachable...

let me know if you need any further information or help!

Very Best regards!!


Change History (8)

#1 @SergeyBiryukov
17 months ago

  • Component changed from General to I18N
  • Keywords reporter-feedback added

Hi @aansel, welcome to Trac! Thanks for the report.

Do you use a multilingual plugin? Does it still happen with all plugins disabled and a default theme (Twenty Seventeen or Twenty Sixteen) activated?

#2 @ocean90
17 months ago

  • Description modified (diff)
  • Keywords reporter-feedback removed

This happens because the rewrite slug of the post type product is translatable, see https://github.com/woocommerce/woocommerce/blob/7873a328ce871668143465f605df93b1683b0795/includes/class-wc-post-types.php#L258.

#3 @SergeyBiryukov
17 months ago

#39416 was marked as a duplicate.

#4 @aansel
17 months ago

okay Guys!!

sorry to took so long to reply! Im not sure im understand well what You wrote?! My post is a duplicate?! (becose 39416 is another post)

Please tell me if you need any further info i will reply lot quicker!

Wish You the best!! Ben

#5 @grapplerulrich
17 months ago

No the other ticket was marked as a duplicate of this ticket.

#6 @ocean90
12 months ago

#41116 was marked as a duplicate.

#7 @bradadams
7 months ago

  • Severity changed from normal to major

This is a super critical issue, I'm unsure how it's not been addressed yet 🤔. I created the https://core.trac.wordpress.org/ticket/41116 ticket for this 5 months ago and this one has nearly been around for a year.

We just spent like 40 minutes scratching our heads as to why all our localized permalinks went down the plughole after we re-saved them. The steps were:

  1. Our user account has language set to English.
  2. Created a new site for German in multisite setup.
  3. Localized some strings that are used in permalink rewrites.
  4. Visited the permalink page on new German site, and saved (to refresh permalinks).
  5. Posts across the site show the new permalink (with localized URL) on frontend, but visiting them returns a 404.
  6. Visiting the posts screen in admin, and clicking "view" on a post takes you to the correct URL (using English permalink localization in this case).

So of course we're like wtf, why's it showing english if all settings are clearly pointing to German/Deutsch?

Luckily we remembered this issue, and just had to change our user language to the relevant sites language before making the re-save on the permalinks screen.

If someone can point me in the right direction I'll try and fix it myself, either way, over the holidays I'll see if I can figure out what's causing it...

Last edited 7 months ago by bradadams (previous) (diff)

#8 @ocean90
6 weeks ago

#43991 was marked as a duplicate.

Note: See TracTickets for help on using tickets.