[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
[x] The issue still exists against the latest stable version of Elementor.
Description
Pages translated with WPML should display Elementor Popup in translated language, but popup is displayed in main language even if popups are already tranlsated with WPML.
Steps to reproduce
create a simple popup;
create a new page and insert the previosly created popup in this page by using a button widget with a dynamic link: select "Popup" and then select the previously created popup;
translate the popup using WPML
translate the page with the link to the popup using WPML
The translated page should display popup in translated language, but popup is displayed in main language.
Isolating the problem
[x] This bug happens with only Elementor plugin active (and Elementor Pro).
[x] This bug happens with a default WordPress theme active.
[x] I can reproduce this bug consistently using the steps above.
Environment
System Info
```
== Server Environment ==
Operating System: Linux
Software: Apache
MySQL version: Percona Server (GPL), Release 84.0, Revision 47234b3 v5.6.40-84.0
PHP Version: 7.1.27
PHP Max Input Vars: 3000
PHP Max Post Size: 128M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
== WordPress Environment ==
Version: 5.1.1
Site URL: http://www.ggservice.org/twn-rent
Home URL: http://www.ggservice.org/twn-rent
WP Multisite: No
Max Upload Size: 128 MB
Memory limit: 768M
Permalink Structure: /%postname%/
Language: it-IT
Timezone: 0
Debug Mode: Inactive
== Theme ==
Name: TWN Rent
Version: 1.0.0
Author: G.G.Service
Child Theme: Yes
Parent Theme Name: Astra
Parent Theme Version: 1.8.1
Parent Theme Author: Brainstorm Force
== User ==
Role: administrator
WP Profile lang: it_IT
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
== Active Plugins ==
Astra Pro
Version: 1.8.1
Author: Brainstorm Force
Classic Editor
Version: 1.4
Author: WordPress Contributors
Disable Comments
Version: 1.9.0
Author: Samir Shah
Elementor
Version: 2.5.13
Author: Elementor.com
Elementor Forms
Version: 1.7.9
Author: Elementor Forms
Elementor Pro
Version: 2.5.5
Author: Elementor.com
Jet Elements For Elementor
Version: 1.15.8
Author: Zemez
JetSticky For Elementor
Version: 1.0.0
Author: CrocoBlock
Post Duplicator
Version: 2.20
Author: Metaphor Creations
Simple Custom Post Order
Version: 2.4.2
Author: Colorlib
Toolset Layouts
Version: 2.5.2
Author: OnTheGoSystems
Toolset Types
Version: 3.2.7
Author: OnTheGoSystems
Toolset Views
Version: 2.8.0.1
Author: OnTheGoSystems
WPML Multilingual CMS
Version: 4.2.5
Author: OnTheGoSystems
WPML String Translation
Version: 2.10.3
Author: OnTheGoSystems
WPML Translation Management
Version: 2.8.4
Author: OnTheGoSystems
== Log ==
:
Log: showing 20 of 312019-03-26 10:08:03 [info] Elementor Pro/Upgrades - _v_2_5_0_form Finished
2019-03-26 10:08:03 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '2.4.8',
'to' => '2.5.0',
)]
2019-03-27 08:31:02 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '2.5.9',
'to' => '2.5.10',
)]
2019-04-02 08:28:56 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '2.5.10',
'to' => '2.5.11',
)]
2019-04-02 08:29:04 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '2.5.0',
'to' => '2.5.3',
)]
2019-04-09 07:24:03 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '2.5.11',
'to' => '2.5.12',
)]
2019-04-09 07:24:56 [info] elementor-pro::elementor_pro_updater Started
2019-04-09 07:24:56 [info] Elementor Pro/Upgrades - _v_2_5_4_posts Start
2019-04-09 07:24:56 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '2.5.3',
'to' => '2.5.5',
)]
2019-04-09 07:24:58 [info] Elementor Pro/Upgrades - _v_2_5_4_posts Finished
2019-04-09 07:24:58 [info] Elementor Pro/Upgrades - _v_2_5_4_portfolio Start
2019-04-09 07:24:59 [info] Elementor Pro/Upgrades - _v_2_5_4_portfolio Finished
2019-04-09 07:24:59 [info] Elementor Pro/Upgrades - _v_2_5_4_products Start
2019-04-09 07:25:01 [info] Elementor Pro/Upgrades - _v_2_5_4_products Finished
2019-04-09 07:25:01 [info] Elementor Pro/Upgrades - _v_2_5_4_form Start
2019-04-09 07:25:03 [info] Elementor Pro/Upgrades - _v_2_5_4_form callback needs to run more 1 times
2019-04-09 07:25:03 [info] Elementor Pro/Upgrades - _v_2_5_4_form Start (2 of 2, 100%)
2019-04-09 07:25:05 [info] Elementor Pro/Upgrades - _v_2_5_4_form Finished
2019-04-09 07:25:05 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '2.5.3',
'to' => '2.5.5',
)]
2019-04-12 10:12:38 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '2.5.12',
'to' => '2.5.13',
)]
PHP: showing 2 of 2PHP: 2019-03-28 15:01:10 [notice X 302][/home/ggservic/public_html/twn-rent/wp-content/plugins/elementor-forms/widgets/ef-submit.php::1334] Undefined index: enable_woo [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2019-04-04 14:24:36 [notice X 1][/home/ggservic/public_html/twn-rent/wp-content/plugins/elementor-pro/modules/query-control/module.php::280] Undefined index: object_type [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
JS: showing 9 of 9JS: 2019-04-04 13:29:08 [error X 2][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/js/editor.min.js?ver=2.5.11:2:8507] Cannot read property \'select2\' of undefined
JS: 2019-04-10 09:53:10 [error X 4][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/js/editor.min.js?ver=2.5.12:2:42002] Cannot read property \'forEach\' of undefined
JS: 2019-04-10 10:15:18 [error X 2][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1298\") has already been destroyed and cannot be used.
JS: 2019-04-10 10:20:17 [error X 3][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1175\") has already been destroyed and cannot be used.
JS: 2019-04-10 10:22:20 [error X 4][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1228\") has already been destroyed and cannot be used.
JS: 2019-04-10 10:24:03 [error X 1][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1167\") has already been destroyed and cannot be used.
JS: 2019-04-10 10:26:52 [error X 1][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1209\") has already been destroyed and cannot be used.
JS: 2019-04-10 10:28:42 [error X 3][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1464\") has already been destroyed and cannot be used.
JS: 2019-04-12 10:36:23 [error X 1][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view11133\") has already been destroyed and cannot be used.
```
Prerequisites
Description
Pages translated with WPML should display Elementor Popup in translated language, but popup is displayed in main language even if popups are already tranlsated with WPML.
Steps to reproduce
Isolating the problem
Environment
System Info
``` == Server Environment == Operating System: Linux Software: Apache MySQL version: Percona Server (GPL), Release 84.0, Revision 47234b3 v5.6.40-84.0 PHP Version: 7.1.27 PHP Max Input Vars: 3000 PHP Max Post Size: 128M GD Installed: Yes ZIP Installed: Yes Write Permissions: All right Elementor Library: Connected == WordPress Environment == Version: 5.1.1 Site URL: http://www.ggservice.org/twn-rent Home URL: http://www.ggservice.org/twn-rent WP Multisite: No Max Upload Size: 128 MB Memory limit: 768M Permalink Structure: /%postname%/ Language: it-IT Timezone: 0 Debug Mode: Inactive == Theme == Name: TWN Rent Version: 1.0.0 Author: G.G.Service Child Theme: Yes Parent Theme Name: Astra Parent Theme Version: 1.8.1 Parent Theme Author: Brainstorm Force == User == Role: administrator WP Profile lang: it_IT User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36 == Active Plugins == Astra Pro Version: 1.8.1 Author: Brainstorm Force Classic Editor Version: 1.4 Author: WordPress Contributors Disable Comments Version: 1.9.0 Author: Samir Shah Elementor Version: 2.5.13 Author: Elementor.com Elementor Forms Version: 1.7.9 Author: Elementor Forms Elementor Pro Version: 2.5.5 Author: Elementor.com Jet Elements For Elementor Version: 1.15.8 Author: Zemez JetSticky For Elementor Version: 1.0.0 Author: CrocoBlock Post Duplicator Version: 2.20 Author: Metaphor Creations Simple Custom Post Order Version: 2.4.2 Author: Colorlib Toolset Layouts Version: 2.5.2 Author: OnTheGoSystems Toolset Types Version: 3.2.7 Author: OnTheGoSystems Toolset Views Version: 2.8.0.1 Author: OnTheGoSystems WPML Multilingual CMS Version: 4.2.5 Author: OnTheGoSystems WPML String Translation Version: 2.10.3 Author: OnTheGoSystems WPML Translation Management Version: 2.8.4 Author: OnTheGoSystems == Log == : Log: showing 20 of 312019-03-26 10:08:03 [info] Elementor Pro/Upgrades - _v_2_5_0_form Finished 2019-03-26 10:08:03 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '2.4.8', 'to' => '2.5.0', )] 2019-03-27 08:31:02 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '2.5.9', 'to' => '2.5.10', )] 2019-04-02 08:28:56 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '2.5.10', 'to' => '2.5.11', )] 2019-04-02 08:29:04 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '2.5.0', 'to' => '2.5.3', )] 2019-04-09 07:24:03 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '2.5.11', 'to' => '2.5.12', )] 2019-04-09 07:24:56 [info] elementor-pro::elementor_pro_updater Started 2019-04-09 07:24:56 [info] Elementor Pro/Upgrades - _v_2_5_4_posts Start 2019-04-09 07:24:56 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor Pro', 'from' => '2.5.3', 'to' => '2.5.5', )] 2019-04-09 07:24:58 [info] Elementor Pro/Upgrades - _v_2_5_4_posts Finished 2019-04-09 07:24:58 [info] Elementor Pro/Upgrades - _v_2_5_4_portfolio Start 2019-04-09 07:24:59 [info] Elementor Pro/Upgrades - _v_2_5_4_portfolio Finished 2019-04-09 07:24:59 [info] Elementor Pro/Upgrades - _v_2_5_4_products Start 2019-04-09 07:25:01 [info] Elementor Pro/Upgrades - _v_2_5_4_products Finished 2019-04-09 07:25:01 [info] Elementor Pro/Upgrades - _v_2_5_4_form Start 2019-04-09 07:25:03 [info] Elementor Pro/Upgrades - _v_2_5_4_form callback needs to run more 1 times 2019-04-09 07:25:03 [info] Elementor Pro/Upgrades - _v_2_5_4_form Start (2 of 2, 100%) 2019-04-09 07:25:05 [info] Elementor Pro/Upgrades - _v_2_5_4_form Finished 2019-04-09 07:25:05 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '2.5.3', 'to' => '2.5.5', )] 2019-04-12 10:12:38 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '2.5.12', 'to' => '2.5.13', )] PHP: showing 2 of 2PHP: 2019-03-28 15:01:10 [notice X 302][/home/ggservic/public_html/twn-rent/wp-content/plugins/elementor-forms/widgets/ef-submit.php::1334] Undefined index: enable_woo [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2019-04-04 14:24:36 [notice X 1][/home/ggservic/public_html/twn-rent/wp-content/plugins/elementor-pro/modules/query-control/module.php::280] Undefined index: object_type [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] JS: showing 9 of 9JS: 2019-04-04 13:29:08 [error X 2][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/js/editor.min.js?ver=2.5.11:2:8507] Cannot read property \'select2\' of undefined JS: 2019-04-10 09:53:10 [error X 4][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/js/editor.min.js?ver=2.5.12:2:42002] Cannot read property \'forEach\' of undefined JS: 2019-04-10 10:15:18 [error X 2][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1298\") has already been destroyed and cannot be used. JS: 2019-04-10 10:20:17 [error X 3][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1175\") has already been destroyed and cannot be used. JS: 2019-04-10 10:22:20 [error X 4][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1228\") has already been destroyed and cannot be used. JS: 2019-04-10 10:24:03 [error X 1][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1167\") has already been destroyed and cannot be used. JS: 2019-04-10 10:26:52 [error X 1][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1209\") has already been destroyed and cannot be used. JS: 2019-04-10 10:28:42 [error X 3][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view1464\") has already been destroyed and cannot be used. JS: 2019-04-12 10:36:23 [error X 1][http://www.ggservice.org/twn-rent/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.min.js?ver=2.4.5:22:19954] View (cid: \"view11133\") has already been destroyed and cannot be used. ```