WordPress.org

Ready to get started?Download WordPress

Forums

Multisite Language Switcher
[resolved] Used to work but disappeared (10 posts)

  1. So I had a multisite installation with 2 sites: example.com and example.com/fr/ for the French version. Several site and network administrators, a few editors and authors (we all work in the same office). I installed and configured Multisite Language Switcher and it worked fine, people were able to associate pages and posts in the back-end (I wasn't displaying anything on the front-end yet).

    Then, some work was done directly in the DB by a colleague; data was imported and manipulated, and a slew of other subsites were created (none of which has the plugin activated).

    At some point, Multisite Language Switcher was deactivated somehow. I do not know how. Was it one of the other administrators who inadvertently deactivated it? I doubt it, but possible. Did it have something to do with the DB manipulation? Quite possible.

    So I reactivated the plugin on example.com and example.com/fr/. Everything is normal in the /fr/ site (posts/pages can be associated to their English counterparts, the MLS settings page shows both languages/sites), BUT on the main site, there are 2 problems:

    1. The MLS box on the post/page edit screen says "You should define at least another blog in a different language in order to have some benefit from this plugin!"
    2. The MLS settings page does NOT show the FR, only Example Site / us (presumably this means us-EN).

    So I am at a loss as to what went wrong and what to do. My colleague who is better than me at understanding the DB says that the old data for the EN site is still there; so, for some reason the plugin doesn't see it anymore or something.

    So, any suggestions as to what I might do or how I might troubleshoot this?

    Thanks!

    http://wordpress.org/extend/plugins/multisite-language-switcher/

  2. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    Please check first if you have the correct language settings in "General settings" of the English and the French blog. The problem seems to be there ...

  3. Hmm. So the French site is configured as French on the Settings screen, and the English site is configured as English (I saved both just to make sure the setting "sticks"). However, on the MLS settings page, in the English site is still says "Example site / us", where the French site says "Example site / fr_FR". Shouldn't is say "us_EN"? Why would it NOT say that? Interesting.

    Ok, so what's next to look at?

  4. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    There is no language-file for the English version of WordPress. The API will not return anything when you ask for the language and the Multisite Language Switcher returns just 'us'. So you can take that as normal.

    Could you save your Multisite Language Switcher again? Just for to be sure.

  5. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    Forget what I said. I red your first post again and I think I got it.

    There is an open issue with "Multisite Language Switcher" and more then one administrator. You added a new admin which is now first in the list of the administrators and has just access to example.com but no access to example.com/fr, right?

    If so there are 2 possibilities:

    1. Give him/her access to the fr-blog to or
    2. Override the blog collection

  6. Hi!

    Thanks for that idea, but I don't think that's the issue. I just checked with my own account and another account which is also an administrator. We are BOTH Super-admins AND Site administrators on the English and French sites. We both see the same thing as described above: no fr_FR on the English side, yet I can associate English posts to French posts on the French side.

  7. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    Is there another admin, or not? What you can see or not is not important for the plugin which just tries to collect (or "guess" in this special case) the relevant blogs in the network.

    What about the second option? You could give it a try ...

  8. Ah ha! Thanks to you, I found it!

    My English site had 5 site admins, and my French site had only 4. I removed the extra site admin from the English site, and Boom! Everything is now working as expected and as it should!

    So now on re-reading your last post from yesterday, I understand better what you meant. That's an odd bug, isn't it?

    So my problem is fixed now, and I thank you very much for your help. before marking this as "Resolved", do you want any further information from me to help you fix this bug permanently?

  9. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, this is a bug and there will be for sure a solution in the next version. If you have any ideas let me know ... https://github.com/lloc/Multisite-Language-Switcher/issues/35

  10. Hmm, no ideas right now, sorry. But thanks for the plugin and your help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.