296287

开源版22(17-18-22升级)保存测试报告时报错 Error: Unexpected end of JSON input

回帖
回帖数 5
阅读数 30
发表时间 2026-03-27 10:13:55
🐋
tom si楼主

POST: /zentao/testreport-create-0-testtask-12.html?zin=1 Error: Unexpected end of JSON input Response:

f_ef32555487506c906d302f501de09fd0&t=jpe

禅道保存测试报告时保错,但日志中看到保存时间: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'

5个回复
🎂
禅道-王誉霖沙发

您好,咱们升级步骤是不是原版本→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。也可以直接加我好友,协助您看下此问题。

2026-03-27 10:32:30 禅道-王誉霖 回帖
🐋
tom si板凳

刚才发日志失败,加您微信,谢谢

2026-03-27 13:07:34 tom si 回帖
🐋
tom si#3
  1. 升级过程如你所说

  2. 打开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

2026-03-27 13:08:33 tom si 回帖
🐋
tom si#4

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

2026-03-27 13:09:28 tom si 回帖
🎂
禅道-王誉霖#5回复#4

可以参考这个调整下代码

f_8d275cb9538c5b66bed613e3a9f06498&t=png

2026-03-27 13:13:36 禅道-王誉霖 回帖
联系我们
联系人
刘斌/高级客户经理
电话(微信)
17685869372
QQ号码
526288068
联系邮箱
liubin@chandao.com
相关帖子
返回顶部
客服头像
刘斌
高级客户经理
客服微信
17685869372
526288068
统一服务热线 4006-8899-23
我要提问提问有任何问题,您都可以在这里提问。问题反馈反馈点击这里,让我们聆听您的建议与反馈。