Welcome Guest | Login

Globalite locale problem

Hi,

I have an app running locally working fine, but when I moved it into production here at hostingrails I'm getting this error when I try to generate the migrations:

script/generate plugin_migration

/home/socials0/pruebaa/vendor/plugins/community_engine/engine_plugins/
globalite/lib/globalite/locale.rb:1: Locale is not a class (TypeError)
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require'
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require'
       from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
       from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:354:in `new_constants_in'
       from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:509:in `require'
       from /home/socials0/pruebaa/vendor/plugins/community_engine/
engine_plugins/globalite/lib/globalite.rb:4
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require'
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require'
        ... 19 levels...
       from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/
commands/generate.rb:1
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `gem_original_require'
       from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require'
       from script/generate:3

Any clues?

Thanks in advance.

2008-07-24 06:16 PM

Hi there - you'll need to check with the community_engine community on this one or weed through the code.  You need to figure out why it thinks community_engine/engine_plugins/
globalite/lib/globalite/locale.rb is a class

2008-07-25 01:00 AM

This is what they told me:

"The problem of ** locale.rb:1: Locale is not a class (TypeError) **
was resolved by:

gem uninstall gettext "

The problem is with the gettext gem, is there a way to tell rails not to load it?

Thanks

2008-07-25 08:22 PM

Hmm - you'll have trouble running this on an environment where gettext is needed.  I don't believe there is a way to tell Rails not to load it.  You'll need to get this app on a VPS w/o gettext.  That is an unfortunate answer from the community_engine community.

2008-07-26 10:50 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.