May 25, 2021 at 4:09 pm #1302246
Hi there, after updating to Enfold 4.8.2 we get an error when we try to edit (or copy) a page with some toggle elements. However, the frontend is still working fine and creating a new page with a toggle element also seems to be working fine. Any ideas what is causing this and how to fix?
An error of type E_ERROR was caused in line 3762 of the file /var/www/vhosts/somedomain.nl/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/element-templates.class.php. Error message: Uncaught TypeError: Argument 1 passed to aviaElementTemplates::set_locked_attributes() must be of the type array, string given, called in /var/www/vhosts/somedomain.nl/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/toggles/toggles.php on line 881 and defined in /var/www/vhosts/somedomain.nl/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/element-templates.class.php:3726 Stack trace: #0 /var/www/vhosts/somedomain.nl/httpdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/toggles/toggles.php(881): aviaElementTemplates->set_locked_attributes('', Object(avia_sc_toggle), 'av_toggle', Array, Array, '') #1 /var/www/vhosts/somedomain.nl/httpdocs/wp-includes/shortcodes.php(343): avia_sc_toggle->av_toggle('', '', 'av_toggle') #2 [internal function]: do_shortcode_tag(Array) #3 /var/www/vhosts/somedomain.nl/httpdocs/wp-includes/shortcodes.php(218): preg_replace_callback('/\\[(\\[?)(av_tog...', 'do_shortcode_ta...', '\n[av_togg...') #
May 27, 2021 at 9:13 am #1302553May 27, 2021 at 10:50 am #1302568
- This topic was modified 2 years, 4 months ago by Ismael.
Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
RikardMay 27, 2021 at 11:34 am #1302582May 28, 2021 at 3:12 pm #1302857May 29, 2021 at 6:03 am #1302926
Thanks for that. I can’t even edit the page in question, is that the problem you are seeing on your end as well?
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Please try disabling all plugins, and activate the parent theme, to see if that makes any difference.
RikardJuly 10, 2021 at 11:39 pm #1309517
I’m getting the same error message. when I deactivate the theme it goes away and I can get to the page editor. When I activate the theme it is broken again. I can still see the front end of the site design. https://www.cashoffercalculator.com/July 12, 2021 at 4:26 am #1309651
Please open a new thread and include WordPress admin login details in private, so that we can have a closer look at your site.
RikardJuly 12, 2021 at 3:41 pm #1309819
unfortunately, my customers for whom I bought the theme, have the same problem, but only with certain pages (one in particular): They stated that this occurs since they added an accordion to the page.
Fatal error: Uncaught TypeError: Argument 1 passed to aviaElementTemplates::set_locked_attributes() must be of the type array, string given, called in /mypath/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/toggles/toggles.php on line 881 and defined in /mypath/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/element-templates.class.php:3727 Stack trace: #0 /mypath/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/toggles/toggles.php(881): aviaElementTemplates->set_locked_attributes('', Object(avia_sc_toggle), 'av_toggle', Array, Array, '') #1 /mypath/wp-includes/shortcodes.php(343): avia_sc_toggle->av_toggle('', '', 'av_toggle') #2 [internal function]: do_shortcode_tag(Array) #3 /mypath/wp-includes/shortcodes.php(218): preg_replace_callback('/\\[(\\[?)(av_tog...', 'do_shortcode_ta...', ' \n[av_togg...') #4 /mypath/wp-content/themes/enfold/config-templatebuilder/avia-templat in /mypath/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/element-templates.class.php on line 3727
I had temporarily tried to disable all other relevant plugins, to no avail unfortunately. Is this now already known and possibly a quick fix available?July 14, 2021 at 8:33 am #1310076
@enoversum: They might have modified the accordion shortcode file in the child theme. Please make sure that the modified file contains the updated content.
If you have further questions, please feel free to open another thread. We will close this one for now.
Have a nice day.
- The topic ‘Error when trying to edit page with toggle element after 4.8.2 update’ is closed to new replies.