Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1358363

    We are trying to upgrade our site to WP6 and PHP8. We just downloaded a new copy of Enfold 5.0.1 and tried to put it on the site. This was the fatal error that ensued:

    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /app/web/wp-content/themes/enfold/includes/helper-assets.php:54 Stack trace: #0 /app/web/wp/wp-includes/class-wp-hook.php(307): av_asset_merging_settings('none') #1 /app/web/wp/wp-includes/plugin.php(191): WP_Hook->apply_filters('none', Array) #2 /app/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php(58): apply_filters('avf_merge_asset...', Array) #3 /app/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-template-builder.php(1826): aviaAssetManager->__construct(Object(AviaBuilder)) #4 /app/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-template-builder.php(567): AviaBuilder->asset_manager() #5 /app/web/wp/wp-includes/class-wp-hook.php(307): AviaBuilder->init('') #6 /app/web/wp/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #7 /app/web/wp/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #8 /app/web/wp/wp-settings.php(598): do_action('init') #9 /app/web/wp-config.php(16): require_once('/app/web/wp/wp-...') #10 /app/web/wp/wp-load.php(55): require_once('/app/web/wp-con...') #11 /app/web/wp/wp-blog-header.php(13): require_once('/app/web/wp/wp-...') #12 /app/web/index.php(17): require('/app/web/wp/wp-...') #13 {main} thrown in /app/web/wp-content/themes/enfold/includes/helper-assets.php on line 54

    Do you recognize this error? What do we need to do to remediate?

    #1358369

    Hey therealcolbycollege,

    That’s not a general problem with the theme, so we can’t really say what is going wrong. Do you have server error logs which you could share with us? If we could see the actual problem on your site, then that would help as well. Also, which exact version of PHP are you running?

    Best regards,
    Rikard

    #1358375

    Here’s the stage site where the error is happening: https://dev-54ta5gq-aaccttmxglths.us-4.platformsh.site/.

    Here’s the last 1000 lines of our app error log:

    errrors: https://pastebin.com/WkAtzDXz

    #1358429

    Hi,

    Thank you for the info.

    It seems to be an issue with the file compression settings. Please go to the Enfold > Performance panel, then temporarily disable the File Compression settings, both css and scripts. Let us know if the issue persists after deactivating the options.

    Best regards,
    Ismael

    #1358514

    Ok awesome. Thank you. I cannot however get to the backend with this error. Is this something I can do through the DB or WP CLI?

    #1358861

    Hi,

    Sorry for the late response. Try to edit the functions.php file via FTP, then add this code to update the database options and disable the file compression settings.

    add_action('init', function() {
        avia_update_option('merge_css', 'none');
        avia_update_option('merge_js', 'none');
    }, 10);
    

    Make sure to refresh the dashboard or the site after adding the code.

    Best regards,
    Ismael

    #1360195

    This can be closed. Thank you!

    #1360199

    Hi,

    Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Cannot access offset of type string on string in includes/helper-assets.php 54’ is closed to new replies.