I am wondering why i get this error. I updated my php from 5.6.22 to 5.6.40 and now i get this error. This was working fine in previous version but suddenly it turns out like this.
Fatal error: Call to undefined function imagewebp()
Also if try var_dump(function_exists('imagewebp'));
it gives false
now.
This is my current PHP version
This is the GD Module
So what has to be done to re-enable it in my server.
I have a Cent-OS instance in AWS.
2
Answers
The
WBMP Support => enabled
is not enough)You have to add
--with-vpx-dir=
to your configure line or--with-webp-dir
for PHP 7.0+For me
PHP: 8
I simply uncommented the extension gd and the function worked
in my php.ini file