Hallo OTRS-Community,
habe in Anlehnung an das Modul PendingCheck.pm ein neues Console-Command
FAQValidCheck.pm erstelt.
Dieses Modul liegt im Verzeichnis:
/Kernel/System/Console/Command/Maint/FAQ
Ich wollte dieses Modul nun testweise auf der Konsole ausführen und hab
Fehlermeldungen in die Datei: FAQValidCheck.txt schreiben lassen.
Auszug aus FAQValidCheck.txt
Compilation failed in require at /opt/otrs/Kernel/System/ObjectManager.pm line
254.
at /opt/otrs/Kernel/System/Console/Command/List.pm line 53.
List.pm:
for my $Command ( $Self->ListAllCommands() ) {
Line 53: my $CommandObject = $Kernel::OM->Get($Command);
my $CommandName = $CommandObject->Name();
# Group by toplevel namespace
my ($CommandNamespace) = $CommandName =~ m/^([^:]+)::/smx;
$CommandNamespace //= '';
if ( $CommandNamespace ne $PreviousCommandNameSpace ) {
$UsageText .= "<yellow>$CommandNamespace</yellow>\n";
$PreviousCommandNameSpace = $CommandNamespace;
}
Muss ich das Command-Modul noch im System registrieren?
Ein
bin/otrs.Console.pl Maint::Config::Rebuild
hat leider nichts gebracht.
Wenn ich das Modul ausführen möchte erhalte ich nun die Fehlermeldung:
Error: Could not find
Kernel::System::Console::Command::Maint::FAQ::FAQValidCheck.
Vielen Dank
Gruß
Sepp