elementor / elementor/elementor

⛔ 🧩 🛟 Support Request: Custom Shortcode prevents the Elementor Editor from loading

Open
#27,311 0 comments 0 reactions 0 assignees View on GitHub
compatibility/3rd-party-code element/container mod/c* mod/x* request/support widget/shortcode
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

### Prerequisites

- [ ] I have searched for similar issues in open and closed tickets and cannot find a duplicate.
- [ ] I have troubleshooted my issue, and it still exists against the latest stable version of Elementor.

### Description

When a (stable?) flexbox container feature is on and a saved page contains a shortcode - trying to edit such a page with Elementor fails. This page is loaded into a browser tab instead the Elementor editor.

So, pages containing flexbox and shortcode(s) are not editable using Elementor.

### Steps to reproduce

1. Enable Flexbox
2. Open a (new) page with Elementor editor
3. Insert a flexbox
4. in a flexbox enter a shortcode widget with some shortcode
5. save the page
6. Try to open this page in Elementor Editor. The page gets loaded into browser tab, not Editor.
7. Page containing flexbox and a shortcode is not editable using Elementor Editor
8. Pages with shortcodes edit normally when "section-column" structure is used to insert them.

### Expected behavior

1. Enter a shortcode widget with a shortcode into a flexbox
2. save the page
3. open this page in Elementor editor. Editor should open

### Isolating the problem

- [ ] This bug happens when only the Elementor (and Elementor Pro) plugins are active.
- [x] This bug happens with the Hello Elementor theme active.
- [X] I can reproduce this bug consistently by following the steps I described above.

### Elementor System Info

Click to reveal

````txt

== Server Environment ==
Operating System: Linux
Software: LiteSpeed
MySQL version: MariaDB Server v10.6.17
PHP Version: 8.2.18
PHP Memory Limit: 512M
PHP Max Input Vars: 3000
PHP Max Post Size: 512M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected

== WordPress Environment ==
Version: 6.5.3
Site URL: https://gridsoft.com.au
Home URL: https://gridsoft.com.au
WP Multisite: No
Max Upload Size: 256 MB
Memory limit: 40M
Max Memory limit: 512M
Permalink Structure: /%postname%/
Language: en_AU
Timezone: 10
Debug Mode: Inactive

== Theme ==
Name: Hello Elementor
Version: 3.0.1
Author: Elementor Team
Child Theme: No

== User ==
Role: administrator
WP Profile lang: en-AU
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0

== Active Plugins ==
CM Tooltip Glossary
Version: 4.3.3
Author: CreativeMindsSolutions

Duplicate Page
Version: 4.5.3
Author: mndpsingh287

Elementor
Version: 3.21.5
Author: Elementor.com

Elementor Pro
Version: 3.21.2
Author: Elementor.com

FluentSMTP
Version: 2.2.73
Author: FluentSMTP & WPManageNinja Team

Login No Captcha reCAPTCHA (Google)
Version: 1.7.3
Author: Robert Peake and Contributors

Media Library Assistant
Version: 3.15
Author: David Lingren

Security Ninja (Premium)
Version: 5.183
Author: WP Security Ninja

SEOPress
Version: 7.7.2
Author: The SEO Guys at SEOPress

SEOPress PRO
Version: 7.7
Author: The SEO Guys at SEOPress

Simply Static
Version: 3.1.6.3
Author: Patrick Posner

WordPress Importer
Version: 0.8.2
Author: wordpressdotorg

WP File Manager
Version: 7.2.7
Author: mndpsingh287

WP Migrate Lite
Version: 2.6.10
Author: WP Engine

== Must-Use Plugins ==
WP Migrate Lite Compatibility
Version: 1.3
Author: Delicious Brains

== Elements Usage ==

footer : 3
container : 9
heading : 9
icon-list : 6
social-icons : 1
header : 1
button : 1
container : 1
nav-menu : 1
theme-site-logo : 1
page : 2
button : 2
container : 18
heading : 7
image-box : 1
text-editor : 3
popup : 1
container : 1
form : 1
heading : 2
text-editor : 1
wp-page : 8
container : 98
form : 1
google_maps : 1
heading : 29
icon-list : 6
image : 1
shortcode : 1
social-icons : 1
text-editor : 16
error-404 : 2
container : 4
heading : 1
media-carousel : 1
text-editor : 1

== Settings ==

cpt_support: post, page, glossary
disable_color_schemes: yes
disable_typography_schemes: yes
allow_tracking: yes
font_display: swap
load_fa4_shim: yes

== Features ==
Custom Fonts: 0
Custom Icons: 0

== Integrations ==

