Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 15 replies, has 2 voices.

Last updated by Long Nguyen 1 month, 3 weeks ago.

Assigned support staff: Long Nguyen.

Author Posts
January 4, 2023 at 12:36 am #12748133

sebastiaanV-11

This ticket was closed but not resolved: https://wpml.org/forums/topic/elementor-pro-license-mismatch-when-using-multiple-domains/page/2/

Andreas said we may have to talk with Elementor team, but this has nothing to do with them. Because other plugins that verify the license key through the domain give the same issues, see uploaded image.

Issue keeps coming back. What should we do?

chrome_T2TqqdgHf6.png
January 4, 2023 at 8:02 am #12749345

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi there,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

If you want to open a new ticket here, please share your staging site credentials (wp-admin and FTP) and I will ask my colleague to take a closer look and perform some tests. And please let me know the steps when you do something then the default domain redirects to the secondary domain.
If you want to reply to the old ticket, I can help you to open it.

Your next reply is set to private to share the info.
❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: 
https://wordpress.org/plugins/duplicator/

Look forward to your reply.
Thanks

January 5, 2023 at 2:34 am #12755397

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thanks for your feedback.

Can you please share some steps that the domain redirects to the second one when you edit something in the admin area? I don't see how could it be.
Please keep in mind that, WPML does not prevent you from accessing the admin area with the second domain. If you try to change the domain in the URL by typing, you can still work in the admin area with the second domain.

On your site, I see that when you switch the language in the frontend to view the translation with the second domain then you go back to the admin area and continue editing. Now you are in the admin area with the second domain.

To avoid this issue, I recommend editing or going back to the admin area in the default language. I'm also discussing this issue with the 2nd tier support if there is a solution for this issue and I will update you as soon as I have any information.

Regards.

January 5, 2023 at 1:54 pm #12758769

sebastiaanV-11

Hi Long,

I am not sure what triggers the other domain in the backend, but one thing I do know is that whenever I want to edit something in Elementor, it will load the editor in whatever domain belongs to the language that you're editing. So let's say you want to edit the homepage in English, it will open the editor on the .eu domain. And when you want to edit the Dutch homepage, it will open the editor in the .nl domain. Other than this, I never realize what exactly triggers the other domains in the admin area, but I do know that whenever I am working in the admin area I randomly see the other domains triggered in the admin backend. like, suddenly I am in .nl/admin and then suddenly on .eu/admin.

January 6, 2023 at 1:53 am #12761653

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

I'm discussing this issue with the 2nd tier support about this issue and I will update you as soon as I have any information.

Regards.

January 11, 2023 at 8:14 am #12791575

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I've escalated this issue to our development team. I'll update you as soon as I have something to share.

Thanks and have a nice day.

January 11, 2023 at 9:20 pm #12799115

sebastiaanV-11

Hello. Thanks for escalating. Please be advised of this fatal error when I attempt to edit an elementor footer (we use different templates for each language):

[11-Jan-2023 21:15:56 UTC] PHP Fatal error:  Uncaught TypeError: ElementorPro\Modules\ThemeBuilder\Classes\Conditions_Cache::add(): Argument #2 ($conditions) must be of type array, string given, called in /home/***/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-cache.php on line 135 and defined in /home/***/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-cache.php:29
Stack trace:
#0 /home/***/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-cache.php(135): ElementorPro\Modules\ThemeBuilder\Classes\Conditions_Cache->add(Object(ElementorPro\Modules\ThemeBuilder\Documents\Footer), '')
#1 /home/***/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-manager.php(298): ElementorPro\Modules\ThemeBuilder\Classes\Conditions_Cache->regenerate()
#2 /home/***/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-manager.php(168): ElementorPro\Modules\ThemeBuilder\Classes\Conditions_Manager->save_conditions(30066, Array)
#3 [internal function]: ElementorPro\Modules\ThemeBuilder\Classes\Conditions_Manager->ajax_save_theme_template_conditions(Array, Object(Elementor\Core\Common\Modules\Ajax\Module))
#4 /home/***/public_html/wp-content/plugins/elementor/core/common/modules/ajax/module.php(172): call_user_func(Array, Array, Object(Elementor\Core\Common\Modules\Ajax\Module))
#5 /home/***/public_html/wp-includes/class-wp-hook.php(308): Elementor\Core\Common\Modules\Ajax\Module->handle_ajax_request('')
#6 /home/***/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#7 /home/***/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /home/***/public_html/wp-admin/admin-ajax.php(188): do_action('wp_ajax_element...')
#9 {main}
  thrown in /home/***/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-cache.php on line 29

