ksfltd / redmine_multi_calendar

This plugin allows creating holiday calendars and assigning them to the users.
Other
22 stars 13 forks source link

undefined method `m_calendar_link_to_previous_month1' #10

Open cforce opened 12 years ago

cforce commented 12 years ago

On redmine 1.3.3 i get following error after clicking calendar tab.

ActionView::TemplateError (undefined method `m_calendar_link_to_previous_month1' for #ActionView::Base:0x7f918980a058) on line #13 of vendor/plugins/redmine_multi_calendar/app/views/calendars/show.html.erb: 10: 11: 12:

13: <%= m_calendar_link_to_previous_month1(@year, @month, @one_calendar, @project.id) %> | <%= m_calendar_link_to_next_month1(@year, @month, @one_calendar, @project.id) %> 14:

15: 16:

vendor/plugins/redmine_multi_calendar/app/views/calendars/show.html.erb:13
vendor/plugins/redmine_multi_calendar/app/views/calendars/show.html.erb:3
passenger (3.0.8) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.8) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.8) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.8) helper-scripts/passenger-spawn-server:99

I, [2012-05-15T08:53:10.439632 #1927] INFO -- : Rendering /opt/infomine-1.3.x/public/500.html (500 Internal Server Error)

ksfltd commented 12 years ago

Hi Terence,

Did it work on 1.2.*?

This plugin highly depends on Redmine internals - there were no simple way for overriding the calendar module. And due to this dependency it is compatible only with 1.2.*, crashing on other Redmine versions. Eventually we will update it to a decent version, but this is not going to happen soon.

cforce commented 12 years ago

We use redmine 1.3.3 eventually soon 1.4.

Hopefully wou will upgrade, cause 1.2 is getting old now.

ksfltd commented 12 years ago

smartsystems4u has fixed compatibility issue with Redmine 1.4.1. perhaps this fix will work for 1.3.* as well

cmagowan commented 12 years ago

i get this same problem in 1.4.1.

kwieccia commented 12 years ago

Me too - 1.4.2.

cforce commented 12 years ago

We have that on redmine 1.3.3. Any updates? Its unsuable now.

b-sh commented 12 years ago

put require_dependency 'multi_calendar_application_helper' before require_dependency 'calendars_controller' in the init.rb it might solve your problem and put helper :all in your controller after unloadable

related issues #2, #5, #13

it solves this problem under redmine 2.0 but it should be the same on redmine 1.2 or 1.4