Project

General

Profile

Problems installing Latest Stable release - "rake aborted! undefined method `register_template_handler' for ActionView::Base:Class"

Added by Dan Cameron over 15 years ago

I've had the toughest time this am trying to get redmine install on my system.

System Details:

[root@scatter3d httpdocs]# ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-linux]
[root@scatter3d httpdocs]# rails -v
Rails 2.1.2
[root@scatter3d httpdocs]# svn info
Path: .
URL: http://redmine.rubyforge.org/svn/branches/0.7-stable
Repository Root: http://redmine.rubyforge.org/svn
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 2163
Node Kind: directory
Schedule: normal
Last Changed Author: jplang
Last Changed Rev: 1637
Last Changed Date: 2008-07-06 04:13:28 -0700 (Sun, 06 Jul 2008)

When I try to install I run into this;

[root@scatter3d httpdocs]# rake db:migrate RAILS_ENV="production" --trace
(in /var/www/vhosts/scatter3d.com/subdomains/redmine/httpdocs)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
*undefined method `register_template_handler' for ActionView::Base:Class*
/var/www/vhosts/scatter3d.com/subdomains/redmine/httpdocs/vendor/plugins/rfpdf/init.rb:3:in `evaluate_init_rb'
/usr/local/rubygems/gems/gems/rails-2.1.2/lib/rails/plugin.rb:95:in `evaluate_init_rb'
/usr/local/rubygems/gems/gems/activesupport-2.1.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/usr/local/rubygems/gems/gems/rails-2.1.2/lib/rails/plugin.rb:91:in `evaluate_init_rb'
/usr/local/rubygems/gems/gems/rails-2.1.2/lib/rails/plugin.rb:44:in `load'
/usr/local/rubygems/gems/gems/rails-2.1.2/lib/rails/plugin/loader.rb:33:in `load_plugins'
/usr/local/rubygems/gems/gems/rails-2.1.2/lib/rails/plugin/loader.rb:32:in `each'
/usr/local/rubygems/gems/gems/rails-2.1.2/lib/rails/plugin/loader.rb:32:in `load_plugins'
/usr/local/rubygems/gems/gems/rails-2.1.2/lib/initializer.rb:292:in `load_plugins'
/usr/local/rubygems/gems/gems/rails-2.1.2/lib/initializer.rb:142:in `process'
/usr/local/rubygems/gems/gems/rails-2.1.2/lib/initializer.rb:97:in `send'
/usr/local/rubygems/gems/gems/rails-2.1.2/lib/initializer.rb:97:in `run'
/var/www/vhosts/scatter3d.com/subdomains/redmine/httpdocs/config/environment.rb:20
/usr/local/rubygems/lib/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/rubygems/lib/rubygems/custom_require.rb:31:in `require'
/usr/local/rubygems/gems/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require'
/usr/local/rubygems/gems/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in'
/usr/local/rubygems/gems/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require'
/usr/local/rubygems/gems/gems/rails-2.1.2/lib/tasks/misc.rake:3
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:617:in `call'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:612:in `each'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:588:in `invoke_prerequisites'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:585:in `each'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:585:in `invoke_prerequisites'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:577:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/usr/local/rubygems/gems/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
/usr/local/rubygems/gems/gems/rake-0.8.3/bin/rake:31
/usr/local/rubygems/gems/bin/rake:19:in `load'
/usr/local/rubygems/gems/bin/rake:19


Replies (3)

RE: Problems installing Latest Stable release - "rake aborted! undefined method `register_template_handler' for ActionView::Base:Class" - Added by Mark Guthart over 15 years ago

I'm having a similar problem with the 0.8.0 RC1 version. I've set up prior versions of Redmine on other servers, but am setting a new installation up from scratch (on a Linux box). If you get anywhere let me know and I'll do likewise.

Mark

RE: Problems installing Latest Stable release - "rake aborted! undefined method `register_template_handler' for ActionView::Base:Class" - Added by Dan Cameron over 15 years ago

Hey Guys,

I was able to resolve the issue and I wish I took better notes (or notes at all, using my bash history) so I'll have to go off memory. And even though I spent countless hours trying - it's worth it.

First, I wasn't able to use the latest stable release on .7. I ended up checking out the latest stable of .8 and ran rake with a happy install.

svn co http://redmine.rubyforge.org/svn/branches/0.8-stable/ .

Originally I had commented out the rails version requirement in the enviroment.rb , but I uncommented it when I started this process.

Essentially I uninstalled the re-installed (removed and installed) ruby and all gems. I'm on a (mt) DV so it was good to install yum and break from the existing knowledge base FAQ about installing rails and a test app.

I used:
$yum remove ruby
$yum update ruby
$gem remove rails [got some error, which made me run]
$gem clean rails
$gem install rails -v=2.1.2
$gem install actionview
$rake db:migrate RAILS_ENV="production" --trace
[not sure why I ran] $gem update [then] $gem update --system [before I was able to run]
$rake redmine:load_default_data RAILS_ENV="production"
[could explain why my rails version was update after the specific version I previously installed]

Here is my latest config.. Mileage may vary.

[root@scatter3d httpdocs]# ruby -v
*ruby 1.8.6* (2007-09-24 patchlevel 111) [i686-linux]
[root@scatter3d httpdocs]# rails -v
*Rails 2.2.2*
[root@scatter3d httpdocs]# svn info
Path: .
URL: *http://redmine.rubyforge.org/svn/branches/0.8-stable*
Repository Root: http://redmine.rubyforge.org/svn
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 2170
Node Kind: directory
Schedule: normal
Last Changed Author: jplang
Last Changed Rev: 2146
Last Changed Date: 2008-12-19 03:45:33 -0800 (Fri, 19 Dec 2008)

Really hope that helps. I wish I knew what I was doing exactly, I was pretty burnt at the end of this cycle and I tried a lot of things. All in all, it's a matter of certain version requirements on ruby and rails and redmine.

Good Luck.

    (1-3/3)