Skip Navigation

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

Problem:
The client is using WPML with Elementor Pro on a WordPress site with different domains per language. The English domain (medicinepark.co.uk) redirects to the Romanian version and Elementor does not load when editing the English page.
Solution:
1. Visit https://medicinepark.com.ro/ and deactivate the WPML Multilingual CMS plugin. This will help determine if the issue is related to WPML.
2. Check https://medicinepark.com.ro/ to ensure it displays the Romanian content correctly without WPML.
3. Visit https://medicinepark.co.uk/. If it still displays the Romanian content, the domain setup is correct. If it redirects, contact your hosting provider to resolve the redirection issue.
4. Once the redirection issue is resolved and the domain correctly displays content without redirecting, contact us before reactivating WPML.

This solution might be outdated or not applicable to your case. 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 the issue persists, please open a new support ticket at WPML 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 0 replies, has 0 voices.

Last updated by tuncayO-2 2 weeks, 5 days ago.

Assisted by: Kor.

Author Posts
April 8, 2025 at 7:33 am #16907060

tuncayO-2

Background of the issue:
I’m using WPML with Elementor Pro on a single WordPress installation. My setup is as follows: Main domain: medicinepark.com.ro (Romanian), Translated domain: medicinepark.co.uk (English). WPML is set to 'Different domains per language'.

Symptoms:
When I try to edit a translated (English) page via Elementor, Elementor does not load.
The live site does not show medicinepark.co.uk; it redirects to the Romanian version.

Questions:
Why is medicinepark.co.uk redirecting to the Romanian version?
Why does Elementor not load when editing the English page?

April 8, 2025 at 8:36 am #16907508

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Here is the ticket and please let me know how it goes.

April 8, 2025 at 4:58 pm #16910469

tuncayO-2

Hello
AI forwarded me to check something in phpadmin part and recommenind me to change something:

icl_sitepress_settings

this line:
s:16:"language_domains";a:1:{s:2:"en";s:18:"medicinepark.co.uk";}

should be replaced with
according to chatgpt:
s:16:"language_domains";a:2:{s:2:"en";s:21:"medicinepark.co.uk";s:2:"ro";s:23:"medicinepark.com.ro";}

according to grok:
"language_domains";a:2:{s:2:"en";s:18:"medicinepark.co.uk";s:2:"ro";s:21:"medicinepark.com.ro";}

What do you say about it?

April 8, 2025 at 8:07 pm #16910889

tuncayO-2

I also found this video?
hidden link
It tells the problem is root.

April 9, 2025 at 6:15 am #16911437

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response. The video you mentioned is from 5 years ago and is no longer applicable to the latest version.

I’ve checked the domain hidden link and it’s still redirecting to hidden link, which should not be happening.

Let’s take a fresh approach and temporarily set WPML aside until we resolve the domain issue.

1. Visit hidden link and deactivate the WPML Multilingual CMS plugin. Once WPML is deactivated, this issue will no longer be related to the WPML plugin.

2. Next, check hidden link to ensure it displays the Romanian content correctly (without WPML).

3. Now, visit hidden link. If it displays the Romanian content, then the domain setup is correct. If it redirects to hidden link, there is an issue, and you will need to contact your hosting provider to resolve the redirection.

4. Once your hosting/domain provider has fixed the redirection issue and hidden link correctly shows the Romanian content without redirecting to hidden link, please reach out to me so I can confirm that the issue is resolved.

Do not activate the WPML plugin again until I have confirmed that everything is working properly.

April 9, 2025 at 7:42 am #16911707

tuncayO-2

What means redirection issue. If you more specific. Because it is redirected to other domain as in the documentation. If you be more specific. As I sent you in the screenshots all is ok. I did yesterday deactivating the WPML and activating again but same issue persist.

April 9, 2025 at 9:27 am #16912134

tuncayO-2

Here I am attaching the domain redirection settings. Please let me know if something is not ok. medicinepark.co.uk should go to english version of the medicinepark.com.ro but it is just redirecting to default page.

Screenshot 2025-04-09 at 12.25.36.png
April 9, 2025 at 9:28 am #16912163

tuncayO-2

And here is the settings of the WPML plugin.

1.png
April 9, 2025 at 5:55 pm #16915504

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. It looks like we're going in circles. Ok, let's try this again. I'll need to gather more information from your end on how the domain DNS is configured.

Current Settings
Domain hosted in Godaddy and you've pointed the medicinepark.co.uk domain to bluehost nameservers. In the bluehost medicinepark.co.uk domain settings, you've pointed the domain to the server IP.

