Project

General

Profile

plugin : assets directory missing

Added by thomas nicot over 7 years ago

Hello,

I use redmine 3.2.3 and i need to install some plugins :
  • Redmine Better Gantt Chart plugin
  • HTTP Authentication plugin
  • Redmine Simple Support
  • Redmine System Notification plugin

but i've got some problems ...

on the plugin Redmine Better Gantt Chart plugin, first i have an error when i executed rake redmine:plugins:migrate RAILS_ENV=production :

LoadError: cannot load such file -- active_support/basic_object

i saw on internet that the lib basic_object is deprecated on the version 4.0.2 of Ruby on Rails (http://apidock.com/rails/v4.0.2/ActiveSupport/BasicObject/inherited/class). So i found in which file it try to load active_support/basic_object (redmineRoot/plugins/redmine_better_gantt_chart/lib/redmine_better_gantt_chart/active_record/callback_extensions_for_rails3.rb) and i delete the line :

require 'active_support/basic_object'

and modifie the line :

class WithoutCallbacks < ActiveSupport::BasicObject

to :

class WithoutCallbacks < ActiveSupport::ProxyObject

There the rake redmine:plugins:migrate RAILS_ENV=production works.

But when i try to use my redmine I select a project and try to see a gantt I have an error 500. So I look in the error file of redmine :

Processing by GanttsController#show as HTML
Parameters: {"project_id"=>"tess"}
Current user: thnicot (id=699)
Rendered queries/_filters.html.erb (33.9ms)
Rendered plugins/redmine_better_gantt_chart/app/views/gantts/show.html.erb within layouts/base (102.5ms)
Completed 500 Internal Server Error in 218ms (ActiveRecord: 8.8ms)

ActionView::Template::Error (wrong number of arguments (1 for 0)):
65:
66: # Width of the entire chart
67: g_width = ((@gantt.work_days_in(@gantt.date_to, @gantt.date_from) + 1) * zoom).to_i
68: @gantt.render(:top => headers_height + 8,
69: :zoom => zoom,
70: :g_width => g_width,
71: :subject_width => subject_width)
plugins/redmine_better_gantt_chart/lib/redmine/helpers/better_gantt.rb:160:in `projects'
plugins/redmine_better_gantt_chart/lib/redmine/helpers/better_gantt.rb:194:in `render'
plugins/redmine_better_gantt_chart/app/views/gantts/show.html.erb:68:in `_plugins_redmine_better_gantt_chart_app_views_gantts_show_html_erb__131245757__644422948'
plugins/redmine_better_gantt_chart/lib/redmine_better_gantt_chart/gantts_controller_patch.rb:23:in `block (2 levels) in show_with_custom_helper'
plugins/redmine_better_gantt_chart/lib/redmine_better_gantt_chart/gantts_controller_patch.rb:22:in `show_with_custom_helper'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

And i dont know how to fix it.

For the other plugins i cant run rake redmine:plugins:migrate ... because it looking for the directory assets in the plugin but on the git (and when i clone it) there is not this directory.

Thanks for your help,
Thomas