[Solved] unable to create a new dashlet

Moderator: crythias

Locked
simonegirlanda
Znuny newbie
Posts: 5
Joined: 23 Jul 2014, 18:29
Znuny Version: 3.3.5
Company: DATA CHECK srl

[Solved] unable to create a new dashlet

Post by simonegirlanda »

I'm unable to create a new dashlet as described here:

http://blog.otrs.org/2010/09/26/keep-an ... customers/

I add MyConfig.xml, then I run perl otrs.RebuildConfig.pl with out errors:

Code: Select all

otrs.RebuildConfig.pl - OTRS rebuild default config
Copyright (C) 2001-2014 xxx, http://otrs.com/
Done.
when I access to my otrs site I got a server error:

Code: Select all

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
I have to delete MyConfig.xml and re-run the rebuild command to get my site back.

what is wrong ?
Last edited by simonegirlanda on 24 Jul 2014, 16:24, edited 1 time in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: unable to create a new dashlet

Post by jojo »

if you don't show your xml nobody never will now....
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
simonegirlanda
Znuny newbie
Posts: 5
Joined: 23 Jul 2014, 18:29
Znuny Version: 3.3.5
Company: DATA CHECK srl

Re: unable to create a new dashlet

Post by simonegirlanda »

ok.

I'm using otrs 3.3.5

this is the current content of MyConfig.xml:

Code: Select all

<otrs_config version="1.0" init="Application">
 <ConfigItem Name="DashboardBackend###1000-PendingExpertFlow" Required="0" Valid="1">
        <Description Translatable="1">Parameters for the dashboard backend of the new tickets overview of the agent interface. "Limit" is the number of entries shown by default. "Group" is used to restrict the access to the plugin (e. g. Group: admin;group1;group2;). "Default" determines if the plugin is enabled by default or if the user needs to enable it manually. "CacheTTLLocal" is the cache time in minutes for the plugin.</Description>
        <Group>Ticket</Group>
        <SubGroup>Frontend::Agent::Dashboard</SubGroup>
        <Setting>
            <Hash>
                <Item Key="Module">Kernel::Output::HTML::DashboardTicketGeneric</Item>
                <Item Key="Title">Pending Expertflow</Item>
                <Item Key="Description">All tickets pending by expertflow</Item>
                <Item Key="Attributes">StateType=open;</Item>
                <Item Key="Filter">All</Item>
                <Item Key="Time">Age</Item>
                <Item Key="Limit">10</Item>
                <Item Key="Permission">rw</Item>
                <Item Key="Block">ContentLarge</Item>
                <Item Key="Group"></Item>
                <Item Key="Default">1</Item>
                <Item Key="CacheTTLLocal">0.5</Item>
                <Item Key="DefaultColumns">
                    <Hash>
                        <Item Key="Age">2</Item>
                        <Item Key="Changed">1</Item>
                        <Item Key="CustomerID">1</Item>
                        <Item Key="CustomerName">2</Item>
                        <Item Key="CustomerUserID">1</Item>
                        <Item Key="EscalationResponseTime">1</Item>
                        <Item Key="EscalationSolutionTime">1</Item>
                        <Item Key="EscalationTime">1</Item>
                        <Item Key="EscalationUpdateTime">1</Item>
                        <Item Key="TicketNumber">2</Item>
                        <Item Key="Lock">1</Item>
                        <Item Key="Owner">1</Item>
                        <Item Key="PendingTime">1</Item>
                        <Item Key="Queue">1</Item>
                        <Item Key="Responsible">2</Item>
                        <Item Key="Priority">1</Item>
                        <Item Key="Service">1</Item>
                        <Item Key="State">1</Item>
                        <Item Key="SLA">1</Item>
                        <Item Key="Title">2</Item>
                        <Item Key="Type">1</Item>
                    </Hash>
                </Item>
            </Hash>
        </Setting>
    </ConfigItem>
</otrs_config>
but I've tried with many other, also copying a dashlet from Ticket.xml and changing it's name.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: unable to create a new dashlet

Post by reneeb »

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
is missing.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
simonegirlanda
Znuny newbie
Posts: 5
Joined: 23 Jul 2014, 18:29
Znuny Version: 3.3.5
Company: DATA CHECK srl

Re: unable to create a new dashlet

Post by simonegirlanda »

Sorry I've missed it in copying the code, the

Code: Select all

 <?xml version="1.0" encoding="utf-8"?>
declaration is present at the beginning of the XML file.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: unable to create a new dashlet

Post by crythias »

internal server error will show in apache error log.
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
simonegirlanda
Znuny newbie
Posts: 5
Joined: 23 Jul 2014, 18:29
Znuny Version: 3.3.5
Company: DATA CHECK srl

Re: unable to create a new dashlet

Post by simonegirlanda »

Solved

I got some permissions problems, I found some permissions errors in the logs.
I suppose that the guy who made the last update did not run the bin/otrs.SetPermissions.pl command.

I've stopped apache & cron services.
Runned the SetPermission command with correct parameters.
restarted apache & cron services.

Now otrs works and new dashlet is present.

Now I have to create my own one.

Thanks for your help.
Locked