Upgrading Redmine gives me undefined method `call' for RFPDF::View:Class
Added by Andrea Colleoni over 15 years ago
Hi,
I've updated Redmine from SVN repository to r2777.
I've updated Rails, Gem and Rake conforming to requirements for latest version.
When I try to db:migrate or run with RAILS_ENV=production I get an error:
undefined method `call' for RFPDF::View:Class
When I try to db:migrate or run with RAILS_ENV=development (I've tried to pint to the same db on MySQL) It works.
Can someone help me with this issue?
Thanks in advance.
Andrea Colleoni
Replies (5)
RE: Upgrading Redmine gives me undefined method `call' for RFPDF::View:Class - Added by Nanda P over 15 years ago
Can you run rake db:migrate RAILS_ENV="production" --trace and post the trace info?
RE: Upgrading Redmine gives me undefined method `call' for RFPDF::View:Class - Added by Andrea Colleoni over 15 years ago
Notice that:
- I previously upgraded Ruby Gems to the required versions; as I've seen it didn't work, I've reinstalled Ruby.
- I'm on a Win XP Sp2 box
Thanks.
Andrea.
Here it is:
-------------------------
(in C:/ruby-apps/RedMine)
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
rake aborted!
undefined method `call' for RFPDF::View:Class
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:21:in `_unmemoized_compiled_source'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/memoizable.rb:57:in `compiled_source'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/memoizable.rb:25:in `__send__'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/memoizable.rb:25:in `memoize_all'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/memoizable.rb:22:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/memoizable.rb:22:in `memoize_all'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/memoizable.rb:17:in `freeze'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/paths.rb:88:in `reload!'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/paths.rb:102:in`templates_in_path'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/paths.rb:100:in`each'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/paths.rb:100:in`templates_in_path'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/paths.rb:86:in `reload!'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/paths.rb:78:in `load'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/paths.rb:109:in`load'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/paths.rb:109:in`each'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/paths.rb:109:in`load'
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:357:in `load_view_paths'
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:182:in `process'
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `send'
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `run'
C:/ruby-apps/RedMine/config/environment.rb:20
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/misc.rake:3
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
C:/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in `invoke_prerequisites'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `invoke_prerequisites'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in `invoke_with_call_chain'C:/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
C:/Ruby/bin/rake:19:in `load'
C:/Ruby/bin/rake:19
RE: Upgrading Redmine gives me undefined method `call' for RFPDF::View:Class - Added by Andrea Colleoni over 15 years ago
An update:
I've turned the config element config.cache_classes in production environment rb script from true to false and now it works.Now my questions are:
- how this parameter affects the application configuration?
- What are the side effects of this configuration?
- Why in develompment environment was set to false?
- If this is, as I can imagine, a directive to tell ruby to use or not a cache, maybe must I clear a cache somewhere?
Thanks.
Andrea.
RE: Upgrading Redmine gives me undefined method `call' for RFPDF::View:Class - Added by Andrea Colleoni over 15 years ago
Does anyone have an update or a suggestion on this?
Andrea.
RE: Upgrading Redmine gives me undefined method `call' for RFPDF::View:Class - Added by Intrad Acebo about 15 years ago
Hello, I've got the same error, any idea?
C:/redmine/app/models/document.rb:37: Interrupt
from c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from c:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in `require'
from c:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:262:in `require_or_load_without_engine_ad
ditions'
from C:/redmine/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load'
from c:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:427:in `load_missing_constant'
from c:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in `const_missing'
from c:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:89:in `const_missing'
... 67 levels...
from c:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49
from c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script/server:3
Thank you.