Отличная это штука, переживать катастрофы, по масштабам сравнимые с последним землетрясением в китае, и после этого возвращаться назад. Последние 2-3 часа на работе я бился с одной ошибкой, которая портила мне весь в общем-то неплохой день. Поиск по гуглу дал несколько иные ситуации, но я все же поглядел конфигурационные файлы, на которые ссылался народ. В самом первом (!) в поиске было сообщение из архива, которое начиналось так:
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.
Ну я ессно быстренько проверил – там все нормально, и уныние овладело мной почти полностью.
Придя домой я залез в irc.perl.org #rt и вот как это было:
[20:43] <dimonf> hello. may I ask for a help on rt3 please?
[20:58] <raisputin> can’t promise I can be of an y assistance, but ask away
[21:00] <dimonf> I’ve searched through the web but didn’t find a similar case
[21:01] <dimonf> when I search (on top of the main screen, or via Simple Search) for a ticket
[21:01] <dimonf> I got this error: Can’t locate object method «host» via package «URI::_generic» at /usr/lib/perl5/vendor_perl/5.8.8/RT/Interface/Web.pm line 196.
[21:01] <dimonf> if i search for a string, it works perfectly. only digits as arguments cause this error
[21:02] <dimonf> i read through Web.pm, but probably it will take a while untill I understand anything
[21:03] <jibsheet> what is your WebURL and WebBastURL set to?
[21:04] <dimonf> $WebPath «/rt3″ , $WebBaseURL «https//support.mril-cyprus.com»
[21:05] <jibsheet> you’re missing a :
[21:05] <dimonf> o no
[21:09] <dimonf> how stupid i am. it works
[21:09] <dimonf> thanks a lot
[21:09] <jibsheet> no problem
Итак, мне остается лишь добавить для таких же чайников как и я:
If you have problem with RT Search / Quick Search, which gives you the following error message:
Can’t locate object method «host» via package «URI::_generic» at /work/rt3/lib/RT/Interface/Web.pm line 196
check $rtname, $Organization, and $WebBaseURL !!! If the problem persists, then
- learn how to work with IRC
- login to irc.perl.org #rt (i connected to server irc.darkuncle.net)
- Print ‘hello’.
- Then DOUBLE CHECK $rtname, $Organization and $WebBaseURL
- don’t forget to restart httpd after amending RT_SiteConfig.pm


