-
AuthorPosts
-
September 18, 2023 at 4:06 pm #1419483
Am getting a critical error message when trying to edit the home page of the website http://www.oxsec.co.uk
can log into admin fine and am also able to view the site.
Error message appears when trying to edit the home page.
error details email says..Error Details
=============
An error of type E_ERROR was caused in line 3768 of the file /home/sites/26a/8/8b9cdb854b/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php. Error message: Uncaught TypeError: Argument 1 passed to aviaElementTemplates::set_locked_attributes() must be of the type array, string given, called in /home/sites/26a/8/8b9cdb854b/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php on line 1128 and defined in /home/sites/26a/8/8b9cdb854b/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php:3768
Stack trace:
#0 /home/sites/26a/8/8b9cdb854b/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php(1128): aviaElementTemplates->set_locked_attributes(”, Object(avia_sc_slider_full), ‘av_slide_full’, Array, Array, ”)
#1 /home/sites/26a/8/8b9cdb854b/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php(1172): avia_sc_slider_full->get_element_styles(Array)
#2 /home/sites/26a/8/8b9cdb854b/public_html/wp-content/themes/enfold/config-thave set enfold login and etails below in private content
September 19, 2023 at 4:21 am #1419518Hey madmanbean,
Thank you for the inquiry.
We logged in to the site and noticed that the theme is a bit outdated. Please upgrade the theme from version 5.6.2 to the latest version, 5.6.6, and make sure to purge the cache afterward.
Best regards,
IsmaelSeptember 19, 2023 at 10:49 am #1419550Ok I will update the theme but what concerns me is that it is only the one page that creates this error rather than all of them. Having already trying to clear all caches it would seem, to me that the error is in the database rather than a file.
September 19, 2023 at 11:00 am #1419552Ok I have updated the theme, cleared all caches and, as expected, the error message is still there when trying to edit the home page.
What next?
September 19, 2023 at 2:14 pm #1419575Hi,
Thank you for the update.
The error seems to be related to the Fullwidth Easy Slider. Have you tried to delete the slider and recreate it from scratch? If you’re unable to remove the slider from the builder due to the error, try switching the builder to debug mode and then remove the actual shortcodes from the shortcodes field. Please check the documentation below for more info.
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#debug-mode
Best regards,
IsmaelSeptember 19, 2023 at 2:35 pm #1419579have added debug mode but same problem still exists as cannot open the edit page without the error message
September 19, 2023 at 2:54 pm #1419587Ok.. have fixed it..
enabled debug mode and switched to a wordpress theme. This showed the code for the home page which I could then edit.
removed the code for the header and updated. went back to child theme and viewed the home page which still showed the full screen slide show.
however, when I clicked on edit this time the enfold editor opened and works again.
Why that slider was still there I do not know as I purged the cache as well!
Any thoughts as to why the full screen slider remained?
September 20, 2023 at 7:14 am #1419657Hi,
Thank you for following up.
The slider should have been disabled when you remove the shortcodes. We are not sure why it remained there, but glad to know that the slider attributes have been updated and the error has been removed. You might be able to do these steps by switching to the classic editor instead of activating a different theme.
Best regards,
IsmaelOctober 19, 2023 at 3:09 pm #1423020Hi.. initial fault was fixed but am still seeing the source code box at the bottom of every page in edit mode after disabling debugger along with a parse button.
How do I disable this? Your original logon should still work
October 19, 2023 at 6:03 pm #1423043Hi,
You can switch debug mode on and off under Enfold->Layout Builder->Show advanced options->Debug Mode (Backend Only)
Best regards,
RikardOctober 19, 2023 at 6:11 pm #1423049Blushing with embarrassment… Thanks, and thought I had disabled it!
Thanks for making me double check
October 20, 2023 at 5:21 am #1423078Hi madmanbean,
I’m glad that Rikard could help you :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘critical error editing page – TYPE E Error’ is closed to new replies.