开源版22(17-18-22升级)保存测试报告时报错 Error: Unexpected end of JSON input
POST: /zentao/testreport-create-0-testtask-12.html?zin=1 Error: Unexpected end of JSON input Response:

禅道保存测试报告时保错,但日志中看到保存时间:apache_access.log.20260327:114.86.68.103 - - [27/Mar/2026:09:52:22 +0800] "POST /zentao/testreport-create-0-testtask-12.html?zin=1 HTTP/1.1" 200 - "http://opteeq.duckdns.org:9092/zentao/testreport-create-0-testtask-12.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36"
但在错误日志中没有看到相关内容:
[root@192 logs]# grep 09:52 error
[root@192 logs]# tail mysql_error.log
2026-03-27 9:34:08 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2026-03-27 9:34:08 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2026-03-27 9:34:08 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2026-03-27 9:34:08 0 [Note] InnoDB: 10.6.20 started; log sequence number 438959719; transaction id 231042
2026-03-27 9:34:08 0 [Note] InnoDB: Loading buffer pool(s) from /opt/zbox/data/mysql/ib_buffer_pool
2026-03-27 9:34:08 0 [Note] Plugin 'FEEDBACK' is disabled.
2026-03-27 9:34:08 0 [Note] Server socket created on IP: '127.0.0.1'.
2026-03-27 9:34:08 0 [Note] /opt/zbox/run/mysql/mariadbd: ready for connections.
Version: '10.6.20-MariaDB' socket: '/opt/zbox/tmp/mysql/mysql.sock' port: 3306 MariaDB Server
2026-03-27 9:34:08 0 [Note] InnoDB: Buffer pool(s) load completed at 260327 9:34:08
[root@192 logs]# tail php_error_log
[27-Mar-2026 09:33:43 Asia/Shanghai] PHP Parse error: syntax error, unexpected '>', expecting end of file in /opt/zbox/app/zentao/config/my.php on line 14
[27-Mar-2026 09:34:02 Asia/Shanghai] PHP Parse error: syntax error, unexpected '>', expecting end of file in /opt/zbox/app/zentao/config/my.php on line 14
[27-Mar-2026 01:34:06 UTC] PHP Warning: Module 'xlswriter' already loaded in Unknown on line 0
[27-Mar-2026 01:34:09 UTC] PHP Warning: Module 'xlswriter' already loaded in Unknown on line 0
[27-Mar-2026 01:34:09 UTC] PHP Warning: Module 'xlswriter' already loaded in Unknown on line 0
[27-Mar-2026 01:34:10 UTC] PHP Warning: Module 'xlswriter' already loaded in Unknown on line 0
[27-Mar-2026 01:34:10 UTC] PHP Warning: Module 'xlswriter' already loaded in Unknown on line 0
[27-Mar-2026 01:34:10 UTC] PHP Warning: Module 'xlswriter' already loaded in Unknown on line 0
[27-Mar-2026 01:34:10 UTC] PHP Warning: Module 'xlswriter' already loaded in Unknown on line 0
[27-Mar-2026 01:34:10 UTC] PHP Warning: Module 'xlswriter' already loaded in Unknown on line 0
[root@192 logs]# tail apache_error.log.20260327
[Fri Mar 27 09:31:18.444640 2026] [mpm_prefork:notice] [pid 1073949:tid 1073949] AH00163: Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips SVN/1.14.4 configured -- resuming normal operations
[Fri Mar 27 09:31:18.444673 2026] [core:notice] [pid 1073949:tid 1073949] AH00094: Command line: '/opt/zbox/run/apache/httpd'
[Fri Mar 27 09:32:44.947803 2026] [mpm_prefork:notice] [pid 1074982:tid 1074982] AH00163: Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips SVN/1.14.4 configured -- resuming normal operations
[Fri Mar 27 09:32:44.947844 2026] [core:notice] [pid 1074982:tid 1074982] AH00094: Command line: '/opt/zbox/run/apache/httpd'
[Fri Mar 27 09:33:29.359213 2026] [mpm_prefork:notice] [pid 1076057:tid 1076057] AH00163: Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips SVN/1.14.4 configured -- resuming normal operations
[Fri Mar 27 09:33:29.359245 2026] [core:notice] [pid 1076057:tid 1076057] AH00094: Command line: '/opt/zbox/run/apache/httpd'
[Fri Mar 27 09:34:09.879806 2026] [mpm_prefork:notice] [pid 1076985:tid 1076985] AH00163: Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips SVN/1.14.4 configured -- resuming normal operations
[Fri Mar 27 09:34:09.879841 2026] [core:notice] [pid 1076985:tid 1076985] AH00094: Command line: '/opt/zbox/run/apache/httpd'
您好,咱们升级步骤是不是原版本→17.8→18.13→22.0版本过渡升级.如果不是可能会有问题,建议回退重新走升级
如果升级路径没问题,可以打开debug,看看具体的php报错日志
进下禅道服务器打开debug,看到具体报错日志,可以把报错日志发出来看下
(1)ZenTao\app\zentao\config\my.php 或 /opt/zbox/app/zentao/config/my.php中debug的值改成true
(2)重新操作一下有问题的页面
(3)查看日志 zentao/tmp/log/文件中php开头的今天的文件有什么报错。注:不要找sql开头的文件。
(4)问题排查完成之后记得关闭debug,改为false
我的微信:13256858138,Q:3620458865。也可以直接加我好友,协助您看下此问题。
升级过程如你所说
打开debug后,页面报错:
POST: /zentao/testreport-create-0-testtask-12.html?zin=1 Error: Unexpected token '<', "<br /> <b>"... is not valid JSON Response:Fatal error: Uncaught EndResponseException: #0 lib/cache/cache.class.php(578): baseRouter->triggerError('The id is empty', '/opt/zbox/app/z...', 578, true) #1 lib/cache/cache.class.php(668): Zentao\Cache\cache->log('The id is empty', '/opt/zbox/app/z...', 668) #2 lib/base/mao/mao.class.php(496): Zentao\Cache\cache->fetch('`zt_project`', 0) #3 module/user/model.php(2622): baseMao->fetch() #4 module/user/model.php(1861): userModel->checkProjectPriv(Object(stdClass), 'tom', Array, Array, Array) #5 module/user/model.php(1971): userModel->getSprintView('tom', Array, Array, Array, Array, Array, Array) #6 module/user/model.php(2115): userModel->computeUserView('tom') #7 module/common/model.php(335): userModel->grantUserView('tom', Array) #8 module/common/model.php(57): commonModel->initAuthorize() #9 framework/base/router.class.php(1630): commonModel->setUserConfig() #10 www/index.php(47): baseRouter->loadCommon() #11 www/index.php(102): {closure}() #12 {main}ERROR: The id is empty in lib/cache/cache.class.php on line 578, last in /opt/zbox/app/zentao/framework/base/router.class.php on line 3747 13:06:59 Uncaught EndResponseException: #0 lib/cache/cache.class.php(578): baseRouter->triggerError('The id is empty', '/opt/zbox/app/z...', 578, true) #1 lib/cache/cache.class.php(668): Zentao\Cache\cache->log('The id is empty', '/opt/zbox/app/z...', 668) #2 lib/base/mao/mao.class.php(496): Zentao\Cache\cache->fetch('`zt_project`', 0) #3 module/user/model.php(2622): baseMao->fetch() #4 module/user/model.php(1861): userModel->checkProjectPriv(Object(stdClass), 'tom', Array, Array, Array) #5 module/user/model.php(1971): userModel->getSprintView('tom', Array, Array, Array, Array, Array, Array) #6 module/user/model.php(2115): userModel->computeUserView('tom') #7 module/common/model.php(335): userModel->grantUserView('tom', Array) #8 module/common/model.php(57): commonModel->initAuthorize() #9 framework/base/router.class.php(1630): commonModel->setUserConfig() #10 www/index.php(47): baseRouter->loadCommon() #11 www/index.php(102): {closure}() #12 {main}ERROR: The id is empty in lib/cache/cache.class.php on line 578, last in framework/base/router.class.php on line 3747 when visiting
3 php log:
12:58:38 #0 framework/xuanxuan.class.php(432): baseRouter->triggerError('Input data is n...', '/opt/zbox/app/z...', 432)
#1 framework/xuanxuan.class.php(106): xuanxuan->decrypt(NULL)
#2 framework/xuanxuan.class.php(167): xuanxuan->setInput()
#3 www/x.php(65): xuanxuan->parseRequest()
#4 {main}ERROR: Input data is not json. in framework/xuanxuan.class.php on line 432, last called by framework/xuanxuan.class.php on line 106 through function decrypt.
in /opt/zbox/app/zentao/framework/base/router.class.php on line 3249 when visiting
12:59:38 #0 framework/xuanxuan.class.php(432): baseRouter->triggerError('Input data is n...', '/opt/zbox/app/z...', 432)
#1 framework/xuanxuan.class.php(106): xuanxuan->decrypt(NULL)
#2 framework/xuanxuan.class.php(167): xuanxuan->setInput()
#3 www/x.php(65): xuanxuan->parseRequest()
#4 {main}ERROR: Input data is not json. in framework/xuanxuan.class.php on line 432, last called by framework/xuanxuan.class.php on line 106 through function decrypt.
in /opt/zbox/app/zentao/framework/base/router.class.php on line 3249 when visiting





精品资料包
1V1产品演示
免费试用增强功能
专属顾问答疑支持


