有关fecyo1.7.7,微信小程序不能生成海报,提示“Call to undefined function imagecreatefrom”

bug问题 · jiahao1124 · 于 3年前 发布 · 1345 次阅读

安装fecyo1.7.7后,微信小程序不能生成海报,只是提示“生成中”,微信开发工具提示: https://xxxserver.xxx.net/wx/helper/qrcodeproduct 500 (Internal Server Error)

postman发送请求提示:

"name": "Exception",

"message": "Call to undefined function imagecreatefrom()",

"code": 0,

"type": "Error",

"file": "/www/addons/fecmall/fecyo/services/wxmicro/Shareqrcode.php",

"line": 256,

微信小程序后台的上传下载合法域名也设置了

以下是截图:

共收到 2 条回复 问题提问
niubi#13年前 0 个赞

生成海报要获取用户头像
所以要在 downloadFile合法域名 里加入微信头像的链接
https://wx.qlogo.cn
据说也有下面这种
https://thirdwx.qlogo.cn

Fecmall#23年前 0 个赞

1.报错信息为:Call to undefined function imagecreatefrom, 请将报错写到标题里面,方便后面搜索

2.这个报错,不是bug,是你的环境问题,官方的微信小程序demo,生成没有问题

3.原因是你没有php gd扩展库,或者gd库设置有问题,用这个报错信息,百度一下,有很多资料。

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics