php - 调用未定义函数 curl_version

标签 php wordpress

您好,我已经在运行 php 5.6 的 ubuntu 14.04 上安装了 wordpress 4.6 站点。

管理页面不可见,我可以在日志中看到以下错误:-

fatal error :调用/var/www/html/files/modules/postie/postie.php 中的未定义函数 curl_version() 第 274 行

我该如何解决这个问题?

我已经确认我们的服务器上安装了 curl 和 php5-curl :-

ubuntu@ip-172-39-6-147:/var/www/html$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.
ubuntu@ip-172-39-6-147:/var/www/html$ sudo apt-get install php5-curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php5-curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.

最佳答案

在当前版本的 Debian 和 Ubuntu 上,您可能可以通过安装 PHP 的 Curl 扩展并重新启动网络服务器来解决此问题。假设网络服务器是 Apache 2:

sudo apt-get install php-curl

sudo service apache2 restart

您可能需要安装更多:

sudo apt-get install curl libcurl3 libcurl3-dev;

关于php - 调用未定义函数 curl_version,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45001345/

相关文章:

PHP - 从其他域发送电子邮件而不是垃圾邮件!

php - Laravel 5转换验证属性

php - ppa :ondrej/nginx? 的目的是什么

MySQL 触发器 - 修剪并创建 2 条记录

php - 根据 Woocommerce 选择的付款方式,在结账时更改带有图像的付款按钮

mysql - 如何在持续交付中为 WordPress 执行高级数据库 merge ?

PHP PDO MYSQL WHERE ALL

php - XDebug,如何禁用单个 .php 文件的远程调试?

php - 获取按月分组的 wordpress 帖子

Wordpress - 删除所有没有角色的用户