Tagged: compatibility
When EWWW Lazy Load is active, I get the following fatal error:
<b>Fatal error</b>: Uncaught ArgumentCountError: Too few arguments to function av_responsive_images::handler_wp_lazy_loading_enabled(), 1 passed in [ROOT]/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 3 expected in [ROOT]/public_html/wp-content/themes/enfold/framework/php/class-responsive-images.php:418
Stack trace:
#0 [ROOT]/public_html/wp-includes/class-wp-hook.php(287): av_responsive_images->handler_wp_lazy_loading_enabled(true)
#1 [ROOT]/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(true, Array)
#2 [ROOT]/public_html/wp-content/plugins/ewww-image-optimizer/classes/class-eio-lazy-load.php(373): apply_filters('wp_lazy_loading...', true)
#3 [ROOT]/public_html/wp-content/plugins/ewww-image-optimizer/classes/class-eio-lazy-load.php(259): EIO_Lazy_Load->parse_img_tag('<img alt='' src...', 'https://secure....')
#4 [ROOT]/public_html/wp-includes/class-wp-hook.php(287): EIO_Lazy_Load->filter_page_out in <b>[ROOT]/public_html/wp-content/themes/enfold/framework/php/class-responsive-images.php</b> on line <b>418</b>
handler_wp_lazy_loading_enabled()
should be able to accept 1, 2 or 3 arguments. To enable this, line 418 of framework/php/class-responsive-image.php should be
public function handler_wp_lazy_loading_enabled( $default, $tag_name = 'img', $context = '' )
I’ve already tested this change and it solved the problem. Please just include it in the next release (there’s no downside).
Hey Hugh,
Thanks for your suggested fix. I’ll forward it to our devs for review and further testing. :)
Best regards,
Nikko
Hi Hugh,
Our dev has already approved the fix you gave and will be included in the next version of Enfold :)
Cheers!
Nikko