后台接口栏目下载小程序包出错
2019-08-30 18:27:39
星海沉浮
  • 访问次数: 59
  • 注册日期: 2018-09-25
  • 最后登录: 2019-09-10
  • 我的积分: 165
  • 门派等级: 无门派

程序版本:蝉知2.0

参考官方帮助文档:https://www.chanzhi.org/book/weixin/375.html

在执行到在后台下载小程序包这一步时,下载的小程序包名为wmp.zip,但压缩包文件不到1KB,解压缩错误,提示压缩包存在问题。

试了很多次都这样。请问是什么原因呢?谢谢!

沙发
2019-09-02 13:55:18
石洋洋
  • 访问次数: 1125
  • 注册日期: 2013-11-25
  • 最后登录: 2019-11-21
  • 我的积分: 891
  • 门派等级: 无门派
chanzhi(eps)\system\config\my.php中 debug值改成 2 重新操作一下 看一下 chanzhi(eps)\system\tmp\log\php开头的文件有什么记录。看看是否有相应的函数禁用了?
板凳
2019-09-02 19:18:06
星海沉浮
  • 访问次数: 59
  • 注册日期: 2018-09-25
  • 最后登录: 2019-09-10
  • 我的积分: 165
  • 门派等级: 无门派

谢谢你们!日志如下,删除了对shell_exec函数的禁用就解决问题了




19:10:24 shell_exec() has been disabled for security reasons in module/wmp/control.php on line 102 when visiting /zhl.php?m=wmp&f=downloadpackage

19:10:24 shell_exec() has been disabled for security reasons in module/wmp/control.php on line 102 when visiting /zhl.php?m=wmp&f=downloadpackage

19:10:24 shell_exec() has been disabled for security reasons in module/wmp/control.php on line 102 when visiting /zhl.php?m=wmp&f=downloadpackage

19:10:24 file_get_contents(tmp/wmp/project.config.json): failed to open stream: No such file or directory in module/wmp/control.php on line 104 when visiting /zhl.php?m=wmp&f=downloadpackage

19:10:24 file_put_contents(tmp/wmp/project.config.json): failed to open stream: No such file or directory in module/wmp/control.php on line 107 when visiting /zhl.php?m=wmp&f=downloadpackage

19:10:24 file_get_contents(tmp/wmp/config/my.js): failed to open stream: No such file or directory in module/wmp/control.php on line 110 when visiting /zhl.php?m=wmp&f=downloadpackage

19:10:24 file_put_contents(tmp/wmp/config/my.js): failed to open stream: No such file or directory in module/wmp/control.php on line 115 when visiting /zhl.php?m=wmp&f=downloadpackage

19:10:24 shell_exec() has been disabled for security reasons in module/wmp/control.php on line 117 when visiting /zhl.php?m=wmp&f=downloadpackage

19:10:24 filesize(): stat failed for tmp/wmp.zip in module/wmp/control.php on line 122 when visiting /zhl.php?m=wmp&f=downloadpackage

19:10:24 readfile(tmp/wmp.zip): failed to open stream: No such file or directory in module/wmp/control.php on line 123 when visiting /zhl.php?m=wmp&f=downloadpackage

星海沉浮 最后编辑, 2019-09-02 23:10:26
1/1