Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1464396

    Hi there,

    I have the Enfold theme (version 3.8) and recently I have found that I am unable to edit pages. There is a message at the top of the page stating “This Block has encountered an error and cannot be previewed.”

    The error details in the email received was as follows:
    Error Details
    =============
    An error of type E_ERROR was caused in line 489 of the file /home/media/sydneydjservices.com.au/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php. Error message: Uncaught Error: Cannot use string offset as an array in /home/media/sydneydjservices.com.au/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php:489
    Stack trace:
    #0 /home/media/sydneydjservices.com.au/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php(443): aviaShortcodeTemplate->create_sortable_editor_element(Array)
    #1 /home/media/sydneydjservices.com.au/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/template-builder.class.php(397): aviaShortcodeTemplate->prepare_editor_element()
    #2 /home/media/sydneydjservices.com.au/wp-includes/class-wp-hook.php(324): AviaBuilder->js_template_editor_elements(”)
    #3 /home/media/sydneydjservices.com.au/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
    #4 /home/media/sydneydjservices.com.au/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #5 /home/media/sydneydjservices.com.au/wp-includes/media-template.php(1570): do_action

    Can anyone assist?

    #1464405

    Hey richard918,
    I have checked the site above and indeed your version is 3.8 unfortunately this is very old and you must update to v6.0.2
    I assume that you have not modified any theme files as it looks like you are not using a child theme, if you know that some theme files were modified by a developer then these modifications will be lost. I doubt this, but must tell you.
    OK, so at your point I recommend first creating a staging site to test on, most cPanel webhosts have a staging site option, some in the dashboard:
    staging-1.jpeg
    Others add the option in the Softaculous WordPress Management
    2022-12-11_001.jpeg
    There may be other staging site options in different cPanel servers, these are the two that I have seen.
    Then you can test the update on your new staging site and your live site will stay online.
    Then to update your version of Enfold you will need to download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New
    WordPress_Appearance_Themes_Add-Themes_Add-New.jpg
    after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue
    Installing_theme_from_uploaded_file_This_theme_is_already_installed.jpg
    then you will see the Theme updated successfully message.
    Theme_updated_successfully.jpg
    If this staging site works fine then do the same for your live site, if you see errors on your staging site then post the admin login so we can check.
    I don’t think that you will have errors, but it is better to be safe.

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.