• sbrunner

    (@sbrunner)


    Hi everyone, I hope someone can help me!

    I have the following problem: I run a multisite with 8 languages (soon 9) and every time I edit a page (even if I only correct the spelling of a single word), the connection to some (seems random) corresponding pages in ohter pages gets lost. The same error occurs when I simply go on a pages’s backend, edit nothing but click “update” to save. Some connections get lost somehow.

    Anyone has a similar experience and perhaps a solution?

    Thanks a lot!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dennis Ploetner

    (@realloc)

    There are 2 possible scenarios:

    • The websites are not tied together with the same “Reference User” -> check the plugin’s settings
    • Some of the websites have the same language (region_code) set -> check the websites’ settings
    Thread Starter sbrunner

    (@sbrunner)

    Aah, vielen Dank!

    For future reference / other users like me:

    • I have only one user set up (as of now), so that wasn’t the problem
    • Among the 8-9 languages, there are several English languages (en_US, en_GB, en_ZA, en_INT), where en_INT is a custom language to reflect the seperate companies, causes and legal requirements cookie-wise (en_INT is for EU)
    • seems I neglected to edit the content of the custom .mo file for en_INT (shame on me), so it seems it was still recognized as the English language file I copied and renamed it from; after editing it, it seems to behave more stable (I’m still testing)
    • I doubt this will be update-stable, sadly.

    In this context I have a request: In the WordPress language settings, the dropdown always shows the variant of the language you chose (e.g. English (UK) or English (South Africa), but somehow MSLS doesn’t do that, it just says “English”, except for American English for some reason. Perhaps this can be added in MSLS as well in the future?

    Update after some testing and editing: It still loses connections, especially between English (UK), English (US) and English (South Africa) (lang codes en_GB, en_US, en_ZA)

    • This reply was modified 1 month ago by sbrunner. Reason: Spelling and Update after Editing / Testing
    Thread Starter sbrunner

    (@sbrunner)

    Another Update or rather an example: When I edit a page in the Italian multireddit, in all the other multireddits the connection to the Italian page (I just edited) is gone. On the Italian page itself, the connections are still OK.

    Plugin Author Dennis Ploetner

    (@realloc)

    MSLS uses lots of the WordPress API functions. So this bug has its roots in WordPress core:

    If you look into the WordPress core -> http://github.com/WordPress/wordpress-develop/blob/6.9/src/wp-admin/includes/ms.php#L633-L673, it just prints English in case it is different from American or British English. But this not the whole problem. It creates an array with keys (en_US, en_GB, and en). To visualize what I mean:

    $output = array(
    'en_US' => 'American English',
    'en_GB' => 'British English',
    'en' => 'English',
    );

    This means it would work for 3 English websites but fails from with 4. The connections should work in any other case. I had similar setups with lots of languages.

    Thread Starter sbrunner

    (@sbrunner)

    Hm, so the text shown in the Dropdown is not altered by MSLS? Strange. Thanks for the heads-up!

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.