Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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...')
    #
    • This topic was modified 3 years, 4 months ago by Ismael.
    #1302553

    Anyone there?

    #1302568

    Hi,

    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.

    Best regards,
    Rikard

    #1302582

    Here you go

    #1302857

    Any update?

    #1302926

    Hi,

    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.

    Best regards,
    Rikard

    #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/

    #1309651

    Hi Grant,

    Please open a new thread and include WordPress admin login details in private, so that we can have a closer look at your site.

    Best regards,
    Rikard

    #1309819

    Hi Rikard,

    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?

    #1310076

    Hi,


    @enoversum
    : They might have modified the accordion shortcode file in the child theme. Please make sure that the modified file contains the updated content.

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    If you have further questions, please feel free to open another thread. We will close this one for now.

    Have a nice day.

    Best regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Error when trying to edit page with toggle element after 4.8.2 update’ is closed to new replies.