[rt-users] Can't locate object method "host" via package"URI::_generic"

Michael Martin michael at headwestsoftware.com
Thu Jul 12 10:45:22 EDT 2007


Found the answer, and posting here for future idiots such as myself.

The problem was simply that I had the wrong values set for $rtname, $Organization, and $WebBaseURL.


  ----- Original Message ----- 
  From: Michael Martin 
  To: rt-users at lists.bestpractical.com 
  Sent: Thursday, July 12, 2007 9:28 AM
  Subject: [rt-users] Can't locate object method "host" via package"URI::_generic"


  Hello all-

  I have a brand new 3.6.4 RT up and running, but I can't seem to create any new tickets. Any attempts to do so results in
  "Can't locate object method "host" via package "URI::_generic". I've attached the raw error output below.

  I'm reasonably certain that I have all the prerequisites installed - make testdeps thinks so, anyway. And, I've searched
  the archives - found one other person that reported this problem back in January, but there seems to be no response to
  his question, perhaps he received a personal response that didn't make it into the list?

  I won't be surprised if it's something I've misconfigured - I am a raw newbie concerning RT, and my perl experience is
  fairly weak at this point (although I expect the RT implementation project will rectify that!)

  Thanks,
  Michael Martin


Can't locate object method "host" via package "URI::_generic" at /work/rt3/lib/RT/Interface/Web.pm line 196.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object method "host" via package "URI::_generic" at /work/rt3/lib/RT/Interface/Web.pm line 196.^J') called at /work/rt3/lib/RT/Interface/Web.pm line 196
RT::Interface::Web::Redirect('hw.dev.local/rt/Ticket/Display.html?id=2') called at /work/rt3/share/html/Ticket/Display.html line 173
HTML::Mason::Commands::__ANON__('TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', 'root at localhost', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 'FinalPriority', 0, 'new-RefersTo', '', 'TimeLeft', '', 'TimeLeft-TimeUnits', 'minutes', 'RefersTo-new', '', 'Owner', 10, 'DependsOn-new', '', 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 'TimeWorked-TimeUnits', 'minutes', 'Due', '') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x96bf0f8)', 'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', 'root at localhost', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 'FinalPriority', 0, 'new-RefersTo', '', 'TimeLeft', '', 'TimeLeft-TimeUnits', 'minutes', 'RefersTo-new', '', 'Owner', 10, 'DependsOn-new', '', 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 'TimeWorked-TimeUnits', 'minutes', 'Due', '') called at /usr/share/perl5/HTML/Mason/Request.pm line 1256
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1246
HTML::Mason::Request::comp(undef, undef, 'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', 'root at localhost', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 'FinalPriority', 0, 'new-RefersTo', '', 'TimeLeft', '', 'TimeLeft-TimeUnits', 'minutes', 'RefersTo-new', '', 'Owner', 10, 'DependsOn-new', '', 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 'TimeWorked-TimeUnits', 'minutes', 'Due', '') called at /work/rt3/share/html/Ticket/Create.html line 303
HTML::Mason::Commands::__ANON__('TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', 'root at localhost', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 'FinalPriority', 0, 'new-RefersTo', '', 'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', '', 'DependsOn-new', '', 'Owner', 10, 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 'Due', '', 'TimeWorked-TimeUnits', 'minutes') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa059f2c)', 'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', 'root at localhost', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 'FinalPriority', 0, 'new-RefersTo', '', 'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', '', 'DependsOn-new', '', 'Owner', 10, 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 'Due', '', 'TimeWorked-TimeUnits', 'minutes') called at /usr/share/perl5/HTML/Mason/Request.pm line 1256
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1246
HTML::Mason::Request::comp(undef, undef, undef, 'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', 'root at localhost', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 'FinalPriority', 0, 'new-RefersTo', '', 'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', '', 'DependsOn-new', '', 'Owner', 10, 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 'Due', '', 'TimeWorked-TimeUnits', 'minutes') called at /work/rt3/share/html/autohandler line 291
HTML::Mason::Commands::__ANON__('TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', 'root at localhost', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 'new-RefersTo', '', 'FinalPriority', 0, 'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', '', 'DependsOn-new', '', 'Owner', 10, 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 'Due', '', 'TimeWorked-TimeUnits', 'minutes') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9eed90c)', 'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', 'root at localhost', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 'new-RefersTo', '', 'FinalPriority', 0, 'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', '', 'DependsOn-new', '', 'Owner', 10, 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 'Due', '', 'TimeWorked-TimeUnits', 'minutes') called at /usr/share/perl5/HTML/Mason/Request.pm line 1251
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1246
HTML::Mason::Request::comp(undef, undef, undef, 'TimeEstimated', '', 'Status', 'new', 'new-DependsOn', '', 'Queue', 'General', 'AdminCc', '', 'Requestors', 'root at localhost', 'InitialPriority', 0, 'Starts', '', 'Attach', '', 'TimeWorked', '', 'id', 'new', 'TimeEstimated-TimeUnits', 'minutes', 'Cc', '', 'Subject', 'test', 'new-RefersTo', '', 'FinalPriority', 0, 'RefersTo-new', '', 'TimeLeft-TimeUnits', 'minutes', 'TimeLeft', '', 'DependsOn-new', '', 'Owner', 10, 'new-MemberOf', '', 'MemberOf-new', '', 'Content', 'test', 'Due', '', 'TimeWorked-TimeUnits', 'minutes') called at /usr/share/perl5/HTML/Mason/Request.pm line 460
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 460
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 412
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xa02f4c0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xa02f4c0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 832
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x92a0478)', 'Apache2::RequestRec=SCALAR(0xa00d600)') called at /work/rt3/bin/webmux.pl line 125
eval {...} at /work/rt3/bin/webmux.pl line 125
RT::Mason::handler('Apache2::RequestRec=SCALAR(0xa00d600)') called at -e line 0
eval {...} at -e line 0

------------------------------------------------------------------------------


  _______________________________________________
  http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

  Community help: http://wiki.bestpractical.com
  Commercial support: sales at bestpractical.com


  Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
  Buy a copy at http://rtbook.bestpractical.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070712/aaffbd05/attachment.htm>


More information about the rt-users mailing list