联系我们
简单又实用的WordPress网站制作教学
当前位置:网站首页 > WordPress教程 > 正文

记一个SSL报错Warning: getimagesize(): SSL operation failed with code 1

作者:98wpeu发布时间:2026-02-18分类:WordPress教程浏览:3


导读:今天在给一个外贸网站安装主题的时候,导入完毕Demo数据,网站前台图片显示的位置报错,内容如下:Warning:getimagesize():SSLoperationfai...

今天在给一个外贸网站安装主题的时候,导入完毕Demo数据,网站前台图片显示的位置报错,内容如下:

Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /www/wwwroot/*/wp-content/themes/*/framework/class-image.php on line 120

Warning: getimagesize(): Failed to enable crypto in /www/wwwroot/*/wp-content/themes/*/framework/class-image.php on line 120

Warning: getimagesize(https://*/wp-content/uploads/2021/02/video-opacity-tiny.png): failed to open stream: operation failed in /www/wwwroot/*/wp-content/themes/*/framework/class-image.php on line 120

出现这个问题的原因是证书问题,解决办法如下:

1、下载cert证书到服务器任意位置,地址:https://curl.haxx.se/ca/cacert.pem
2、修改php.ini 配置文件里面的openssl.cafile= 为 openssl.cafile=服务器目录/cacert.pem
3、重新执行即可~
————————————————
方法来源:https://blog.csdn.net/default7/article/details/77008973

标签:报错codefailedoperation


WordPress教程排行
最近发表
网站分类
标签列表