Klassenkonfiguration, Sub- Attribute/ Internal Server Error

Hilfe zu Znuny Problemen aller Art
Locked
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Klassenkonfiguration, Sub- Attribute/ Internal Server Error

Post by boris »

Hallo,
ich habe gerade meine Klassendefinitionen kaputt konfiguriert.
Nur warum weiss ich nicht.

So sieht die Definition aus die an jedes Item kommt.

Code: Select all

[
################################
####    allgemeine Daten    ####
################################


	{
            Type => 'Dummy',
            	Translation => 1,
            	Required => 1,
    },
				
	{
			Type => 'Dummy',
            	Translation => 1,
            	Required => 1,
    },	
	
	
	{
            Type => 'Dummy',
            	Translation => 1,
            	Required => 1,
    },
	
 {
                Key => 'Eigentuemer',
                Name => 'Eigentuemer',
                Input => {
                    Type => 'GeneralCatalog',
                    Class => 'ITSM::ConfigItem::Eigentuemer',
                    Translation => 1,
                    Required => 1,
                },
    },
	


 
    {
        Key => 'Anschaffungsdatum',
        Name => 'Anschaffungsdatum',
        Searchable => 1,
        Required => 1,
        Input => {
            Type => 'Date',
        },
    },

 
    {
        Key => 'Inventarnummer',
        Name => 'Inventarnummer',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,
			Required => 1,
        },
 },

 {
        Key => 'Hersteller',
        Name => 'Hersteller',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,
    },

 },
 
 
 {
        Key => 'Typenbezeichnung',
        Name => 'Typenbezeichnung',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,
    },
 },
 
 
 {
        Key => 'Seriennummer',
        Name => 'Seriennummer',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,        
			Required => 1,
    },
 
 },
 
 
 {
                Key => 'Garantie',
                Name => 'Garantie',
                Input => {
                    Type => 'GeneralCatalog',
                    Class => 'ITSM::ConfigItem::YesNo',
                    Translation => 1,
                },
    },

 
 
 
 {
        Key => 'Garantiegeber',
        Name => 'Garantiegeber',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,
    },
 },
 
 {
        Key => 'Garantiedauer',
        Name => 'Garantiedauer',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,
    },
 },

 {
        Key => 'Garantieart',
        Name => 'Garantieart',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,
    },
 },

 {
                Key => 'Wartungsvertrag',
                Name => 'Wartungsvertrag',
                Input => {
                    Type => 'GeneralCatalog',
                    Class => 'ITSM::ConfigItem::YesNo',
                    Translation => 1,
                },
    },


 {
        Key => 'Wartungsgeber',
        Name => 'Wartungsgeber',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,
    },
    },
 
    {
        Key => 'Wartungsvertrag bis',
        Name => 'Wartungsvertrag bis',
        Searchable => 1,
        Input => {
            Type => 'Date',
        },
    },
 

 {
        Key => 'Wartungsfristen',
        Name => 'Wartungsfristen',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,
    },
    },
 
 {
                Key => 'Leasing',
                Name => 'Leasing',
                Input => {
                    Type => 'GeneralCatalog',
                    Class => 'ITSM::ConfigItem::YesNo',
                    Translation => 1,
                },
    },
 
 
  {
                Key => 'Leasinggeber',
                Name => 'Leasinggeber',
                Input => {
                    Type => 'GeneralCatalog',
                    Class => 'ITSM::ConfigItem::Leasinggeber',
                    Translation => 1,
                },
    },

    {
        Key => 'Leasingbeginn',
        Name => 'Leasingbeginn',
        Searchable => 1,
        Input => {
            Type => 'Date',
        },
    },

    {
        Key => 'Leasingauslauf',
        Name => 'Leasingauslauf',
        Searchable => 1,
        Input => {
            Type => 'Date',
        },
    },
 
 
 {
        Key => 'Leasingschien/- Vertrag',
        Name => 'Leasingschien/- Vertrag',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,
    },
 },
 
 {
                Key => 'Lieferant',
                Name => 'Lieferant',
                Input => {
                    Type => 'GeneralCatalog',
                    Class => 'ITSM::ConfigItem::Lieferant',
                    Translation => 1,
                },
    },
 

 
 {
        Key => 'Rechnungsnummer',
        Name => 'Rechnungsnummer',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,
    },
    },
 
 
 {
                Key => 'Standort',
                Name => 'Standort',
                Input => {
                    Type => 'GeneralCatalog',
                    Class => 'ITSM::ConfigItem::Standort',
                    Translation => 1,
                    Required => 1,
                },
    },
 
 
    {
        Key => 'Owner',
        Name => 'Owner',
        Searchable => 1,
        Input => {
            Type => 'Customer',
        },
 },
 

 {
                Key => 'Firma zug. Benutzer',
                Name => 'Firma zug. Benutzer',
                Input => {
                    Type => 'GeneralCatalog',
                    Class => 'ITSM::ConfigItem::Firma',
                    Translation => 1,
                },
    },

 
 {
                Key => 'Abteilung zug. Benutzer',
                Name => 'Abteilung zug. Benutzer',
                Input => {
                    Type => 'GeneralCatalog',
                    Class => 'ITSM::ConfigItem::Abteilung',
                    Translation => 1,
                },
    },


 {
                Key => 'Referat zug. Benutzer',
                Name => 'Referat zug. Benutzer',
                Input => {
                    Type => 'GeneralCatalog',
                    Class => 'ITSM::ConfigItem::Referat',
                    Translation => 1,
                },
    },
 

 	{
            Type => 'Dummy',
            	Translation => 1,
            	Required => 1,
    },
		
		{
            Type => 'Dummy',
            	Translation => 1,
            	Required => 1,
    },
		
		
		{
            Type => 'Dummy',
            	Translation => 1,
            	Required => 1,
    },
 		
	{
            Type => 'Dummy',
            	Translation => 1,
            	Required => 1,
    },
    
	
	Sub => [

	{
        Key => 'bisherige Reparaturen',
        Name => 'bisherige Reparaturen',
        Searchable => 1,
        Input => {
            Type => 'TextArea',
        },
    },
 

 
 
 
    {
        Key => 'Anmerkungen',
        Name => 'Anmerkungen',
        Searchable => 1,
        Input => {
            Type => 'TextArea',
        },
    },
],