Suggested settings
Domain hosted in Godaddy and point to the server IP directly. hidden link

Let's try to avoid using nameservers for this domain name medicinepark.co.uk. Contact godaddy if you're not sure how to configure it.

April 9, 2025 at 6:30 pm #16915664

tuncayO-2

I have request, Can a developer from WPML involve and check please. Today 3 different person check all settings from hosting and wordpress. All of them concluded same that WPML support should involve. Because from hositing part all is ok.

This is last message from the person:
'I have double-checked with the hosting support team, and everything is functioning correctly on their end. It would be advisable to contact the WPML support team to address this issue. They can provide guidance on the cause of the problem and may request login details to investigate further.'

Can you involve more please to solve the problem.

April 9, 2025 at 6:46 pm #16915686

tuncayO-2

There is an error like this in log related with this problem:

PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/LsTemplateDomainUpdater.php:37 Stack trace: #0 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/LsTemplateDomainUpdater.php(37): method_exists(Array, 'get_template_da...') #1 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/LsTemplateDomainUpdater.php(65): WPML\LanguageSwitcher\LsTemplateDomainUpdater->WPML\LanguageSwitcher\{closure}(Array) #2 [internal function]: WPML\LanguageSwitcher\LsTemplateDomainUpdater->WPML\LanguageSwitcher\{closure}(Array, 'wpml-legacy-dro...') #3 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(151): array_map(Object(Closure), Array, Array) #4 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array) #5 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array) #6 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array) #7 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array) #8 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/LsTemplateDomainUpdater.php(76): WPML\FP\Fns::__callStatic('map', Array) #9 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/LsTemplateDomainUpdater.php(13): WPML\LanguageSwitcher\LsTemplateDomainUpdater->runUpdate() #10 [internal function]: WPML\LanguageSwitcher\LsTemplateDomainUpdater->run(Object(WPML\Collect\Support\Collection), Object(wpdb)) #11 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/auryn/lib/Executable.php(42): ReflectionMethod->invokeArgs(Object(WPML\LanguageSwitcher\LsTemplateDomainUpdater), Array) #12 [internal function]: WPML\Auryn\Executable->__invoke(Object(WPML\Collect\Support\Collection), Object(wpdb)) #13 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/auryn/lib/Injector.php(641): call_user_func_array(Array, Array) #14 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/container/class-wpml-container.php(110): WPML\Auryn\Injector->execute(Array, Array) #15 [internal function]: WPML\Container\Container::execute(Array, Array) #16 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Array, Array) #17 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Maybe.php(106): WPML\FP\{closure}(Array) #18 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/ajax/Factory.php(38): WPML\FP\Just->map(Object(Closure)) #19 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPML\Ajax\Factory->WPML\Ajax\{closure}(Object(WPML\Collect\Support\Collection)) #20 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(257): WPML\FP\Right->map(Object(Closure)) #21 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(24): WPML\FP\Right->chain(Object(Closure)) #22 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(30): WPML\FP\Promise->resolve(Object(WPML\FP\Right)) #23 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(30): WPML\FP\Promise->resolve(Object(WPML\FP\Right)) #24 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(30): WPML\FP\Promise->resolve(Object(WPML\FP\Right)) #25 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(30): WPML\FP\Promise->resolve(Object(WPML\FP\Right)) #26 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(30): WPML\FP\Promise->resolve(Object(WPML\FP\Right)) #27 /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wp/classes/Hooks.php(50): WPML\FP\Promise->resolve(Object(WPML\FP\Right)) #28 /wordpress/core/6.7.2/wp-includes/class-wp-hook.php(324): WPML\LIB\WP\Hooks::WPML\LIB\WP\{closure}('') #29 /wordpress/core/6.7.2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #30 /wordpress/core/6.7.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #31 /wordpress/core/6.7.2/wp-admin/admin-ajax.php(192): do_action('wp_ajax_wpml_ac...') #32 {main} thrown in /srv/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/LsTemplateDomainUpdater.php on line 37
sitepress-multilingual-cms : Line 37

April 10, 2025 at 4:14 pm #16919799

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Could you please update your credentials here again? I'll share this with our 2nd Tier Support so that they can check and revert. Also, please share screenshots of your medicinepark.co.uk domain settings from GoDaddy and Bluehost.

April 10, 2025 at 6:46 pm #16920318

tuncayO-2

After 5 stressful days of trying find the problem. Finally after more than 10 interesctions with Bluehost, somebody told so easy that, Bluehost doesn't provide WPML seperate domain option. Many people from Fiverr, WPML experts etc... worked on it... Finally they told. Now i am moving to Rocket.net. So something....