已解决 点击任务开始,报错PHP版本问题

点击执行任务的开始和完成都弹出如下报错


Fatal error: The file /opt/zbox/app/zentao/extension/custom/task/ext/model/class/gantt.class.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 or later. Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in  Unknown on line  0

08:21:59 The file /opt/zbox/app/zentao/extension/custom/task/ext/model/class/gantt.class.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 or later.
Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknown on line 0 when visiting task-start-348

Fatal error: Uncaught EndResponseException in /opt/zbox/app/zentao/framework/base/router.class.php:3419 Stack trace: #0 /opt/zbox/app/zentao/framework/helper.class.php(323): EndResponseException::create('') #1 /opt/zbox/app/zentao/framework/base/router.class.php(3098): helper::end() #2 /opt/zbox/app/zentao/framework/router.class.php(350): baseRouter->saveError(16, 'The file /opt/z...', 'Unknown', 0) #3 /opt/zbox/app/zentao/framework/base/router.class.php(2954): router->saveError(16, 'The file /opt/z...', 'Unknown', 0) #4 [internal function]: baseRouter->shutdown() #5 {main} thrown in  /opt/zbox/app/zentao/framework/base/router.class.php on line  3419

禅道版本 18.8 源码包
操作系统 Other
客户端浏览器 Chrome

提问者: 林孝涛 悬赏:20 日期: 2023-11-15 08:25:28 答案:1 点击:284

获取技术支持

QQ: 电话:
设置备注
答案列表
最佳答案
2023/11/15

1、使用admin用户登录,后台-插件管理中检查下是否安装了甘特图的插件,可以在官网中重新下载对应php版本的插件;

2、PHP版本查看方式

  • Windows系统查看方式:在 xampp/start.exe 禅道面板查看或者 /xampp/php/php.exe 右键-“属性-详情信息”页签下看下版本。
  • Linux 一键安装包php版本:/opt/zbox/bin/php -v 查看版本。
  • 源码包 或 docker (进入容器内):命令行 php -v 查看 php 版本。

3、如果当前环境php版本为7.4,可以下载php7.2版本的插件覆盖安装下。

2023/11/15
万分感谢