###################################################
####       ab hier Gerätespezifische Daten     ####
###################################################
  ];

Das Problem liegt scheinbar irgendwo bei den Sub- Attributen.

Gemeckert hats nicht dass was an der Config falsch wäre, aber wenn ich jetzt die Klassendefinition wieder ändern will bekomme ich das:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, otrs-test@xy.local and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.15 (CentOS) Server at otrs002.coo.local Port 80




Wie kann ich das jetzt wieder gerade biegen?

Boris
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
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: Klassenkonfiguration, Sub- Attribute/ Internal Server Er

Post by reneeb »

Lösch die Definition aus der Datenbank (stehen in der Tabelle "configitem_definition") bzw. setze die Definition auf "[];":

Code: Select all

update configitem_definition set configitem_definition = '[];' where id = 6;
(Die richtige ID musst Du vorher noch raussuchen)
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
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Re: Klassenkonfiguration, Sub- Attribute/ Internal Server Er

Post by boris »

Siehst du denn den Fehler?
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
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: Klassenkonfiguration, Sub- Attribute/ Internal Server Er

Post by reneeb »

Das "Sub => [....]" ist eine Ebene zu hoch.

Aus

Code: Select all

    {
         Type => 'Dummy',
        Translation => 1,
        Required => 1,
    },
   Sub => [
       {
            Key => 'bisherige Reparaturen',
            Name => 'bisherige Reparaturen',
            Searchable => 1,
            Input => {
                Type => 'TextArea',
            },
        },
        {
            Key => 'Anmerkungen',
            Name => 'Anmerkungen',
            Searchable => 1,
            Input => {
                Type => 'TextArea',
            },
        },
    ],
Muss das hier werden:

Code: Select all

    {
        Type => 'Dummy',
        Translation => 1,
        Required => 1,
        Sub => [
            {
                Key => 'bisherige Reparaturen',
                Name => 'bisherige Reparaturen',
                Searchable => 1,
                Input => {
                    Type => 'TextArea',
                },
            },
            {
                Key => 'Anmerkungen',
                Name => 'Anmerkungen',
                Searchable => 1,
                Input => {
                    Type => 'TextArea',
                },
            },
        ],
    },
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
Locked