I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #1980

Problem running plugin in development mode

Added by Oleg Kandaurov almost 13 years ago. Updated about 12 years ago.

Status:
Open
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
19 Feb 2012
Due date:
% Done:

0%

Redmine version:
External issue:

Description

I am using redmine 1.3.0 with WikiNG 0.0.1b. It works well in production environment with following settings:

config.cache_classes = true
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching             = true
config.action_mailer.raise_delivery_errors = false
config.action_mailer.logger = nil

But when I switch server to development environment it loads page successfully only once. I see following error:

NameError in Projects#index

Showing app/views/layouts/base.html.erb where line #13 raised:

undefined local variable or method `heads_for_theme' for #<ActionView::Base:0xb6026ff0>
Extracted source (around line #13):

10: <%= stylesheet_link_tag 'application', :media => 'all' %>
11: <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
12: <%= javascript_heads %>
13: <%= heads_for_theme %>
14: <!--[if IE 6]>
15:     <style type="text/css">
16:       * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }

/home/f0y/workspace-ruby/redmine-1.3.0/app/views/layouts/base.html.erb:13:in `_run_erb_app47views47layouts47base46html46erb'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in `send'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in `render'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_view/base.rb:306:in `with_template'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_view/renderable.rb:30:in `render'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_view/template.rb:205:in `render_template'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_view/base.rb:265:in `render'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_view/base.rb:352:in `_render_with_layout'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_view/base.rb:262:in `render'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb:1252:in `render_for_file'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb:936:in `render_without_benchmark'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb:1328:in `default_render'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb:1334:in `perform_action_without_filters'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/flash.rb:151:in `perform_action'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `send'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `process_without_filters'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:438:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in `dispatch'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in `_call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in `call'
/home/f0y/.rvm/gems/ruby-1.8.7-p358@redmine-debian/gems/rack-1.1.1/lib/rack/head.rb:9:in `call'
/home/f0y/.rvm/gems/ruby-1.8.7-p358@redmine-debian/gems/rack-1.1.1/lib/rack/methodoverride.rb:24:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:99:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in `call'
/home/f0y/.rvm/gems/ruby-1.8.7-p358@redmine-debian/gems/rack-1.1.1/lib/rack/lock.rb:11:in `call'
/home/f0y/.rvm/gems/ruby-1.8.7-p358@redmine-debian/gems/rack-1.1.1/lib/rack/lock.rb:11:in `synchronize'
/home/f0y/.rvm/gems/ruby-1.8.7-p358@redmine-debian/gems/rack-1.1.1/lib/rack/lock.rb:11:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:114:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/reloader.rb:34:in `run'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:108:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/railties/lib/rails/rack/static.rb:31:in `call'
/home/f0y/.rvm/gems/ruby-1.8.7-p358@redmine-debian/gems/rack-1.1.1/lib/rack/urlmap.rb:47:in `call'
/home/f0y/.rvm/gems/ruby-1.8.7-p358@redmine-debian/gems/rack-1.1.1/lib/rack/urlmap.rb:41:in `each'
/home/f0y/.rvm/gems/ruby-1.8.7-p358@redmine-debian/gems/rack-1.1.1/lib/rack/urlmap.rb:41:in `call'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/railties/lib/rails/rack/log_tailer.rb:17:in `call'
/home/f0y/.rvm/gems/ruby-1.8.7-p358@redmine-debian/gems/rack-1.1.1/lib/rack/content_length.rb:13:in `call'
/home/f0y/.rvm/gems/ruby-1.8.7-p358@redmine-debian/gems/rack-1.1.1/lib/rack/handler/webrick.rb:48:in `service'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/webrick/server.rb:162:in `start'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/webrick/server.rb:95:in `start'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/webrick/server.rb:92:in `each'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/webrick/server.rb:92:in `start'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/webrick/server.rb:23:in `start'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/webrick/server.rb:82:in `start'
/home/f0y/.rvm/gems/ruby-1.8.7-p358@redmine-debian/gems/rack-1.1.1/lib/rack/handler/webrick.rb:14:in `run'
/home/f0y/workspace-ruby/redmine-1.3.0/vendor/rails/railties/lib/commands/server.rb:111
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/home/f0y/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
script/server:3

Configuration of development environment:

config.cache_classes     = false
config.whiny_nils        = true
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching             = false
config.action_mailer.raise_delivery_errors = false

A reason of the error is caching but I’m not sure.

History

#1 Updated by Andriy Lesyuk almost 13 years ago

  • Status changed from New to Open

Thanks for reporting!

#2 Updated by Andriy Lesyuk almost 13 years ago

  • Target version set to 0.0.2

#3 Updated by Andriy Lesyuk over 12 years ago

  • Status changed from Open to Incomplete

Could not reproduce this issue... It does not seem to be related to WikiNG either.
Are you still experiencing it?

#4 Updated by Oleg Kandaurov over 12 years ago

Somehow it is related to any plugin that deals with wiki formatting. Does plugin work well in development mode?

#5 Updated by Andriy Lesyuk over 12 years ago

  • Status changed from Incomplete to Open
  • Target version deleted (0.0.2)

I’m sorry, yes, I can now reproduce... But really do not know how to fix.

What other plugins are experiencing the same issue?

#6 Updated by Oleg Kandaurov over 12 years ago

For example http://www.redmine.org/plugins/wikiextensions

And I have no idea hot to fix it.

#7 Updated by David Rahusen about 12 years ago

Same problem here!
I am using both, WikiNG and Wiki extensions.

Also available in: Atom PDF

Terms of use | Privacy policy