-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArgumentError: The scope body needs to be callable. #1145
Comments
Use https://github.com/fredsdc/redmine_backlogs and works |
this is my errors: Tasks: TOP => redmine:backlogs:install => environment (See full trace by running task with --trace) please help me.tkx. |
bash-4.1# bundle exec rake db:migrate --trace Tasks: TOP => db:migrate => environment |
this is another environment: root@debian:/usr/share/redmine# bundle exec rake redmine:backlogs:install =====================================================
|
this is another problem when i re-install the plugin. root@debian:/usr/share/redmine/plugins/redmine_backlogs# bundle exec rake redmine:backlogs:install =====================================================
|
when i add one story, the error tips: |
Hello. I have an issue when trying install the plugin in redmine 3.
This is my configuratation
Environment:
Redmine version 3.0.1.stable
Ruby version 2.2.4-p230 (2015-12-16) [i686-linux]
Rails version 4.2.0
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.8
Git 1.9.1
Filesystem
Redmine plugins:
redmine_planning 1.0.0
My database is MySQL 5.5.54 (im tested in Mysql 5.7.17 too, with the same result)
Im using the version feature/redmine3 (and intented too with v1.0.6, with the same result)
Im working with RVM, This is the gems in this gemset:
actionmailer (4.2.0)
actionpack (4.2.0)
actionpack-action_caching (1.2.0)
actionpack-xml_parser (1.0.2)
actionview (4.2.0)
activejob (4.2.0)
activemodel (4.2.0)
activerecord (4.2.0)
activesupport (4.2.0)
arel (6.0.4)
bigdecimal (1.2.6)
builder (3.2.3)
bundle (0.0.1)
bundler (1.14.6)
bundler-unload (1.0.2)
coderay (1.1.1)
concurrent-ruby (1.0.5)
daemons (1.2.4)
erubis (2.7.0)
eventmachine (1.2.3)
executable-hooks (1.3.2)
gem-wrappers (1.2.7)
globalid (0.4.0)
holidays (1.0.8)
htmlentities (4.3.1)
i18n (0.8.1)
icalendar (2.4.1)
io-console (0.4.3)
jquery-rails (3.1.4)
json (1.8.6, 1.8.1)
loofah (2.0.3)
mail (2.6.4)
mime-types (3.1)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.10.1, 5.4.3)
mysql2 (0.3.14)
net-ldap (0.3.1)
nokogiri (1.7.1)
open-uri-cached (0.0.5)
pdf-core (0.7.0)
power_assert (0.2.2)
prawn (2.2.2)
protected_attributes (1.1.3)
psych (2.0.8)
rack (1.6.5)
rack-openid (1.4.2)
rack-test (0.6.3)
rails (4.2.0)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.8)
rails-html-sanitizer (1.0.3)
railties (4.2.0)
rake (12.0.0, 10.4.2)
rbpdf (1.18.7)
rdoc (4.2.0)
redcarpet (3.1.2)
request_store (1.0.5)
rmagick (2.16.0)
ruby-openid (2.3.0)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
sprockets (3.7.1)
sprockets-rails (3.2.0)
test-unit (3.0.8)
thin (1.7.0)
thor (0.19.4)
thread_safe (0.3.6)
ttfunk (1.5.1)
tzinfo (1.2.3)
The trace of the error is this
'$ RAILS_ENV=production rake redmine:plugins:migrate rake aborted! ArgumentError: The scope body needs to be callable. /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activerecord-4.2.0/lib/active_record/scoping/named.rb:143:in
scope'/var/www/mendoza/redmine/plugins/redmine_backlogs/app/models/rb_release.rb:174:in class:RbRelease'
/var/www/mendoza/redmine/plugins/redmine_backlogs/app/models/rb_release.rb:156:in
<top (required)>' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
require'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
block in require' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in
load_dependency'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
require' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:360:in
require_or_load'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:494:in
load_missing_constant' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:184:in
const_missing'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:526:in
load_missing_constant' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:184:in
const_missing'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:526:in
load_missing_constant' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:184:in
const_missing'/var/www/mendoza/redmine/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:176:in
block in included' /var/www/mendoza/redmine/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:174:in
class_eval'/var/www/mendoza/redmine/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:174:in
included' /var/www/mendoza/redmine/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:346:in
include'/var/www/mendoza/redmine/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:346:in
<top (required)>' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
require'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
block in require' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in
load_dependency'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
require' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:360:in
require_or_load'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:317:in
depend_on' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:233:in
require_dependency'/var/www/mendoza/redmine/plugins/redmine_backlogs/init.rb:32:in
block in <top (required)>' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:441:in
instance_exec'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:441:in
block in make_lambda' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:189:in
call'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:189:in
block in simple' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in
call'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in
block in simple' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in
call'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in
_run_callbacks' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in
_run_prepare_callbacks'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in
run_callbacks' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/actionpack-4.2.0/lib/action_dispatch/middleware/reloader.rb:83:in
prepare!'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/actionpack-4.2.0/lib/action_dispatch/middleware/reloader.rb:55:in
prepare!' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/railties-4.2.0/lib/rails/application/finisher.rb:50:in
block in module:Finisher'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/railties-4.2.0/lib/rails/initializable.rb:30:in
instance_exec' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/railties-4.2.0/lib/rails/initializable.rb:30:in
run'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/railties-4.2.0/lib/rails/initializable.rb:55:in
block in run_initializers' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/railties-4.2.0/lib/rails/initializable.rb:54:in
run_initializers'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/railties-4.2.0/lib/rails/application.rb:352:in
initialize!' /var/www/mendoza/redmine/config/environment.rb:14:in
<top (required)>'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/railties-4.2.0/lib/rails/application.rb:328:in
require' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/railties-4.2.0/lib/rails/application.rb:328:in
require_environment!'/usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/railties-4.2.0/lib/rails/application.rb:443:in
block in run_tasks_blocks' /usr/local/rvm/gems/ruby-2.2.4@mendoza/gems/rake-12.0.0/exe/rake:27:in
<top (required)>'/usr/local/rvm/gems/ruby-2.2.4@mendoza/bin/ruby_executable_hooks:15:in
eval' /usr/local/rvm/gems/ruby-2.2.4@mendoza/bin/ruby_executable_hooks:15:in
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
`
Somebody resolve this error?
The text was updated successfully, but these errors were encountered: