ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Uninitialized constant ApplicationHelper::Gravatarify in 3.5.1

Added by vlad vasiliu at 2013-01-23 06:34 pm

Hello

I get this error while trying to install version 3.5.1.
bundle install installs the gem, and gem list shows it as installed.
I'm running ruby 1.8.7-371 / passenger 3.0.19 / nginx 1.2.6.1 on freebsd 9.

How could I go about solving this? I'm not really familiar with ruby/rails.

Here is the backtrace:

  • Exception NameError in PhusionPassenger::ClassicRails::FrameworkSpawner (uninitialized constant ApplicationHelper::Gravatarify) (process 19926, thread #<Thread:0x801890360>):
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:466:in `load_missing_constant'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:106:in `const_missing'
    from /usr/local/www/chiliproject/app/helpers/application_helper.rb:20
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:184:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:184:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:291:in `require_or_load_without_engine_additions'
    from /usr/local/www/chiliproject/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:125:in `require_or_load'
    from /usr/local/www/chiliproject/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:102:in `each'
    from /usr/local/www/chiliproject/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:102:in `require_or_load'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:250:in `depend_on'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:162:in `require_dependency'
    from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.3.15/lib/action_mailer/helpers.rb:52:in `helper'
    from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.3.15/lib/action_mailer/helpers.rb:43:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.3.15/lib/action_mailer/helpers.rb:43:in `helper'
    from /usr/local/www/chiliproject/app/models/mailer.rb:19
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:184:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:184:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:291:in `require_or_load_without_engine_additions'
    from /usr/local/www/chiliproject/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:133:in `require_or_load'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:250:in `depend_on'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:162:in `require_dependency'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.15/lib/initializer.rb:414:in `load_application_classes'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.15/lib/initializer.rb:413:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.15/lib/initializer.rb:413:in `load_application_classes'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.15/lib/initializer.rb:411:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.15/lib/initializer.rb:411:in `load_application_classes'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.15/lib/initializer.rb:197:in `process'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.15/lib/initializer.rb:113:in `send'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.15/lib/initializer.rb:113:in `run'
    from /usr/local/www/chiliproject/config/environment.rb:45
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:182:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:182:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:547:in `new_constants_in'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.15/lib/active_support/dependencies.rb:182:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:222:in `preload_application'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:181:in `initialize_server'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/utils.rb:563:in `report_app_init_status'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:174:in `initialize_server'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server.rb:204:in `start_synchronously'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server.rb:180:in `start'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/classic_rails/framework_spawner.rb:268:in `handle_spawn_application'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/classic_rails/framework_spawner.rb:263:in `handle_spawn_application'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/classic_rails/framework_spawner.rb:261:in `handle_spawn_application'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server.rb:180:in `start'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/classic_rails/framework_spawner.rb:93:in `start'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
    from /usr/local/lib/ruby/gems/1.8/gems/passenger//helper-scripts/passenger-spawn-server:99

Replies (4)

RE: Uninitialized constant ApplicationHelper::Gravatarify in 3.5.1 - Added by vlad vasiliu at 2013-01-24 02:28 am

No, this is an initial install. There only is what came in the distribution. Also, the install is on a clean system, I only installed the dependencies the documentation talks about.

RE: Uninitialized constant ApplicationHelper::Gravatarify in 3.5.1 - Added by Felix Schäfer at 2013-01-24 06:48 pm

I think this is a symptom for a problem with bundler. The bundle install step worked correctly for you? Are the gems this installs accessible for the user passenger tries to run ChiliProject as? (hint: It might not be the user you think it is, see the passenger docs for more info)

You could also try changing source:app/helpers/application_helper.rb#L20 from Gravatarify to ::Gravatarify.

RE: Uninitialized constant ApplicationHelper::Gravatarify in 3.5.1 - Added by vlad vasiliu at 2013-01-24 11:28 pm

bundle install doesn't complain about anything. I suppose the gems are accessible, I run another rails application with the exact same setup (albeit it is rails 3). Also, if I manually remove the gravatarify gem, it then complains about not being able to find the gem.

The change in application_helper produces another error: uninitialized constant Gravatarify

(1-4/4)