stefanzugal / accept-plugin

Accept plugin for redmine
MIT License
18 stars 4 forks source link

Plugin issues a 500 error #16

Open gnudiff opened 4 years ago

gnudiff commented 4 years ago

On Ubuntu 20.04LTS, with distro installed Redmine 4.0 the plugin installs without problem.

However:

Completed 404 Not Found in 118ms (Views: 72.1ms | ActiveRecord: 6.2ms) Started GET "/plugin_assets/accept/stylesheets/style.css" for 217.28.51.154 at 2020-10-07 13:07:21 +0200 ActionController::RoutingError (No route matches [GET] "/plugin_assets/accept/stylesheets/style.css"):

Started GET "/issues/1" for 217.28.51.154 at 2020-10-07 13:05:58 +0200 Processing by IssuesController#show as HTML Parameters: {"id"=>"1"} Current user: ** (id=5) Rendering issues/show.html.erb within layouts/base Rendered issues/_action_menu.html.erb (9.1ms) Rendered plugins/redmine_agile/app/views/issues/_issue_story_points.html.erb (9.3ms) Rendered plugins/redmine_agile/app/views/issues/_agile_data_labels.html.erb (10.8ms) Rendered plugins/redmineup_tags/app/views/issues/_tags.html.erb (9.1ms) Rendered issue_relations/_form.html.erb (3.9ms) Rendered issues/_relations.html.erb (7.1ms) Rendered issues/_history.html.erb (16.8ms) Rendered issues/_action_menu.html.erb (2.5ms) Rendered issues/_form_custom_fields.html.erb (0.9ms) Rendered issues/_attributes.html.erb (26.7ms) Rendered issues/_form.html.erb (50.0ms) Rendered issues/_edit.html.erb (54.5ms) Rendered issues/_action_menu_edit.html.erb (59.0ms) Rendered issues/show.html.erb within layouts/base (155.5ms) Completed 500 Internal Server Error in 340ms (ActiveRecord: 90.3ms)

ActionView::Template::Error (uninitialized constant AcceptPlugin::Hooks::AcceptHelper Did you mean? AccountHelper): 44: <%= render :partial => 'issues/attributes' %> 45:

46: 47: <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> 48: <% end %> 49: 50: <% heads_for_wiki_formatter %>

Both of these issues may be related to the fact that distro version of Redmine uses its own dpkg-reconfigure scripts instead of default bundle rake executions we use for plugin installations. Additionally, plugin and asset directories are located in locations different from Redmine default installation. However, a number of other plugins, such as agile_light, tags_light, wysiwig editor etc, work OK in this setup.

Environment: Redmine version 4.0.6.stable Ruby version 2.7.0-p0 (2019-12-25) [x86_64-linux-gnu] Rails version 5.2.3 Environment production Database adapter PostgreSQL Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp SCM: Git 2.25.1 Filesystem
Redmine plugins: redmine_agile 1.5.4 redmine_custom_css 0.1.7 redmine_wysiwyg_editor 0.17.0 redmineup_tags 2.0.8

stefanzugal commented 4 years ago

Thanks for the detailed bug report! Currently, I am really really short on time so I guess I will not have time to look into this issue. When things are getting less packed, I will.