
Hi Martin, well that's what i figured too. ;) So I checked the config.pm and default.pm files and they have correct settings. To be sure I edited Tickets.pm and hard coded the module ArticleStorageDB in it. It gave me exactly the same error. All files are available and the require statement doesn't give an error so there must be something else wrong. I'll past the bit of code that gives the error here: my $StorageModule = 'Kernel::System::Ticket::ArticleStorageDB'; eval "require $StorageModule"; push(@ISA, $StorageModule); $Self->ArticleStorageInit(); It gives me an error at the last line of the code above. I don't know what is going wrong, as I'm not very much into Perl (yet), but why is the module pushed in the @ISA array and than used with a $Self statement? Looks like a strange statement to me, but I may be wrong of course. :) Hope you can help me. Maarten -----Oorspronkelijk bericht----- Van: otrs-admin@otrs.org [mailto:otrs-admin@otrs.org]Namens Martin Edenhofer Verzonden: zondag 12 januari 2003 18:23 Aan: otrs@otrs.org Onderwerp: Re: [otrs] ArticleStorageInit error Hi Maarten, On Sun, Jan 12, 2003 at 06:03:42PM +0100, Maarten Engelen wrote:
I just installed otrs RC1 on my system. When I visit http://www.domain.com/otrs/index.pl I get a 500 server error. When I manually run <OTRSHOME>/bin/cgi-bin/index.pl I get the following error:
Can't locate object method "ArticleStorageInit" via package "Kernel::System::Ticket" (perhaps you forgot to load "Kernel::System::Ticket"?) at /home/otrs/bin/cgi-bin/../../Kernel/System/Ticket.pm line 96.
Seems like a bug to me, but to be sure if I'm not the one to blaim here I like to know if there's someone who knows a solution to this problem. Any help is greatly appreciated.
It looks like there is a non existing module defined as "TicketStorageModule" in Kernel/Config.pm. For TicketStorageModule it's 'Kernel::System::Ticket::ArticleStorageFS' or 'Kernel::System::Ticket::ArticleStorageDB' possible. If I set 123 as TicketStorageModule in Kernel/Config.pm I get the following error: [...] [18:19:18 martin@cuba]:~/src/otrs >perl bin/cgi-bin/index.pl [...] Can't locate object method "ArticleStorageInit" via package "Kernel::System::Ticket" (perhaps you forgot to load "Kernel::System::Ticket"?) at /home/martin/src/otrs/bin/cgi-bin/../../Kernel/System/Ticket.pm line 96. [Sun Jan 12 18:19:25 2003] index.pl: Can't locate package 123 for @Kernel::System::Ticket::ISA. [...] -=> The same error message.
Maarten
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Perfection is our goal, excellence will be tolerated. -- J. Yahl _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Hi Maarten, hi Martin! I solved this by adding the following line to Kernel/System/Ticket.pm use Kernel::System::Ticket::ArticleStorageDB; just behind use Kernel::System::Ticket::Article; Let me know if it works, Robert

Yep that did the trick. Thanks. Andreas: Your solution works too, but it doesn't seem such a good idea to me to leave out initialisation procedures, so I went for the addition of the use statement. Than my question still is why it doesn't work 'as is'. A 'use xxxx' is required to get it to work it seems. Looks like a bug so what to do with it? Will it be fixed (if it needs fixing that is) or shall i put a report in the bugtracker? Maarten -----Oorspronkelijk bericht----- Van: otrs-admin@otrs.org [mailto:otrs-admin@otrs.org]Namens Robert Kehl Verzonden: zondag 12 januari 2003 19:13 Aan: otrs@otrs.org Onderwerp: AW: [otrs] ArticleStorageInit error Hi Maarten, hi Martin! I solved this by adding the following line to Kernel/System/Ticket.pm use Kernel::System::Ticket::ArticleStorageDB; just behind use Kernel::System::Ticket::Article; Let me know if it works, Robert _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

On Sun, Jan 12, 2003 at 07:36:10PM +0100, Maarten Engelen wrote:
Yep that did the trick. Thanks.
Andreas: Your solution works too, but it doesn't seem such a good idea to me to leave out initialisation procedures, so I went for the addition of the use statement.
Than my question still is why it doesn't work 'as is'. A 'use xxxx' is required to get it to work it seems. Looks like a bug so what to do with it? Will it be fixed (if it needs fixing that is) or shall i put a report in the bugtracker?
I don't know what it is (at the moment). But we will find it. Anyway, it's a bug. It would be nice if you create an bug report on http://bugs.otrs.org/ and add your system info (OS, Perl version, ...) because it's working for me! :-/ Thanks!
Maarten
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Perfection is our goal, excellence will be tolerated. -- J. Yahl

Hi Maarten, hi Martin! I solved this by adding the following line to Kernel/System/Ticket.pm use Kernel::System::Ticket::ArticleStorageDB; just behind use Kernel::System::Ticket::Article; Let me know if it works, Robert PS: Sorry for having eventually sent this twice?!
participants (4)
-
Maarten Engelen
-
Martin Edenhofer
-
Robert Kehl
-
Robert Kehl