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

    Hello,
    I was testing in my staging environment Version 4.8.8, but I got the following Fatal Error in class-asset-manager.php
    Error goes away if I disable in the performance options JavaScript files merging and compression
    I tried to clear enfold CSS AN JS cache and re-enable file merging, but error return
    ########################################
    Fatal error: Uncaught Error: Attempt to assign property “src” on null in /www/sufiit_944/public/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:880 Stack trace: #0 /www/sufiit_944/public/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php(289): aviaAssetManager->try_deregister_scripts(‘avia-footer-scr…’) #1 /www/sufiit_944/public/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php(112): aviaAssetManager->merge(‘js’, ‘avia-footer-scr…’, Array) #2 /www/sufiit_944/public/wp-includes/class-wp-hook.php(303): aviaAssetManager->minimize_footer_scripts(”) #3 /www/sufiit_944/public/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #4 /www/sufiit_944/public/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #5 /www/sufiit_944/public/wp-includes/script-loader.php(2066): do_action(‘wp_print_footer…’) #6 /www/sufiit_944/public/wp-includes/class-wp-hook.php(303): wp_print_footer_scripts(”) #7 /www/sufiit_944/public/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #8 /www/sufiit_944/public/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #9 /www/sufiit_944/public/wp-includes/general-template.php(3031): do_action(‘wp_footer’) #10 /www/sufiit_944/public/wp-content/themes/enfold/footer.php(333): wp_footer() #11 /www/sufiit_944/public/wp-includes/template.php(770): require_once(‘/www/sufiit_944…’) #12 /www/sufiit_944/public/wp-includes/template.php(716): load_template(‘/www/sufiit_944…’, true, Array) #13 /www/sufiit_944/public/wp-includes/general-template.php(92): locate_template(Array, true, true, Array) #14 /www/sufiit_944/public/wp-content/themes/enfold/page.php(56): get_footer() #15 /www/sufiit_944/public/wp-includes/template-loader.php(106): include(‘/www/sufiit_944…’) #16 /www/sufiit_944/public/wp-blog-header.php(19): require_once(‘/www/sufiit_944…’) #17 /www/sufiit_944/public/index.php(17): require(‘/www/sufiit_944…’) #18 {main} thrown in /www/sufiit_944/public/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php on line 880

    Thank you
    Mauro

    #1332600

    Hey,

    Thanks for contacting us!

    Could you please post WP admin and FTP logins here privately so we can look into it?

    Best regards,
    Yigit

    #1332642
    This reply has been marked as private.
    #1332643
    This reply has been marked as private.
    #1332662
    This reply has been marked as private.
    #1332772

    Hi,

    Thanks for the information. Issue seems to be related to Asset CleanUp: Page Speed Booster plugin. I de-activated it and error went away. Please review your website :)

    Best regards,
    Yigit

    #1332803

    Yes ok but the error is in:
    Attempt to assign property “src” on null in /www/sufiit_944/public/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:88
    Can’t you write it in a way that, whatever happens, it doesn’t return a fatal error?

    Thank you
    Mauro

    #1332810

    Hi Mauro,

    I replaced following line

    $enqueued->registered[ $remove ]->src = '';

    with following one

    if( isset( $enqueued->registered[ $remove ] ) )
    {
    $enqueued->registered[ $remove ]->src = '';
    }

    That helped however added a new section from the plugin for admin on front end.

    I looked more into the plugin settings and the issue is you are compressing files in both plugin and in Enfold. Please disable either one.

    Best regards,
    Yigit

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