【发布时间】:2023-03-26 15:17:01
【问题描述】:
我目前在我的 OTRS 系统上遇到此错误,我无法弄清楚发生了什么。
系统日志错误:
在 Kernel::System::Console::Command::Maint::Survey::RequestsDelete 中执行 Execute() 时出错:在连接 (.) 或 / 处的字符串中使用未初始化的值 $Row[3] opt/otrs/Kernel/System/Console/Command/Maint/Survey/RequestsDelete.pm 第 132 行。
部分代码出错:
# fetch the result
while ( my @Row = $DBObject->FetchrowArray() ) {
my $Result = join(
' ', "Survey:" . $Row[0] . "\t",
"TicketNumber:" . $Row[1] . "\t",
"SendTime:" . $Row[2] . "\t",
"VoteTime:" . $Row[3] . "\t",
"CreateTime:" . $Row[4] . "\t"
);
$Self->Print("$Result\n");
}
【问题讨论】:
-
表示变量
$Row[3]没有赋值或者赋值为undef。可能是warnings已启用,这就是弹出此消息的原因(这很好)。 -
一个安静的奇怪,因为我在前端看不到这一行。此外,我在 ssh 上运行 RequestsDelete 并且没有发生错误并且日志仍然是空的。在此处打印:imgur.com/73tEW8E
-
不管这个警告,
$Result值应该打印在控制台中。 -
我该怎么做?