Mailing List Archive

Can't locate object method "host_port"
Hi.

I have a problem when I reload a form in RT (4.2), I can load this form
but when reload de form he don't work, The message error is:

"An internal RT error has occurred. Your administrator can find
more details in RT's log files."


In the log file:

[29652] [Thu May 29 12:01:40 2014] [error]: Can't locate object method
"host_port" via package "URI::_generic" at
/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm line 1496, <GEN54>
line 192.

Stack:
[/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm:1496]
[/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm:1567]
[/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm:1647]
[/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm:385]
[/usr/local/rt-4.2.0/share/html/autohandler:53]
(/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web/Handler.pm:211)
[29646] [Thu May 29 12:02:16 2014] [error]: Can't locate object method
"host_port" via package "URI::_generic" at
/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm line 1496, <GEN62>
line 192.

Stack:
[/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm:1496]
[/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm:1567]
[/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm:1647]
[/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm:385]
[/usr/local/rt-4.2.0/share/html/autohandler:53]
(/usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web/Handler.pm:211)


Thanks a lot.
Re: Can't locate object method "host_port" [ In reply to ]
On Thu, May 29, 2014 at 12:08:03PM +0200, sercuto wrote:
> I have a problem when I reload a form in RT (4.2), I can load this form but when reload de
> form he don't work, The message error is:

Which form.

> [29652] [Thu May 29 12:01:40 2014] [error]: Can't locate object method "host_port" via package
> "URI::_generic" at /usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm line 1496, <GEN54> line
> 192.

The host_port method was added to URI in 1998.
On Admin -> Tools -> System Configuration, what does RT say your URI
version is?

Additionally, your line numbers don't line up with the released 4.2.0,
have you made modifications to your RT?

-kevin
Re: Can't locate object method "host_port" [ In reply to ]
Hi Kevin.

Thanks for help.

>> what does RT say your URI version is?

URI 1.60 /usr/local/share/perl/5.14.2/URI.pm
URI::_punycode 0.04 /usr/local/share/perl/5.14.2/URI/_punycode.pm
URI::Escape 3.31 /usr/local/share/perl/5.14.2/URI/Escape.pm
URI::file 4.21 /usr/local/share/perl/5.14.2/URI/file.pm
URI::WithBase 2.20 /usr/local/share/perl/5.14.2/URI/WithBase.pm

>> have you made modifications to your RT?
yes, I was modified a little the Web.pm file, but only for resolve the
error.


Best Regads.

El 29/05/2014 16:22, Kevin Falcone escribió:
> On Thu, May 29, 2014 at 12:08:03PM +0200, sercuto wrote:
>> I have a problem when I reload a form in RT (4.2), I can load this form but when reload de
>> form he don't work, The message error is:
> Which form.
>
>> [29652] [Thu May 29 12:01:40 2014] [error]: Can't locate object method "host_port" via package
>> "URI::_generic" at /usr/local/rt-4.2.0/sbin/../lib/RT/Interface/Web.pm line 1496, <GEN54> line
>> 192.
> The host_port method was added to URI in 1998.
> On Admin -> Tools -> System Configuration, what does RT say your URI
> version is?
>
> Additionally, your line numbers don't line up with the released 4.2.0,
> have you made modifications to your RT?
>
> -kevin
>
>
Re: Can't locate object method "host_port" [ In reply to ]
On Thu, May 29, 2014 at 05:31:52PM +0200, Sergio Cubero wrote:
> Hi Kevin.
>
> Thanks for help.
>
> >> what does RT say your URI version is?
> URI 1.60 /usr/local/share/perl/5.14.2/URI.pm

This is fine

> >> have you made modifications to your RT?
> yes, I was modified a little the Web.pm file, but only for resolve the error.

TO resolve the error you're reporting?
You'll want to show your changes.

You also forgot to answer this question below:

> I have a problem when I reload a form in RT (4.2), I can load this form but when reload de
> form he don't work, The message error is:
>
> Which form.

-kevin