elementor / elementor/elementor
Toggle And Accordion not working after "Disable the visual editor when writing"
- 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
When `Disable the visual editor when writing` is checked in Wordpress Dashboard Users profile, the Elementor Toggle and Accordion Items open and close only one item once when clicked. The consecutive clicks don't open the items, the items stay closed.
## Steps to reproduce
1. Create new page
2. Edit with Elementor
3. Insert Toggle element
4. Edit Toggle element
5. Click Toggle item
6. Bug happens

## 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: WINNT
Software: Apache/2.4.48 (Win64) OpenSSL/1.1.1l PHP/7.4.23
MySQL version: mariadb.org binary distribution v10.4.21
PHP Version: 7.4.23
PHP Max Input Vars: 1000
PHP Max Post Size: 750M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
== WordPress Environment ==
Version: 5.8.1
Site URL: http://localhost/test
Home URL: http://localhost/test
WP Multisite: No
Max Upload Size: 750 MB
Memory limit: 1000M
Permalink Structure: /%postname%/
Language: en-US
Timezone: 0
Debug Mode: Inactive
== Theme ==
Name: Blank Canvas
Version: 1.2.9
Author: Automattic
Child Theme: Yes
Parent Theme Name: Seedlet
Parent Theme Version: 1.1.13
Parent Theme Author: Automattic
== User ==
Role: administrator
WP Profile lang: en_US
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36
== Active Plugins ==
Elementor
Version: 3.4.4
Author: Elementor.com
== Elementor - Compatibility Tag ==
== Elements Usage ==
page : 5
accordion : 3
audio : 8
button : 6
heading : 32
icon : 3
icon-list : 3
social-icons : 3
spacer : 3
video : 4
section : 15
accordion : 1
button : 343
heading : 196
hfe-site-tagline : 1
hfe-site-title : 1
icon : 23
icon-list : 1
image : 81
navigation-menu : 1
social-icons : 10
spacer : 51
text-editor : 23
wp-widget-malihupagescroll2idwidget : 1
wp-post : 0
hfe-site-tagline : 1
hfe-site-title : 1
navigation-menu : 1
wp-page : 7
audio : 6
button : 10
divider : 4
eael-contact-form-7 : 1
foogallery : 1
heading : 28
hfe-site-tagline : 1
hfe-site-title : 1
icon : 2
icon-list : 2
image : 11
image-box : 6
navigation-menu : 1
social-icons : 1
spacer : 1
tabs : 1
text-editor : 27
toggle : 1
video : 4
wp-widget-malihupagescroll2idwidget : 9
== Log ==
JS: showing 2 of 2JS: 2021-09-21 18:09:16 [error X 6][http://localhost/test/wp-content/plugins/elementor/assets/js/editor-modules.min.js?ver=3.4.4:2:16782] An invalid argument supplied as multiple control value [array (
'category' => 'InvalidElementData',
'tag' => 'Element `undefined` got as `portfolio_thumb_image` value. Expected array or object.',
)]
JS: 2021-09-21 18:09:16 [error X 6][http://localhost/test/wp-content/plugins/elementor/assets/js/editor-modules.min.js?ver=3.4.4:2:16782] An invalid argument supplied as multiple control value [array (
'category' => 'InvalidElementData',
'tag' => 'Element `undefined` got as `portfolio_full_image` value. Expected array or object.',
)]
PHP: showing 3 of 3PHP: 2021-09-21 18:24:01 [error X 1][C:\xampp\htdocs\test\wp-content\plugins\elementor\includes\base\controls-stack.php::2290] Uncaught TypeError: Argument 1 passed to Elementor\Controls_Stack::sanitize_settings() must be of the type array, string given, called in C:\xampp\htdocs\test\wp-content\plugins\elementor\includes\base\controls-stack.php on line 1051 and defined in C:\xampp\htdocs\test\wp-content\plugins\elementor\includes\base\controls-stack.php:2290
Stack trace:
#0 C:\xampp\htdocs\test\wp-content\plugins\elementor\includes\base\controls-stack.php(1051): Elementor\Controls_Stack->sanitize_settings('t:1:{s:18:"eael...')
#1 C:\xampp\htdocs\test\wp-content\plugins\elementor\includes\base\controls-stack.php(2039): Elementor\Controls_Stack->get_data('settings')
#2 C:\xampp\htdocs\test\wp-content\plugins\elementor\core\base\base-object.php(142): Elementor\Controls_Stack->get_init_settings()
#3 C:\xampp\htdocs\test\wp-content\plugins\elementor\core\base\base-object.php(40): Elementor\Core\Base\Base_Object->ensure_settings()
#4 C:\xampp\htdocs\test\w [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2021-09-21 18:24:07 [warning X 1][C:\xampp\htdocs\test\wp-content\plugins\elementor\modules\usage\module.php::456] Invalid argument supplied for foreach() [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2021-09-24 15:06:56 [notice X 34][C:\xampp\htdocs\test\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()
',
)]
Contributor guide
Assessment
This issue has not been assessed yet.