docker安装18.0,到第三步,提示“数据表已经存在,您之前应该有安装过禅道,继续安装请返回前页并选择清空数据”,返回勾选清除数据,出现错误提示“SQLSTATE[HY000]: General error: 1030 Got error 44 "Channel number out of range" from storage engine InnoDB”。请问该如何解决?
Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in /web/zentaopms/module/story/model.php:903
Stack trace:
#0 /web/zentaopms/module/story/model.php(903): array_filter()
#1 /web/zentaopms/module/story/control.php(836): storyModel->update()
#2 /web/zentaopms/framework/base/router.class.php(2199): story->edit()
#3 /web/zentaopms/www/index.php(74): baseRouter->loadModule()
#4 {main}
thrown in /web/zentaopms/module/story/model.php on line 903 when visiting /index.php?m=story&f=edit&storyID=341&kanbanGroup=default&storyType=story&tid=yyj5oi8g
===========
报错内容:
Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in /web/zentaopms/module/story/model.php:903
Stack trace:
#0 /web/zentaopms/module/story/model.php(903): array_filter()
#1 /web/zentaopms/module/story/control.php(836): storyModel->update()
#2 /web/zentaopms/framework/base/router.class.php(2199): story->edit()
#3 /web/zentaopms/www/index.php(74): baseRouter->loadModule()
#4 {main}
thrown in /web/zentaopms/module/story/model.php on line 903 when visiting /index.php?m=story&f=edit&storyID=341&kanbanGroup=default&storyType=story&tid=yyj5oi8g
=============
//出现问题的源码是:
$storyPlan = !empty($_POST['plan']) ? array_filter($_POST['plan']) : array();
// 当 plan 不为空时,进行array的处理,但是实际POST传递的时候 plan 是 STRING.
直接导致 修改提交失败,请修正。
代码包 18.0 PHP8.0的代码包
运行环境
UBT 22.04
PHP 8.1 或 PHP 8.0 均报错。
前端浏览器 CHROME