当前位置:网站首页 > WordPress教程 > 正文
记一个SSL报错Warning: getimagesize(): SSL operation failed with code 1
作者:98wpeu发布时间:2026-02-18分类:WordPress教程浏览:277
导读:今天在给一个外贸网站安装主题的时候,导入完毕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
相关推荐
- 执行npm后出现报错:request to https://registry.npm.taobao.org/vite-plugin-vue-devtools failed SSL过期 - Web前端
- 聊聊对res?.code === 200,res?.data?.code以及res && res.code === 200 这些写法的理解 - Web前端
- 微信小程序开发工具升级到最新版测试程序报错 - Web前端
- Vue前端开发报错提示“npm ERR! missing script: dev”的解决方案 - Web前端
- 网站程序搬家在phpMyAdmin上传mysql的时候报错:#1046 - No database selected - Web前端
- 为什么会报错SyntaxError: JSON.parse: bad parsing? - Web前端
- 判断和解决TypeError: 'x' is not iterable报错信息的应用 - Web前端
- 查找报错信息“TypeError: 'x' is not iterable”的真凶 - Web前端
- 使用vue或者react项目,启动时如何修复这样的报错:Error: Cannot find module 'E:\..........' - Web前端
- jquery 重写 ajax提交并判断权限后 使用load方法报错解决方法 - Web前端
- WordPress教程排行
- 最近发表
-
- WordPress 应用:如何修改模版头部文件中的 wp_head() - Web前端
- SEO 优化:YouTube SEO Plugin 提升影片流量 - Web前端
- 使用 React 服务器组件在 Next.js 13 中进行国际化 - Web前端
- 3 个意想不到的技术 SEO 问题示例(以及如何解决它们) - Web前端
- Vue 技术专题:Suspense、路由模式与单元测试实践 - Web前端
- 如何防止 WordPress SQL 注入攻击? - Web前端
- SEO 优化:如何围绕技术SEO框架以构建和制定策略? - Web前端
- SEO优化:YouTube SEO 关键词研究工具 - Web前端
- 2025 年帮助代理机构提升客户业绩的 14 款最佳 SEO 工具 - Web前端
- 客户端:服务器之间设置本地 DNS 服务器 - Web前端


