Windows 2008 サーバーで OTRS 3.2.11 を使用しています。Kernel/Output/HTML/NotificationUIDCheck.pm ファイルを修正して、「スーパーユーザー アカウントを使用しないでください...」という赤い警告メッセージを取り除きました。現在、メッセージは表示されなくなりましたが、ログ ファイルにはこのメッセージが継続的に表示されています。
[Sun May 18 07:59:54 2014][Error][Kernel::Output::HTML::Layout::NavigationBar][2932] Module Kernel/Output/HTML/NotificationUIDCheck.pm not found/could not be loaded!
実行中の NotificationUIDCheck.pm は次のとおりです。
package Kernel::Output::HTML::NotificationUIDCheck;
use strict;
use warnings;
sub new {
my ( $Type, %Param ) = @_;
# allocate new hash for object
my $Self = {};
bless( $Self, $Type );
# get needed objects
for (qw(ConfigObject LogObject DBObject LayoutObject UserID)) {
$Self->{$_} = $Param{$_} || die "Got no $_!";
}
return $Self;
}
元のファイルは次のようなものでした:
package Kernel::Output::HTML::NotificationUIDCheck;
use strict;
use warnings;
sub new {
my ( $Type, %Param ) = @_;
# allocate new hash for object
my $Self = {};
bless( $Self, $Type );
# get needed objects
for (qw(ConfigObject LogObject DBObject LayoutObject UserID)) {
$Self->{$_} = $Param{$_} || die "Got no $_!";
}
return $Self;
}
sub Run {
my ( $Self, %Param ) = @_;
# return if it's not root@localhost
return '' if $Self->{UserID} != 1;
# show error notfy, don't work with user id 1
return $Self->{LayoutObject}->Notify(
Priority => 'Error',
Link => '$Env{"Baselink"}Action=AdminUser',
Data =>
'$Text{"Don\'t use the Superuser account to work with OTRS! Create new Agents and work with these accounts instead."}',
);
}
1;
何かが足りないと思いますが、それを修正する方法を見つけるのを手伝ってくれませんか!!!