# Problems with search\_behavior

**URL:** <https://www.ruby-forum.com/t/problems-with-search-behavior/71055>\
**Category:** Radiant CMS\
**Created:** [October 5, 2006, 12:47am UTC](https://www.ruby-forum.com/t/problems-with-search-behavior/71055 "2006-10-05T00:47:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [October 5, 2006, 12:47am UTC](https://www.ruby-forum.com/t/problems-with-search-behavior/71055/1 "2006-10-05T00:47:26Z")

</div>

I installed the search behavior, ferret and acts\_as\_ferret but I can’t  
get  
it to work on my shared host (Site5). It works fine on my mac, but when  
trying to launch script/server -e production I get this error on the  
shared  
host:

=\> Booting WEBrick…  
Load patches …  
script/…/config/…/vendor/plugins/search\_behavior/lib/patches/00\_render\_to\_string.rb  
script/…/config/…/vendor/plugins/search\_behavior/lib/patches/01\_behavior\_receives\_from\_site\_controller.rb  
script/…/config/…/vendor/plugins/search\_behavior/lib/patches/02\_site\_controller\_gives\_to\_behavior.rb  
script/…/config/…/vendor/plugins/search\_behavior/lib/patches/03\_template\_load\_path.rb  
./script/…/config/…/lib/inheritable\_class\_attributes.rb:51:in  
`inherited': undefined local variable or method`child’ for Behavior::Base:Class  
(NameError)  
from  
./script/…/config/…/vendor/plugins/search\_behavior/lib/search.rb:3  
from /usr/lib/site\_ruby/1.8/rubygems/custom\_require.rb:18:in  
`require' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in`require’  
from  
script/…/config/…/vendor/plugins/search\_behavior/init.rb:13:in  
`load_plugin' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:348:in`load\_plugin’  
from  
./script/…/config/…/vendor/rails/activesupport/lib/active\_support/core\_ext/kernel/reporting.rb:11:in  
`silence_warnings' from ./script/../config/../vendor/rails/railties/lib/initializer.rb:348:in`load\_plugin’  
from  
./script/…/config/…/vendor/rails/railties/lib/initializer.rb:158:in  
`load_plugins' ... 7 levels... from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in`require’  
from  
./script/…/config/…/vendor/rails/activesupport/lib/active\_support/dependencies.rb:147:in  
`require’  
from  
./script/…/config/…/vendor/rails/railties/lib/commands/server.rb:30  
from script/server:3

The problem comes from this line

class Search \< Behavior::Base

But obviously there is some problem I can’t troubleshoot. Any clue?

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [October 5, 2006, 2:01am UTC](https://www.ruby-forum.com/t/problems-with-search-behavior/71055/2 "2006-10-05T02:01:33Z")

</div>

> ./script/…/config/…/lib/inheritable\_class\_attributes.rb:51:in `inherited': undefined local variable or method `child’ for Behavior::Base:Class

I have never seen this error message before. It seems like you should  
be able to check line 51 in the file  
lib/inheritable\_class\_attributes.rb and make more sense of what’s  
going on. Given the fact that it works on your home computer but not  
on the server, it might be an indication that there is something wrong  
with the setup on the server.

On 10/4/06, Giovanni I. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> script/…/config/…/vendor/plugins/search\_behavior/lib/patches/03\_template\_load\_path.rb  
> `require' ./script/../config/../vendor/rails/railties/lib/initializer.rb:348:in `require’
> 
> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site:  
> [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

–  
Alexander H.  
[http://www2.truman.edu/~ah428](http://www2.truman.edu/~ah428)

---

<div class="post-metadata">

**Author:** ![Giovanni\_I](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Post date:** [October 5, 2006, 9:54am UTC](https://www.ruby-forum.com/t/problems-with-search-behavior/71055/3 "2006-10-05T09:54:10Z")

</div>

I also thought that it’s a problem with the server setup but I can’t  
troubleshoot it. Site5 hasn’t answered yet ☹

2006/10/5, Alexander H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
