调用未定义的函数imagewebp() [英] Call to undefined function imagewebp()

查看:206
本文介绍了调用未定义的函数imagewebp()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道为什么会出现此错误.我将我的PHP从5.6.22更新到5.6.40,现在我收到此错误.在以前的版本中,此方法运行良好,但突然发现是这样的.

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.

严重错误:调用未定义的函数imagewebp()

Fatal error: Call to undefined function imagewebp()

如果尝试 var_dump(function_exists('imagewebp')); ,它也会给出 false .

Also if try var_dump(function_exists('imagewebp')); it gives false now.

这是我当前的PHP版本

This is my current PHP version

这是GD模块

因此,必须做些什么才能在我的服务器中重新启用它.我在AWS中有一个Cent-OS实例.

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

推荐答案

WBMP支持=>启用是不够的)您必须将-with-vpx-dir = 添加到您的配置行中,或者将-with-webp-dir 添加到PHP 7.0 +

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+

这篇关于调用未定义的函数imagewebp()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