dr-itz / redmine_workflow_enhancements

Redmine workflow enhancements. UNMAINTAINED
GNU General Public License v2.0
27 stars 29 forks source link

500 Internal Server Error #2

Closed atopcu closed 10 years ago

atopcu commented 10 years ago

Hi, Thanks for this errort. There is no error on workflow edit page :+1: There is an error on tracker edit page :-1:

Regards.. Adnan

Started GET "/trackers/14/edit" for x.x.0.1 at 2014-08-11 08:30:13 +0300 Processing by TrackersController#edit as HTML Parameters: {"id"=>"14"} Current user: x (id=1646) Rendered text template (0.0ms) Completed 200 OK in 15083.7ms (Views: 2.5ms | ActiveRecord: 5.4ms) Rendered plugins/redmine_workflow_enhancements/app/views/trackers/edit.html.erb within layouts/admin (4442.8ms) Completed 500 Internal Server Error in 4468.8ms

ActionView::Template::Error (undefined method render_super' for #<#<Class:0x00000008178128>:0x000000085f1a88>): 1: <%= render_super(__FILE__) %> 2: 3: <div class="workflowGraphContainer"> 4: <%= render :partial => 'workflow_enhancements/workflow_graph', :locals => { plugins/redmine_workflow_enhancements/app/views/trackers/edit.html.erb:1:in_plugins_redmine_workflow_enhancements_app_views_trackers_edit_html_erb___3759611796943326781_70747880' actionpack (3.2.19) lib/action_view/template.rb:145:in `block in render'

Environment: Redmine version 2.5.2.stable.13333 Ruby version 2.0.0-p481 (2014-05-08) [x86_64-linux] Rails version 3.2.19 Environment production Database adapter Mysql2

dr-itz commented 10 years ago

Hmm...do you have any other plugins installed?

atopcu commented 10 years ago

yes. there are too many plugin installed :( I can add new tracker but don't edit existings. I updated latest version and check again, error still exist.

Regars..

dr-itz commented 10 years ago

Very strange...the helper providing the render_super() method is added to ApplicationController so it should be available everywhere. And it seems to work in the case of the workflows, but not the trackers. Could you do this in the redmine root directory to see if any of your plugins does something related to trackers:

find plugins |grep tracker
dr-itz commented 10 years ago

Also, could you try to change the init.rb of the plugin? Replace the first 3 lines with these:

Rails.configuration.to_prepare do
  WorkflowsController.helper :workflow_enhancements
  TrackersController.helper :workflow_enhancements
end
atopcu commented 10 years ago

It worked! :) Thanks..

atopcu commented 10 years ago

We use Luxury Buttons plugin (http://www.redmine.org/plugins/redmine_luxury_buttons) too. In my opinion, It may conflict with this.

Regards.

atopcu commented 10 years ago

Thanks.