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.
[SOLVED]Error: Need TicketID!
Moderator: crythias
[SOLVED]Error: Need TicketID!
Last edited by adt on 16 Aug 2012, 16:25, edited 2 times in total.
-
- 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
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
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
Re: Software error:Can't locate object method "new" via pack
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!
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!
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Error: Need TicketID!
Your error message of course indicates you need a TicketID because you're using ArticleCreate without (a valid) one.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
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
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