-
AuthorPosts
-
December 12, 2021 at 2:40 am #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 880Thank you
MauroDecember 13, 2021 at 4:14 pm #1332600Hey,
Thanks for contacting us!
Could you please post WP admin and FTP logins here privately so we can look into it?
Best regards,
YigitDecember 13, 2021 at 7:11 pm #1332642This reply has been marked as private.December 13, 2021 at 7:13 pm #1332643This reply has been marked as private.December 13, 2021 at 9:44 pm #1332662This reply has been marked as private.December 14, 2021 at 2:34 pm #1332772Hi,
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,
YigitDecember 14, 2021 at 3:26 pm #1332803Yes 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
MauroDecember 14, 2021 at 4:17 pm #1332810Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.