Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing an issue after changing WPML configuration to use different domains per language. The Live Composer plugin is not loading when editing a page using the .cat domain, and the WordPress administration top bar is not appearing on the .cat domain.

Solution:
We recommend the following steps to resolve the issue:
1. Navigate to WPML > Languages.
2. Under the "A different domain per language" option, ensure the "Auto sign-in and sign-out users from all domains" is selected and save the settings.
3. Go to "Settings > Permalinks" and resave the permalink structure.
4. Log out from your site and log in again to copy the session data and cookies to the secondary domain.
5. Clear the caches from your site and browser.
After completing these steps, the admin bar should appear in the secondary language domain.

Please note that the solution provided might be irrelevant due to being outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket at our support forum.

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.

This topic contains 1 reply, has 2 voices.

Last updated by Prosenjit Barman 1 year, 10 months ago.

Assisted by: Prosenjit Barman.

Author Posts
May 7, 2024 at 7:00 pm #15603745

josepI-2

Hi!

I've been using WPML for a long time but now I am facing an issue that I don't know how to solve.

Today I changed a WPML configuration in order to use different domain per each language. These are the domains:
- hidden link <- spanish version
- hidden link <- catalan version
- hidden link <- english version

Since today, it was working fine configured using subdirectories: .com/es, .com/ca and .com/en. But client asked me to change it to domains.
To do the change I used this doc -> https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/

The change apparently worked fine, but there is one issue with Live Composer plugin that I can not solve.

So, the problem here is that when I open this Live Composer to edit a page using the .cat domain, the tool is not loaded (If I'm not wrong it works opening an iframe, or something similar), but when I open it using the main domain (.com) it works well.

Also, the wordpress administration top bar is not appearing on .cat domain.

I tried to solve it using these docs but it did not work.
- https://wpml.org/errata/different-domain-per-language-and-nginx-as-a-reverse-proxy-is-not-supported/
- https://wpml.org/errata/elementor-custom-fonts-cause-cors-policy-issue-with-different-domains-per-language/

What is the link to your site?
The links to my site are:
- hidden link
- hidden link
- hidden link

Thank you very much for your help

editing_post_com_domain.jpg
editing_post_cat_domain_error.jpg
live_composer_working_com_domain.jpg
live_composer_error_cat_domain.jpg
May 9, 2024 at 7:18 am #15608870

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having and will try my best to assist you in this matter.

The issue you're having usually occurs if the site cookies or login session data are not copied to the secondary language domain. Please try the following steps and I hope it will help to solve the issue.

- Please go to WPML > Languages
- Under the "A different domain per language" option, you'll find an option named "Auto sign-in and sign-out users from all domains". Make sure that option is selected. Save the settings.
- After that go to "settings > permalinks" and resave the permalink structure.
- Once done, logout from your site. Then login again. By doing so, the session data and cookies will be copied to the secondary domain.
- Clear the caches from your site and browser and then check again. The Admin bar should appear in the secondary language domain.

Please let me know if the information above helps or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

May 13, 2024 at 6:58 am #15618589

josepI-2

Thank you very much. It worked for me!

Regards