Module not registered in Kernel/Config.pm!

Moderator: crythias

Locked
naimson
Znuny newbie
Posts: 28
Joined: 18 Apr 2014, 09:33
Znuny Version: 4.0.6
Real Name: Naim
Company: Azedunet/Enginet

Module not registered in Kernel/Config.pm!

Post by naimson »

Hello.In debugging my case viewtopic.php?f=62&t=30355 i found this error Module Kernel::Modules::AdminSLA not registered in Kernel/Config.pm!

But all module on place ,access rights too . Is there any place where modules are importing?
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Module not registered in Kernel/Config.pm!

Post by RStraub »

You *should* have this in ~otrs/Kernel/Config/Ticket.xml

Code: Select all

    <ConfigItem Name="Frontend::Module###AdminSLA" Required="0" Valid="1">
        <Description Translatable="1">Frontend module registration for the agent interface.</Description>
        <Group>Ticket</Group>
        <SubGroup>Frontend::Admin::ModuleRegistration</SubGroup>
        <Setting>
            <FrontendModuleReg>
                <Group>admin</Group>
                <Description>Admin</Description>
                <Title Translatable="1">Service Level Agreements</Title>
                <NavBarName>Admin</NavBarName>
                <NavBarModule>
                    <Module>Kernel::Output::HTML::NavBarModuleAdmin</Module>
                    <Name Translatable="1">Service Level Agreements</Name>
                    <Description Translatable="1">Create and manage Service Level Agreements (SLAs).</Description>
                    <Block>Ticket</Block>
                    <Prio>1000</Prio>
                </NavBarModule>
            </FrontendModuleReg>
        </Setting>
    </ConfigItem>
And this in ~otrs/Kernel/Config/ZZZAAuto.pm:

Code: Select all

$Self->{'Frontend::Module'}->{'AdminSLA'} =  {
  'Description' => 'Admin',
  'Group' => [
    'admin'
  ],
  'NavBarModule' => {
    'Block' => 'Ticket',
    'Description' => 'Create and manage Service Level Agreements (SLAs).',
    'Module' => 'Kernel::Output::HTML::NavBarModuleAdmin',
    'Name' => 'Service Level Agreements',
    'Prio' => '1000'
  },
  'NavBarName' => 'Admin',
  'Title' => 'Service Level Agreements'
};
With both in place, you should see the Navbar. If either is missing we can analyse further.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Module not registered in Kernel/Config.pm!

Post by crythias »

module not registered means likely checkbox unchecked in SysConfig.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
naimson
Znuny newbie
Posts: 28
Joined: 18 Apr 2014, 09:33
Znuny Version: 4.0.6
Real Name: Naim
Company: Azedunet/Enginet

Re: Module not registered in Kernel/Config.pm!

Post by naimson »

RStraub wrote:You *should* have this in ~otrs/Kernel/Config/Ticket.xml

Code: Select all

    <ConfigItem Name="Frontend::Module###AdminSLA" Required="0" Valid="1">
        <Description Translatable="1">Frontend module registration for the agent interface.</Description>
        <Group>Ticket</Group>
        <SubGroup>Frontend::Admin::ModuleRegistration</SubGroup>
        <Setting>
            <FrontendModuleReg>
                <Group>admin</Group>
                <Description>Admin</Description>
                <Title Translatable="1">Service Level Agreements</Title>
                <NavBarName>Admin</NavBarName>
                <NavBarModule>
                    <Module>Kernel::Output::HTML::NavBarModuleAdmin</Module>
                    <Name Translatable="1">Service Level Agreements</Name>
                    <Description Translatable="1">Create and manage Service Level Agreements (SLAs).</Description>
                    <Block>Ticket</Block>
                    <Prio>1000</Prio>
                </NavBarModule>
            </FrontendModuleReg>
        </Setting>
    </ConfigItem>
And this in ~otrs/Kernel/Config/ZZZAAuto.pm:

Code: Select all

$Self->{'Frontend::Module'}->{'AdminSLA'} =  {
  'Description' => 'Admin',
  'Group' => [
    'admin'
  ],
  'NavBarModule' => {
    'Block' => 'Ticket',
    'Description' => 'Create and manage Service Level Agreements (SLAs).',
    'Module' => 'Kernel::Output::HTML::NavBarModuleAdmin',
    'Name' => 'Service Level Agreements',
    'Prio' => '1000'
  },
  'NavBarName' => 'Admin',
  'Title' => 'Service Level Agreements'
};
With both in place, you should see the Navbar. If either is missing we can analyse further.

I have all of this in my files, but now effect (
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Module not registered in Kernel/Config.pm!

Post by RStraub »

And you checked crythias suggestion ? SysConfig is checked (and set to default?)
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
naimson
Znuny newbie
Posts: 28
Joined: 18 Apr 2014, 09:33
Znuny Version: 4.0.6
Real Name: Naim
Company: Azedunet/Enginet

Re: Module not registered in Kernel/Config.pm!

Post by naimson »

Finally, i do reset defaults now works . Very strange . But now works,thanks for all .
Locked