[SOLVED]Error: Need TicketID!

Moderator: crythias

Locked
adt
Znuny newbie
Posts: 43
Joined: 28 Jun 2012, 17:04
Znuny Version: 2.4.9

[SOLVED]Error: Need TicketID!

Post by adt »

i have created a new module named CustomerTicketHardwareMessage.pm at location /Kernel/Modules

I just created CustomerTicketHardwareMessage.dtl file and put it in /kernel/Output/HTML/mytheme/CustomerTicketHardwareMessage.dtl

Now, i have a link on customer navigation bar and i need to call this CustomerTicketHardwareMessage.pm module by clicking the link.

But it gives me following error:
Software error:
Can't locate object method "new" via package "Kernel::Modules::CustomerTicketHardwareMessage" (perhaps you forgot to load "Kernel::Modules::CustomerTicketHardwareMessage"?) at /opt/otrs//Kernel/System/Web/InterfaceCustomer.pm line 838.

For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.



Please help me.
Last edited by adt on 16 Aug 2012, 16:25, edited 2 times in total.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Software error:Can't locate object method "new" via pack

Post by crythias »

Does CTHM.pm include its own name in the package line?
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
adt
Znuny newbie
Posts: 43
Joined: 28 Jun 2012, 17:04
Znuny Version: 2.4.9

Re: Software error:Can't locate object method "new" via pack

Post by adt »

Thanks crythias ; for such a nifty reply.

But while submitting this ticket , i don't know what i can do to connect this .pm and .dtl with database so that on submit button , i can save the data to database .
On clicking submit button i get following error :


Error: Need TicketID!

Comment:
Traceback: ERROR: OTRS-CGI-58 Perl: 5.10.0 OS: linux Time: Fri Jul 6 08:35:55 2012

Message: Need TicketID!

Traceback (3561):
Module: Kernel::System::Ticket::Article::ArticleCreate (v1.232.2.4) Line: 112
Module: Kernel::Modules::CustomerTicketHardwareMessage::Run (v1.47.2.1) Line: 384
Module: Kernel::System::Web::InterfaceCustomer::Run (v1.41.2.1) Line: 852
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_customer_2epl::handler (unknown version) Line: 48
Module: (eval) (v1.42) Line: 204
Module: ModPerl::RegistryCooker::run (v1.42) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.42) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31


Thanks in advance!
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Error: Need TicketID!

Post by crythias »

adt wrote:i don't know what i can do to connect this .pm and .dtl with database so that on submit button , i can save the data to database
Your error message of course indicates you need a TicketID because you're using ArticleCreate without (a valid) one.
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
Locked