This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bruno 5 months, 3 weeks ago.

Assigned support staff: Bruno.

Author Posts
April 24, 2019 at 11:45 am

noamK-2

Hello,

1. Our website's main language is English. Secondary is Hebrew.
2. We created a staging website using our host's (SiteGround) staging tool.
3. When we try to change staging website's language from English to Hebrew, using the language switcher, it starts to switch to the Hebrew website but than reverts back to the English website.
4. However, it seems to happen on some pages, not all. For example, it happens on Home page. It does not happen on this page - hidden link

5. It does not happen on the main website, only on the staging website.

6. When we contacted our host's technical support, this is what they wrote us:

6.1. "the reason why WPML is not working only on the staging domain name is because it is set per domain and the plugin's API is looking for the exact domain name which is krollconsultants.com, not staging1.krollconsultants.com and that is the reason it turns back the EN version.

6.2. I have gone over both Live and Staging websites and it seems that part of the website pages stay in Hebrew when navigated to. Therefore this is an intermittent issue.

WordPress is domain dependent, however, the Staging tool uses a combination of mod_hive and mod_substitute to make the same WordPress configured website open through a different URL. This rewriting appears to be breaking part of the functionality of the WPML plugin or its sub-set of complimentary plugins.

7. We do not have any active caching. No caching plugins and no caching on server side (Cloudflare deactivated).

Can you please help?

Please note: You will need to insert user and password to access the staging website and then a different user and password to access the staging dashboard.

For the main website, there is a front-end password which is similar to the staging website password.

For the main website's dashboard, the credentials are similar to that of the staging website dashboard.

Thanks,

Noam Kroll

April 24, 2019 at 5:48 pm #3675679

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you for contacting us. The WPML has a redirection option that is enabled. In WPML > Languages > Browser language redirect.

The activated option is the "Always redirect visitors based on browser language (redirect to home page if translations are missing)". Disabling this option does not appear to be done redirection.

This option will always redirect to the current language of your browser. If you are using the browser with the language in English, then the redirection will always be done.

Please, could you verify that following the above steps does the problem persist?

Thank you.