Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1463038

    We use enfold as our parent theme. We receive a critical error message. We have solved the problem by commenting out line 1152 in Enfold > config-templatebuilder/avia-template-builder/php/class-asset-manager.php.
    It read “$enqueued->registered[ $remove ]->src = ‘’;”

    Is it possible to deactivate this function via the child theme so that enfold can be updated?
    Many thanks for your help.

    #1463054

    Hey jurgons,

    Which version of the theme and PHP version are you running?

    Best regards,
    Rikard

    #1463208

    PHP version: 8.1.29
    version of the theme 5.7.1

    Best regards,
    D.J.

    #1463214

    Hi,

    Could you try updating the theme to the latest version (6.0.2) to see if that helps please? https://kriesi.at/documentation/enfold/theme-update/. If not, then please try to deactivate all plugins and any custom code or modification you might have added.

    Best regards,
    Rikard

    #1463492

    the latest theme is installed and all plugins and modifications have been deactivated. Unfortunately, the problem persists.
    Best regards,
    DJ

    #1463504

    Hi,

    Thanks for the update. We cannot reproduce this problem, and we’ve had no other reports of it being a problem for other users either. Where can we see and reproduce the problem that you are having? Also please share server error logs with us.

    Best regards,
    Rikard

    #1463623

    Fatal error: Uncaught Error: Attempt to assign property “src” on null
    in /homepages/33/d4297991361/htdocs/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php on line 1152

    Call stack:

    aviaAssetManager::try_deregister_scripts()
    wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:433
    aviaAssetManager::merge()
    wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:256
    aviaAssetManager::minimize_footer_scripts()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-includes/script-loader.php:2246
    wp_print_footer_scripts()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-includes/general-template.php:3081
    wp_footer()
    wp-content/themes/enfold/footer.php:338
    require_once()
    wp-includes/template.php:810
    load_template()
    wp-includes/template.php:745
    locate_template()
    wp-includes/general-template.php:92
    get_footer()
    wp-content/themes/optimal-systems/template-builder.php:171
    include()
    wp-includes/template-loader.php:106
    require_once()
    wp-blog-header.php:19
    require()
    index.php:17

    Best regards,
    DJ

    #1463678

    Hi,

    Thanks for that. Could you give us access to the site where we can see the actual problem as well please?

    Best regards,
    Rikard

    #1463818
    This reply has been marked as private.
    #1463826

    Private

    • This reply was modified 3 months, 3 weeks ago by Rikard.
    #1463835

    Hi,

    Thanks for that. The error message disappear if the parent theme is active, meaning the problem is coming from your child theme. Please try removing all customisations from the child then add them back one by one to see when then problem starts.

    Best regards,
    Rikard

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