Site-kit-wp: WPML Compatibility: switching language from top admin bar disconnects and prompts setup

Created on 1 Oct 2020  路  26Comments  路  Source: google/site-kit-wp

Bug Description

When using the WPML plugin, switching languages from the top admin bar disconnects Site Kit and prompts the setup process due to detecting a change in the URL:

notice to reconnect after change in URL

Steps to reproduce

  1. Install and configure the WPML plugin
  2. Change the language selection from the top admin bar
  3. See Site Kit disconnect and notice to reconnect appear

Additional Context

  • PHP Version: 7.3.16
  • OS: MacOS
  • Browser: Chrome
  • Plugin Version: 1.17.0
  • Device: MacBook Air

Video: https://recordit.co/vLmmvjusME

Related support topics:

https://wordpress.org/support/topic/site-kit-asks-me-to-reconnect-all-the-time/
https://wordpress.org/support/topic/site-kit-asks-me-to-be-reconnected-when-change-language-flag-wpml/
https://wordpress.org/support/topic/wpml-issue-17/


_Do not alter or remove anything below. The following sections will be managed by moderators only._

Acceptance criteria

Implementation Brief

Test Coverage

Visual Regression Changes

QA Brief

Changelog entry

Bug

Most helpful comment

Thanks for the feedback @xanxano, @joecarletto & @Nerdiyde. We are working to address this issue in https://github.com/google/site-kit-wp/issues/2131.

All 26 comments

Hey Guys, i have the same issue. I'm not using WPML but WPGlobus. Just wanted to let you know. :)

Hi guys, I've the same bug and I'm using WPML

Hi!
The same thing, wpml with one domain per language...
We are waiting for the updates! ;-)

Thanks for the feedback @xanxano, @joecarletto & @Nerdiyde. We are working to address this issue in https://github.com/google/site-kit-wp/issues/2131.

Hi there! Just a quick update that we'll be reaching out to multilingual plugins to help with the solution.

@Nerdiyde I've been trying to recreate the issue with WPGlobus, but have yet to see it occur. Could you share more about your configuration and how to reproduce the issue? Thanks so much!

@ernee Hey,
hmm, I did not really do anything special to provoke this error. :/ Not even sure that the issue is related to WPGlobus. Just mentioned it because others mentioned WPML as a possible source. Maybe its related to an other plugin? Please tell me what other information might be helpful? :) Thanks for fixing this btw. :)

@Nerdiyde thanks for the reply! It would be great to get more info about your setup. Could you provide your Site Health information through this form (note: you may want to place the support forum topic you replied to in the corresponding field)?

@ernee You should have received my site health infos. :)

@Nerdiyde thanks for providing the info! So, I've been testing your theme, several plugins you have, and some configurations but haven't been able to recreate the issue you experienced. Could you provide/ try the following to help us narrow down what could be the source of the issue on your site:

1) It doesn't seem like one can switch the WP admin languages in WPGlobus when you have selected a site language and user language in the WordPress settings (in your case it is German - DE). Do you recall a particular action that causes Site Kit to disconnect?

2) Could you use the Health Check & Troubleshooting plugin and enable its troubleshooting mode. This mode disables active plugins and switches to a default theme safely since it only affects the experience of the logged-in user.

Hi, I have the same problem with very often reconnecting Site Kit and using WPML. I am using Google Tag Manager as connector for Google access codes. Before the codes were in the templates and I had no problem. But with every update of the templates I lost access, so changed to Tag Manager. It would be fine to solve this "reconnect" problem, because WPML and Tag Manager are great and very common tools. Thanks

Having same issue, have the last WP installation and using Site Kit by Google 1.18.0, WPML Version 4.4.3 every time I change the language in the top bar it asks to reconnect.

Thanks @hifi-vd and @ered15 for reporting! We've reached out to the team at WPML to help with a fix. We'll keep this issue updated on the progress.

Finally found my friends with the same issue <3

Hey guys, I'm using WPML and I have the same problem.

Hi everyone, thanks for your patience while we worked on a solution for this. We added a filter into Site Kit and are working with WPML to ensure we are compatible. For full compatibility, you will need to be using the latest version of Site Kit and the next version of WPML - the fix should go out with WPML 4.4.5 (next release).

Well done, @adamsilverstein!

馃憢 Hello reporters - the new WPML version updated has started rolling out. When you have the new (WPML 4.4.5) version installed, can you please re-check Site Kit and ensure you correctly remain connected when switching languages?

Reported in this support topic, it appears the issue persists when selecting "All languages" from the top admin bar language switcher (Site Kit disconnects). Here is a video.

Thanks @ernee - I have contacted WPML about this issue and we will look into an appropriate fix.

WPML is planning to release the fix for the remaining issue in their next version 4.4.7. We'll follow up when it is available.

I'm having the same issue, but I'm using TranslatePress. Seems like most translated sites suffer from this issue...
If there will be any solution I'd be happy to hear it.

WPML version 4.4.7 has just been released with the remaining fix to address the issue with the "All languages" admin bar setting.

@SamManders thanks for reporting. We've been trying to replicate the issue using TranslatePress. Could you send us a recording and/ or a detailed step-by-step of what causes the issue on your site? You can use an app like Recordit to make a video. Many thanks!

Closing this issue since it is resolved with WPML.

We have a few other multilingual plugins we'll be reaching out to as well. If you haven't already, please open a support topic if you are experiencing this issue with another plugin (not WPML).

Hey guys,
I did install the patch @adamsilverstein provided. Thanks a lot for your work! :)
Do you need anything as some kind of "success report"?
Thanks and best regards
Fab

Here is a "mini plugin" you can install if you are still experiencing an issue with your install: https://gist.github.com/adamsilverstein/199f3a4cfe8b4ccc881713a7ece05438

@Nerdiyde Great to hear it. We'll certainly keep you in mind should we be looking for user case studies or blog posts. If you haven't already done so we'd love to hear your feedback.

Was this page helpful?
0 / 5 - 0 ratings