skip to Main Content

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 my current PHP Verison

This is the GD Module

GD Extension

So what has to be done to re-enable it in my server.
I have a Cent-OS instance in AWS.

2

Answers


  1. 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+

    Login or Signup to reply.
  2. For me
    PHP: 8

    I simply uncommented the extension gd and the function worked

    extension=gd
    

    in my php.ini file

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search