PHP Catchable fatal error: Argument 1 passed to QM_Output_Html_Assets::dependen
-
Using QM 2.8.1
I have a plugin that loads about a dozen JS files in the footer. I’m hooking into the ‘wp_print_footer_script’ action
add_action( ‘wp_print_footer_scripts’, ‘learndash_unload_resources’, 1 );
to remove the script if they are not being used. They are used by some shortcodes which can be added to the post content and/or widgets. When the script are dequeued via wp_deregister_script() I’m seeing the following error reporting in the site error_log
[23-Feb-2016 14:27:23 UTC] PHP Catchable fatal error: Argument 1 passed to QM_Output_Html_Assets::dependency_row() must be an instance of _WP_Dependency, boolean given, called in /usr/local/www/htdocs/projects/WPValet/local.ld-test-2.com/wp-content/plugins/query-monitor/output/html/assets.php on line 105 and defined in /usr/local/www/htdocs/projects/WPValet/local.ld-test-2.com/wp-content/plugins/query-monitor/output/html/assets.php on line 113
- The topic ‘PHP Catchable fatal error: Argument 1 passed to QM_Output_Html_Assets::dependen’ is closed to new replies.