rosell-dk / webp-express

Wordpress plugin for serving autogenerated WebP images instead of jpeg/png to browsers that supports WebP
GNU General Public License v3.0
221 stars 63 forks source link

Possible PHP 8 Type error – Uncaught Error: array_merge() #569

Closed prionkor closed 2 years ago

prionkor commented 2 years ago

This happens when I try to test Imagick from settings page

Fatal error: Uncaught Error: array_merge(): Argument #2 must be of type array, null given
in /var/app/current/wp-content/plugins/webp-express/lib/classes/Convert.php on line 294

Call stack:
array_merge()
wp-content/plugins/webp-express/lib/classes/Convert.php:294
WebPExpress\Convert::processAjaxConvertFile()
wp-includes/class-wp-hook.php:307
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:331
WP_Hook::do_action()
wp-includes/plugin.php:476
do_action()
wp-admin/admin-ajax.php:187