WPML Compatibility

This topic contains 14 replies, has 3 voices, and was last updated by  Kiran 7 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #369688

    kairei
    Expired Member
    Post count: 78

    I created a custom post type and when it tried to send me to the detail page I get this:

    マッサージ.com redirected you too many times.
    Try clearing your cookies.
    ERR_TOO_MANY_REDIRECTS

    If found some other support posts about this but no solutions for my case. I narrowed it down to the WPML plugin, which I thought you were compatible with. If I disable that plugin, all is well, re-enable and get the ERR_TOO_MANY_REDIRECTS error again. I’m going to ask them too but wondered if you’ve seen this specifically with them before? Any debugging steps I can take?

    Thanks!

    #369689

    kairei
    Expired Member
    Post count: 78

    Btw, an example URL is:

    https://マッサージ.com/therapists/日本/東京都/東京/指圧/私のテスト/

    I have WPML disabled at the moment so it works fine but not sure if there are any potential issues with using Japanese locations as I’ve done above.

    #369690

    kairei
    Expired Member
    Post count: 78

    Also, other pages on the site seem to work fine with WPML enabled, it is just the listing detail page.

    #369696

    kairei
    Expired Member
    Post count: 78

    So, I used your permalink settings to just have it use an URL like this:

    /therapists/私のテスト/

    which is just the custom post type slug and the listing title. With those settings, with WPML enabled, I don’t get the redirect issue but a 404. With WPML disabled, all is still fine with these permalink settings.

    #369710

    Guust
    Moderator
    Post count: 29970

    Please make sure all your GD and WPML plugins are up to date.
    Then post your URL and WP admin details in a private reply with any additional details and I’ll will get Kiran to look at your question after the weekend.

    Thanks

    #369845

    kairei
    Expired Member
    Post count: 78

    I’ve been trying a bunch of stuff and found that if I edited one of the Therapist listings from the admin site, there is a a “Multilingual Content Setup” box at the very bottom and if I check the “Make ‘Therapists’ translatable” box, it works. Not just that one therapist, but all of them. Not sure if I missed that in the setup instructions somewhere, but is that supposed to be a required step?

    #369850

    kairei
    Expired Member
    Post count: 78

    This also seems settable via WPML settings directly at “WPML > Translation Management > Multilingual Content Setup > Custom Posts” and setting the radio button to “Translate” for my custom “Therapists” type. This seems more intuitive since you set it here and it affects all listings.

    However… while confirming that this was in fact the same setting I’d adjusted on an individual listing, I set that same value above to “Do Nothing” and everything still worked. So, now it seems that this isn’t the setting that fixed it after all, or that by turning it on once there was some side effect, perhaps. While I am 99% sure I tested my URLs and they didn’t work, then changed the setting above on an individual listing and them my URLs immediately worked, it is possible I did something else that was the actual fix.

    In any event, the immediate issue is fixed so I’m happy and can move on, but I’m very confused so if you have any insight, I’d love to hear it.

    #369867

    kairei
    Expired Member
    Post count: 78

    I have another support ticket to translate my custom post type slug:

    https://wpgeodirectory.com/support/topic/multi-lingual-custom-post-type-slugs/

    After translating my custom type’s slug (the /therapists/ part above) I’m back to the same issue of “too many redirects.” No amount of tinkering with the various settings seems to be solving it.

    I’ll post temporary admin credentials privately.

    #369868

    kairei
    Expired Member
    Post count: 78
    This reply has been marked as private.
    #370386

    Kiran
    Moderator
    Post count: 7069

    Hi Brent,

    Please check now.

    I have re-scan post type slug languages and re-save translation for slugs in String Translation. Now seems it working fine.

    Let us know.

    Thanks,
    Kiran

    #370392

    kairei
    Expired Member
    Post count: 78

    Yes, it is much better now, thanks! Can you please explain exactly what you did? How do you “re-scan post type slug languages” and “re-save translation for slugs in String Translation?”

    I noticed the breadcrumb menu on the listing page wasn’t translated so I re-translated “Therapists” item in WPML string translation and the breadcrumb displays correctly but is still linking to /therapists/ instead of /セラピスト/. Is there something else to re-scan or save that would affect this?

    I also noticed a new translatable string with name “URL slug: gd_therapist.” Do you know where that came from and how it is different from the one with name “URL slug: therapists” or the one with no name and context “URL slug?” You can see the 4 that I’m seeing by searching on “therapists” in WPML string translation.

    #370395

    kairei
    Expired Member
    Post count: 78

    I also see a “Query Monitor” panel showing up. Is that something you turned on? How can I turn off? Sorry, still quite new to wordpress…

    #370514

    Kiran
    Moderator
    Post count: 7069

    Hi Brent,

    Q1
    <
    1). In WPML -> Translation Management -> Multilingual Content Setup -> Custom posts -> Therapists Untick “Translate” & ticked “Do nothing” -> Save
    2). In WPML -> String Translation -> Search for: “therapists” exact matched slug and delete strings
    3). In WPML -> String Translation -> Search for: “セラピスト” exact matched slug and delete strings
    4). In WPML -> Theme and plugins localization -> Scan theme for strings
    5). In GeoDirectory -> Custom Post Types -> Edit gd_therapist -> change language to English from top admin language switcher -> Save
    6). In WPML -> Translation Management -> Multilingual Content Setup -> Custom posts -> Therapists Tick “Translate” & untick “Do nothing” -> Tick “Use different slugs in different languages for Therapists.” -> Change original language to English -> Add “セラピスト” in Japanese slug -> Save
    7). In WPML -> String Translation -> Search for: “therapists” exact matched slug and add “セラピスト” for Japanese -> Tick “Translation is complete” -> Save
    8). Settings -> Permalinks -> Update
    9). Visit any listing url at front end, check it working or not if it not working then do step 7).

    Q2
    <
    I can’t recreate that issue on my test site, not sure why breadcrumb doesn’t have translated slug. We have some fixes in our development version https://github.com/GeoDirectory/geodirectory/commit/6d53d3f6620b550118e47fea67860296fe1066f0
    Let us provide FTP details, so we try to update our patch of fix to your site if it can solve problem otherwise we will check more.

    Q3
    <
    “URL slug: gd_therapist.” & “URL slug: therapists” translation should be same. gd_therapist is post type name & therapists” is a post type slug. Save same translated slug for both.

    I used Query Monitor for debugging, now i deleted it.

    Thanks,
    Kiran

    #371594

    kairei
    Expired Member
    Post count: 78

    I can’t recreate that issue on my test site, not sure why breadcrumb doesn’t have translated slug. We have some fixes in our development version

    So, on your dev version the slug used by the breadcrumb link is using the translated slug? Is it possible to create a duplicator package of the site and bring it local and see if it can reproduce?

    #371634

    Kiran
    Moderator
    Post count: 7069

    Hi Brent,
    Yes in my test site the slug is translated in breadcrumb links.
    You can create test site from your current site and use there our development version of GeoDirectory plugin https://github.com/GeoDirectory/geodirectory.
    OR
    Let us provide FTP details, we will try from our side.

    Kiran

Viewing 15 posts - 1 through 15 (of 15 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket