elementor / elementor/elementor

Uploading an Elementor template via a shortcode is in an acf field disrupts Elementor dynamic tags

Open
#16,942 0 comments 0 reactions 0 assignees View on GitHub
integration/acf
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

## Prerequisites

- [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

Hello
I loaded Elementor templates through the code, the shortcord is in the ACF field and the code is inside a standard Custom Post loop.
The code is inside a page template I built.

This is the code that calls the templates:
echo do_shortcode( get_field('event_template') );

After loading the templates there are tags + dynamic tags of the elements that non-functioning.
See the Screenshot below:
https://www.screencast.com/t/XBkI5Zkeb8RZ

1. tag of Icon List Widget - link tag in the items.
Here it's a standard tag, and completely breaks the HTML code..

See the Screenshots below:
https://www.screencast.com/t/kHEn0ssL
https://www.screencast.com/t/KEo89MDQci

2. A dinamic tag of 'CSS ID' in section.
See the Screenshot below:
https://www.screencast.com/t/eVA0beUbAeem

3. A dinamic tag of 'Background Image' in Column
See the Screenshot below:
https://www.screencast.com/t/L09QEYQHlg

Link to php errors in display
https://www.screencast.com/t/vtslBpAsi

4. Attaches a link to a page where all the bugs
https://dev.couples-harmony.com/future-events/

5. Attaches a link to a page where all the tags work.
https://dev.couples-harmony.com/test/

## Steps to reproduce

## 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: LiteSpeed
MySQL version: MySQL Community Server - GPL v8.0.27
PHP Version: 7.4.25
PHP Max Input Vars: 10240
PHP Max Post Size: 24M
GD Installed: Yes
ZIP Installed: No
Write Permissions: All right
Elementor Library: Connected

== WordPress Environment ==
Version: 5.8.2
Site URL: https://dev.couples-harmony.com
Home URL: https://dev.couples-harmony.com
WP Multisite: No
Max Upload Size: 24 MB
Memory limit: 512M
Permalink Structure: /%postname%/
Language: he-IL
Timezone: 3
Debug Mode: Active

== Theme ==
Name: Hello Elementor Child
Version:
Author:
Child Theme: Yes
Parent Theme Name: Hello Elementor
Parent Theme Version: 2.4.1
Parent Theme Author: Elementor Team

== User ==
Role: administrator
WP Profile lang: he_IL
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

== Active Plugins ==
Advanced Custom Fields PRO
Version: 5.11
Author: Delicious Brains

Advanced Editor Tools (previously TinyMCE Advanced)
Version: 5.6.0
Author: Automattic

Classic Editor
Version: 1.6.2
Author: WordPress Contributors

Duplicate Page
Version: 4.4.5
Author: mndpsingh287

Elementor
Version: 3.4.7
Author: Elementor.com

Elementor Pro
Version: 3.5.1
Author: Elementor.com

One Click Accessibility
Version: 2.0.3
Author: One Click Accessibility

Post Types Order
Version: 1.9.5.7
Author: Nsp Code

Show Current Template
Version: 0.4.6
Author: JOTAKI Taisuke

Ultimate Member
Version: 2.2.5
Author: Ultimate Member

WooCommerce
Version: 5.9.0
Author: Automattic

Yoast SEO
Version: 17.5
Author: Team Yoast

== אלמנטור - Compatibility Tag ==

Elementor Pro: תאימות לא הוגדרה

== אלמנטור פרו - Compatibility Tag ==

== Elements Usage ==

archive : 6
breadcrumbs : 1
button : 2
divider : 1
heading : 2
posts : 1
text-editor : 2
theme-archive-title : 1
page : 184
accordion : 2
author-box : 4
blockquote : 8
button : 30
call-to-action : 6
divider : 56
form : 17
google_maps : 4
heading : 110
icon : 10
icon-box : 10
icon-list : 15
image : 21
media-carousel : 2
menu-anchor : 10
posts : 12
spacer : 5
testimonial-carousel : 7
text-editor : 127
video : 7
section : 21
blockquote : 1
button : 4
divider : 5
form : 5
google_maps : 1
heading : 11
icon : 2
icon-list : 4
image : 1
media-carousel : 2
menu-anchor : 1
nav-menu : 1
text-editor : 15
widget : 0
divider : 1
wp-post : 0
blockquote : 3
google_maps : 4
heading : 51
icon : 4
image : 4
text-editor : 73
wp-page : 18
accordion : 1
audio : 6
button : 10
call-to-action : 3
divider : 43
flip-box : 5
form : 4
google_maps : 1
heading : 59
html : 1
icon : 2
icon-list : 6
image : 14
media-carousel : 1
menu-anchor : 1
spacer : 7
tabs : 2
testimonial-carousel : 1
text-editor : 51
toggle : 1
video : 4
single-post : 7
template : 1
theme-post-content : 1
search-results : 1
archive-posts : 1
breadcrumbs : 1
icon : 1
theme-archive-title : 1

== Log ==

Log: showing 20 of 362021-10-14 14:37:44 [info] אלמנטור/Upgrades - _on_each_version Finished
2021-10-14 14:37:44 [info] Elementor data updater process has been completed. [array (
'plugin' => 'אלמנטור',
'from' => '3.4.4',
'to' => '3.4.5',
)]
2021-10-14 14:38:12 [info] Elementor data updater process has been completed. [array (
'plugin' => 'אלמנטור פרו',
'from' => '3.4.1',
'to' => '3.4.2',
)]
2021-10-24 15:12:58 [info] Elementor data updater process has been queued. [array (
'plugin' => 'אלמנטור',
'from' => '3.4.5',
'to' => '3.4.6',
)]
2021-10-24 15:12:59 [info] elementor::elementor_updater Started
2021-10-24 15:12:59 [info] אלמנטור/Upgrades - _on_each_version Start
2021-10-24 15:13:00 [info] אלמנטור/Upgrades - _on_each_version Finished
2021-10-24 15:13:00 [info] Elementor data updater process has been completed. [array (
'plugin' => 'אלמנטור',
'from' => '3.4.5',
'to' => '3.4.6',
)]
2021-11-14 18:38:38 [info] Elementor data updater process has been queued. [array (
'plugin' => 'אלמנטור',
'from' => '3.4.6',
'to' => '3.4.7',
)]
2021-11-14 18:38:39 [info] Elementor data updater process has been queued. [array (
'plugin' => 'אלמנטור פרו',
'from' => '3.4.2',
'to' => '3.5.1',
)]
2021-11-14 18:38:40 [info] elementor-pro::elementor_pro_updater Started
2021-11-14 18:38:40 [info] אלמנטור פרו/Upgrades - _on_each_version Start
2021-11-14 18:38:40 [info] אלמנטור פרו/Upgrades - _on_each_version Finished
2021-11-14 18:38:40 [info] אלמנטור פרו/Upgrades - _v_3_5_0_price_list Start
2021-11-14 18:38:40 [info] elementor::elementor_updater Started
2021-11-14 18:38:40 [info] אלמנטור/Upgrades - _on_each_version Start
2021-11-14 18:38:42 [info] אלמנטור/Upgrades - _on_each_version Finished
2021-11-14 18:38:42 [info] Elementor data updater process has been completed. [array (
'plugin' => 'אלמנטור',
'from' => '3.4.6',
'to' => '3.4.7',
)]
2021-11-14 18:38:44 [info] אלמנטור פרו/Upgrades - _v_3_5_0_price_list Finished
2021-11-14 18:38:44 [info] Elementor data updater process has been completed. [array (
'plugin' => 'אלמנטור פרו',
'from' => '3.4.2',
'to' => '3.5.1',
)]

PHP: showing 6 of 6PHP: 2021-08-31 16:39:50 [error X 3][/home/irissovi/sites/dev-couples-harmony/wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-manager.php::285] Uncaught Error: Call to a member function update_meta() on bool in /home/irissovi/sites/dev-couples-harmony/wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-manager.php:285
Stack trace:
#0 /home/irissovi/sites/dev-couples-harmony/wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-manager.php(166): ElementorPro\Modules\ThemeBuilder\Classes\Conditions_Manager->save_conditions(NULL, Array)
#1 [internal function]: ElementorPro\Modules\ThemeBuilder\Classes\Conditions_Manager->ajax_save_theme_template_conditions(Array, Object(Elementor\Core\Common\Modules\Ajax\Module))
#2 /home/irissovi/sites/dev-couples-harmony/wp-content/plugins/elementor/core/common/modules/ajax/module.php(171): call_user_func(Array, Array, Object(Elementor\Core\Common\Modules\Ajax\Module))
#3 /home/irissovi/sites/dev-couples-harmony/wp-includes/class-wp-hook.php(303): Elementor\Core\Common\Modules\Ajax\Module->handle_ajax_request('')
#4 /home/irissovi/sites/dev-couples-harmony/wp-includes/class-wp [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2021-09-14 16:18:11 [notice X 65][/home/irissovi/sites/dev-couples-harmony/wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/tags/acf-text.php::33] Undefined offset: 1 [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2021-09-14 17:47:26 [notice X 67][/home/irissovi/sites/dev-couples-harmony/wp-content/plugins/elementor/core/common/modules/ajax/module.php::171] Undefined index: data [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2021-10-05 14:21:21 [notice X 13][/home/irissovi/sites/dev-couples-harmony/wp-content/plugins/elementor/includes/managers/image.php::87] Trying to access array offset on value of type bool [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2021-10-13 17:47:00 [notice X 1][/home/irissovi/sites/dev-couples-harmony/wp-content/plugins/elementor-pro/modules/forms/classes/recaptcha-v3-handler.php::119] Undefined index: score [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2021-10-21 22:45:57 [notice X 5][/home/irissovi/sites/dev-couples-harmony/wp-content/plugins/elementor-pro/modules/posts/skins/skin-content-base.php::253] Trying to get property 'ID' of non-object [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.