ShortPixel throwing error (PHP 8 related?)
-
Hi,
I am getting these errors once every few days and don’t know where to start debugging:
WordPress version 5.6
Current theme: My Listing (version 2.6.5) Current plugin: ShortPixel Adaptive Images (version 2.1.3)
PHP version 8.0.0Error Details
=============
An error of type E_ERROR was caused in line 636 of the file /www/pokerdiy_125/public/wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php. Error message: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, ShortPixel\AI\Options\Option given in /www/pokerdiy_125/public/wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php:636
Stack trace:
#0 /www/pokerdiy_125/public/wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php(636): array_filter(Object(ShortPixel\AI\Options\Option), Object(Closure))
#1 /www/pokerdiy_125/public/wp-content/plugins/shortpixel-adaptive-images/includes/controllers/lqip.class.php(263): ShortPixel\AI\LQIP->filterWithProcessed(Object(ShortPixel\AI\Options\Option), Array)
#2 /www/pokerdiy_125/public/wp-includes/class-wp-hook.php(287): ShortPixel\AI\LQIP->eventHandler()
#3 /www/pokerdiy_125/public/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
#4 /www/pokerdiy_125/public/wp-includes/plugin.php(551): WP_Hook->do_action(Array)
#5 /www/pokerdiy_125/public/wp-cron.php(138): do_action_ref_array(‘spai_lqip_gener…’, Array)
#6 {main}
thrown
- The topic ‘ShortPixel throwing error (PHP 8 related?)’ is closed to new replies.