recaptcha: Active
recaptcha_v3: Active

== Elementor Experiments ==
Improved Asset Loading: Active by default
Improved CSS Loading: Active
Inline Font Icons: Active
Additional Custom Breakpoints: Inactive
admin_menu_rearrangement: Inactive by default
Flexbox Container: Active
Upgrade Swiper Library: Active
Grid Container: Active by default
Nested Elements Performance: Inactive by default
Optimized Control Loading: Inactive by default
Default to New Theme Builder: Inactive
Hello Theme Header & Footer: Inactive
Elementor Home Screen: Active by default
Editor Top Bar: Active
Build with AI: Inactive
Landing Pages: Inactive
Nested Elements: Active
Lazy Load Background Images: Active
Pages Panel: Inactive by default
Display Conditions: Active
Form Submissions: Active
Menu: Inactive
Taxonomy Filter: Inactive

== Log ==

Log: showing 20 of 322024-04-25 05:44:13 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '3.21.0',
'to' => '3.21.1',
)]
2024-04-26 01:25:11 [info] elementor::elementor_updater Started
2024-04-26 01:25:11 [info] Elementor/Upgrades - _on_each_version Start
2024-04-26 01:25:11 [info] Elementor/Upgrades - _on_each_version Finished
2024-04-26 01:25:11 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.21.2',
'to' => '3.21.3',
)]
2024-04-26 01:25:11 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.21.2',
'to' => '3.21.3',
)]
2024-04-30 23:39:27 [info] elementor::elementor_updater Started
2024-04-30 23:39:27 [info] Elementor/Upgrades - _on_each_version Start
2024-04-30 23:39:27 [info] Elementor/Upgrades - _on_each_version Finished
2024-04-30 23:39:27 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.21.3',
'to' => '3.21.4',
)]
2024-04-30 23:39:27 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.21.3',
'to' => '3.21.4',
)]
2024-05-01 00:04:35 [info] elementor-pro::elementor_pro_updater Started
2024-05-01 00:04:35 [info] Elementor Pro/Upgrades - _on_each_version Start
2024-05-01 00:04:35 [info] Elementor Pro/Upgrades - _on_each_version Finished
2024-05-01 00:04:35 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.21.1',
'to' => '3.21.2',
)]
2024-05-09 10:45:59 [info] elementor::elementor_updater Started
2024-05-09 10:45:59 [info] Elementor/Upgrades - _on_each_version Start
2024-05-09 10:45:59 [info] Elementor/Upgrades - _on_each_version Finished
2024-05-09 10:45:59 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.21.4',
'to' => '3.21.5',
)]
2024-05-09 10:45:59 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.21.4',
'to' => '3.21.5',
)]

PHP: showing 5 of 5PHP: 2024-04-24 07:03:41 [warning X 9][../wp-content/plugins/elementor/includes/elements/container.php::1831] Undefined array key "size" [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-04-24 07:04:10 [warning X 4][../wp-content/plugins/elementor/includes/managers/image.php::113] Trying to access array offset on value of type bool [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-04-24 07:47:37 [warning X 3][../wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-manager.php::179] Undefined array key "editor_post_id" [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-04-24 08:02:17 [notice X 4][../wp-content/plugins/elementor-pro/modules/screenshots/module.php::33] Function utf8_decode() is deprecated [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-04-25 05:45:28 [warning X 66][../wp-content/plugins/elementor/includes/widgets/icon-box.php::708] Undefined array key "icon" [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]

JS: showing 5 of 5JS: 2024-04-24 08:06:58 [error X 1][../wp-admin/load-scripts.php?c=1&loadchunk_0=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.5.2:2:28760] Cannot read properties of undefined (reading 'value')
JS: 2024-04-30 01:41:12 [error X 1][../wp-content/plugins/elementor/assets/js/admin.min.js?ver=3.21.3:3:48028] c[0] is undefined
JS: 2024-05-03 08:28:23 [error X 1][https://gridsoft.com.au/wp-content/plugins/elementor-pro/assets/js/editor.min.js?ver=3.21.2:2:65789] can't convert undefined to object
JS: 2024-05-04 03:06:55 [error X 2][https://gridsoft.com.au/wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.17:12:0]
JS: 2024-05-04 04:57:06 [error X 1][https://gridsoft.com.au/wp-content/plugins/elementor/assets/js/frontend.min.js?ver=3.21.4:2:30429] elementor.settings.page is undefined

== Elementor - Compatibility Tag ==

Elementor Pro: Compatibility not specified

== Elementor Pro - Compatibility Tag ==

````

### Agreement

- [X] I agree that my issue may be closed without action if it doesn't meet all the requirements.

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.