BuddyDev

Search

[Resolved] Buddyblog Pro – 404 error when submitting in second language

  • Participant
    Level: Master
    Posts: 152
    Hugo Callens on #38528

    I have a multilingual site with 2 languages, NL and FR.
    Buddyblog Pro works well in the main language, but when I submit a post in the second language I get a 404 error: the url of the newly created post contains the wrong path.

    After submitting or updating the post in the primary language I get something like https://domain.com/nl/leden/admin/diary/edit/92349/?updated=1

    where leden is the dutch translation of members and diary is the custom post type.

    After submitting or editing a post in the second language (French) I get
    https://domain.com/fr/leden/admin/diary/edit/92361/?updated=1 which causes a 404 error.

    The post however is recorded correctly.
    When I change the path to https://domain.com/fr/membres/admin/diary/edit/92361/?updated=1
    where membres is the French translation of members the post is correctly displayed.

    Please help me to fix this.

  • Participant
    Level: Enlightened
    Posts: 22
    Anu Sharma on #38532

    Hi Hugo,

    Thank you for reporting this issue our support team will get back to you soon.

    Regards
    Anu

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #38552

    Hi Hugo,
    It seems the issue is with WPML not translating the user’s profile url in ajax mode.

    We are using this function for generating user profile url

    
    bp_core_get_user_domain( $user_id )
    

    In my opinion, the translation plugin does not translate it in case of ajax request(publishing is done via ajax request).

    Can you please check the same with the plugin developer?

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 152
    Hugo Callens on #38563

    Hi Brajesh,
    I found a solution: I set the slug of the members page in both languages to “members” instead of translating them. This solved the problem.

    Regards
    Hugo

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #38568

    Hi Hugo,
    That’s a good workaround for now.

    Regards
    Brajesh

The topic ‘ [Resolved] Buddyblog Pro – 404 error when submitting in second language’ is closed to new replies.

This topic is: resolved