I think it might be related to this issue, that's why I'm sharing. Perhaps it could help the developers.

January 17, 2023 at 4:38 pm #12836197

sebastiaanV-11

Hello. Could you please provide an update? It's causing quite some issues for us.

January 19, 2023 at 3:47 am #12847467

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

The development team is checking the issue. I will update you here once I have any information.

Regarding the Elementor error, can you please let me know when this happens? When you edit the footer template in the second domain or in the default domain?

Thanks.

January 23, 2023 at 10:33 pm #12876077

sebastiaanV-11

Would like to notify that the new login on our staging site is testing.mymoissanite.nl/custom-log-in/ we did this to fight bots

January 27, 2023 at 2:05 am #12901183

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

I got some news from our 2nd tier support, please check the workaround below and see if it helps.

❌ IMPORTANT: Please backup your database and website before proceeding ❌

In the file wp-content/plugins/elementor-pro/license/api.php, around line 54-62, change the code from

		$body_args = wp_parse_args(
			$body_args,
			[
				'api_version' => ELEMENTOR_PRO_VERSION,
				'item_name' => self::PRODUCT_NAME,
				'site_lang' => get_bloginfo( 'language' ),
				'url' => $use_home_url ? home_url() : get_site_url(),
			]
		);

to this one

		$body_args = wp_parse_args(
			$body_args,
			[
				'api_version' => ELEMENTOR_PRO_VERSION,
				'item_name' => self::PRODUCT_NAME,
				'site_lang' => get_bloginfo( 'language' ),
				'url' => $use_home_url ? (defined("ICL_SITEPRESS_VERSION") ? get_option('home') : home_url()) : get_site_url(),
			]
		);

This issue is added to the development queue and will be included in the next update of WPML or so. If you update the plugin Elementor Pro and see this issue persists, you might need to apply the workaround again.

Look forward to your reply.
Thanks

January 27, 2023 at 11:33 am #12903543

sebastiaanV-11

Hi,

I implemented the fix, but the issue still persists. As mentioned earlier, this issue hasn't to do with elementor. It's WPML that's causing our admin backend to be accessible trough any secondary domain.

With the current fix and having deleted all cache, I am still able to access our secondary domain extension and access the admin panel.

For example, our default website runs on:

hidden link

A secondary language runs on:

hidden link

I can still access hidden link and browse through the admin backend. This is what causes not only elementor giving issues with licence keys not being validated, but pretty much any other plugin that looks up whether the licence is valid through domain matching.

January 28, 2023 at 7:20 pm #12909609

sebastiaanV-11

We're getting these mentions all the time, this is another plugin, again, not because it's truly expired but because it doesn't recognize the domain in admin backend: hidden link

January 30, 2023 at 1:51 am #12918047

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

From the WPML feature "A different domain per language" perspective, it does not prevent you or any user from logging in or accessing the second domain. So I think the main issue is the license key of Elementor Pro mismatch when you edit the site with the second domain.

If you've applied the workaround and it does not work on your live site, please share the site credentials, your next reply is set to private to share the info. I will ask my 2nd tier support to take a closer look.
Note: Please back up your database and website before proceeding.

If the issue happens with other plugins, and it is not available in the list of compatible plugins, you can check here https://wpml.org/plugin. In that case, I'd recommend that they join our 'Go Global' program (https://wpml.org/documentation/support/go-global-program/) where our Compatibility developers will help them make their product compatible with WPML.

Another way, you can try to go to WPML > Languages > Language URL format > Disable option "Auto sign-in and sign-out users from all domains" > Save changes.
Then logout of your account > login again with the default domain and see if it helps.

Look forward to your reply.
Thanks

February 2, 2023 at 2:37 pm #12948585

sebastiaanV-11

Are you sure you're supposed to be able to access wp-admin from any domain other than the default domain? Because Andreas, in the previous topic (https://wpml.org/forums/topic/elementor-pro-license-mismatch-when-using-multiple-domains/page/2/) said something differerent.

The topic ‘[Closed] WPML admin backend causes issues with multi domains’ is closed to new replies.