backlogs / redmine_backlogs

A Redmine plugin for agile teams
https://backlogs.github.io/www/
GNU General Public License v2.0
773 stars 461 forks source link

Error 500 when using backlog #297

Closed floreal closed 13 years ago

floreal commented 13 years ago

Hello, Here is the error I get in my log when I click on my project "Backlogs" link:

NoMethodError (undefined method `visible_condition' for #<Class:0xb592d640>):
  /usr/lib/ruby/vendor_ruby/active_record/base.rb:1998:in `method_missing'
  vendor/plugins/redmine_backlogs/app/models/rb_story.rb:7:in `condition'
  vendor/plugins/redmine_backlogs/app/models/rb_story.rb:40:in `backlog'
  vendor/plugins/redmine_backlogs/app/models/rb_story.rb:51:in `product_backlog'
  vendor/plugins/redmine_backlogs/app/controllers/rb_master_backlogs_controller.rb:7:in `show'
  /usr/lib/ruby/vendor_ruby/action_controller/base.rb:1333:in `send'
  /usr/lib/ruby/vendor_ruby/action_controller/base.rb:1333:in `perform_action_without_filters'
  /usr/lib/ruby/vendor_ruby/action_controller/filters.rb:617:in `call_filters'
  /usr/lib/ruby/vendor_ruby/action_controller/filters.rb:610:in `perform_action_without_benchmark'
  /usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
  /usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
  /usr/lib/ruby/vendor_ruby/action_controller/rescue.rb:160:in `perform_action_without_flash'
  /usr/lib/ruby/vendor_ruby/action_controller/flash.rb:151:in `perform_action'
  /usr/lib/ruby/vendor_ruby/action_controller/base.rb:532:in `send'
  /usr/lib/ruby/vendor_ruby/action_controller/base.rb:532:in `process_without_filters'
  /usr/lib/ruby/vendor_ruby/action_controller/filters.rb:606:in `process'
  /usr/lib/ruby/vendor_ruby/action_controller/base.rb:391:in `process'
  /usr/lib/ruby/vendor_ruby/action_controller/base.rb:386:in `call'
  /usr/lib/ruby/vendor_ruby/action_controller/routing/route_set.rb:438:in `call'
  /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:87:in `dispatch'
  /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:121:in `_call'
  /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:130:in `build_middleware_stack'
  /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:29:in `call'
  /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:29:in `call'
  /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
  /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:9:in `cache'
  /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:28:in `call'
  /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
  /usr/lib/ruby/vendor_ruby/action_controller/string_coercion.rb:25:in `call'
  /usr/lib/ruby/1.8/rack/head.rb:9:in `call'
  /usr/lib/ruby/1.8/rack/methodoverride.rb:24:in `call'
  /usr/lib/ruby/vendor_ruby/action_controller/params_parser.rb:15:in `call'
  /usr/lib/ruby/vendor_ruby/action_controller/session/cookie_store.rb:99:in `call'
  /usr/lib/ruby/vendor_ruby/action_controller/failsafe.rb:26:in `call'
  /usr/lib/ruby/1.8/rack/lock.rb:11:in `call'
  /usr/lib/ruby/1.8/rack/lock.rb:11:in `synchronize'
  /usr/lib/ruby/1.8/rack/lock.rb:11:in `call'
  /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:106:in `call'
  /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
  /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
  /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  /usr/lib/phusion_passenger/passenger-spawn-server:61

Here are my gem list:

*** LOCAL GEMS ***

Ascii85 (1.0.1)
daemon_controller (0.2.6)
fastthread (1.0.7)
googlecharts (1.6.7)
gruff (0.3.6)
holidays (1.0.3)
icalendar (1.1.6)
mini_magick (3.3)
nokogiri (1.5.0)
open-uri-cached (0.0.4)
passenger (3.0.9)
pdf-reader (0.10.0)
prawn (0.12.0)
rack (1.3.4)
rake (0.9.2)
subexec (0.1.0)
ttfunk (1.0.3)

I installed redmine with passenger from ubuntu package repository (11.10) Did I miss something or is it a real bug?

By the way, I noticed that my version of rack is > 1.1.0 Reguards

psdavis commented 13 years ago

I'm also having this problem.

mikoto20000 commented 13 years ago

Issue#visible_condition is added at 2011-03-15。

http://www.redmine.org/projects/redmine/repository/revisions/5141/diff/trunk/app/models/issue.rb

What version of your redmine is?

floreal commented 13 years ago

I forgot to mention it i thought it would appear in my gems, my version is 1.1.3 according to rhese information of the deb package:

$ aptitude show redmine
Package: redmine                              
State: installed
Automatically installed: no
Version: 1.1.3-4
Priority: supplémentaire
Section: universe/web
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Uncompressed Size: 12,7 M
Depends: ruby1.8, ruby-rails-2.3 | rails, dbconfig-common, redmine-sqlite |
         redmine-mysql | redmine-pgsql, debconf (>= 0.5) | debconf-2.0
PreDepends: debconf
Suggests: libsvn-ruby (>= 1.3), ruby-rmagick, libopenid-ruby
Breaks: redmine-plugin-botsfilter (<= 1.02-1)
Description: flexible project management web application
 Redmine is a flexible project management web application. Written using Ruby on
 Rails framework, it is cross-platform and cross-database. 

 Dependencies for database support are provided by these metapackages:
 redmine-mysql, redmine-pgsql, redmine-sqlite. 

 Features 
 * Multiple projects support 
 * Flexible role based access control 
 * Flexible issue tracking system 
 * Gantt chart and calendar 
 * News, documents & files management 
 * Feeds & email notifications 
 * Per project wiki 
 * Per project forums 
 * Time tracking 
 * Custom fields for issues, time-entries, projects and users 
 * SCM integration (SVN, CVS, Git, Mercurial, Bazaar and Darcs) 
 * Issue creation via email 
 * Multiple LDAP authentication support 
 * User self-registration support 
 * Multilanguage support
Homepage: http://www.redmine.org
psdavis commented 13 years ago

apt-cache show redmine Package: redmine Priority: extra Section: universe/web Installed-Size: 12384 Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com Original-Maintainer: Jérémy Lal kapouer@melix.org Architecture: all Version: 1.1.3-4 Depends: ruby1.8, ruby-rails-2.3 | rails, dbconfig-common, redmine-sqlite | redmine-mysql | redmine-pgsql, debconf (>= 0.5) | debconf-2.0 Pre-Depends: debconf Suggests: libsvn-ruby (>= 1.3), ruby-rmagick, libopenid-ruby Breaks: redmine-plugin-botsfilter (<= 1.02-1) Filename: pool/universe/r/redmine/redmine_1.1.3-4_all.deb Size: 1649554 MD5sum: faf85698fcf7021b3046a196c048970e SHA1: 0c966af775de08db0636513e28fdaf0a35e6f907 SHA256: e89977f566a1eb96035918066297cd811dd47e987b19ee6cc20bb0e1046aa95a Description-en: flexible project management web application Redmine is a flexible project management web application. Written using Ruby on Rails framework, it is cross-platform and cross-database. . Dependencies for database support are provided by these metapackages: redmine-mysql, redmine-pgsql, redmine-sqlite. . Features * Multiple projects support * Flexible role based access control * Flexible issue tracking system * Gantt chart and calendar * News, documents & files management * Feeds & email notifications * Per project wiki * Per project forums * Time tracking * Custom fields for issues, time-entries, projects and users * SCM integration (SVN, CVS, Git, Mercurial, Bazaar and Darcs) * Issue creation via email * Multiple LDAP authentication support * User self-registration support * Multilanguage support Homepage: http://www.redmine.org Description-md5: 7181524e38903cab9fd4a105bf891b3c Bugs: https://bugs.launchpad.net/ubuntu/+filebug Origin: Ubuntu

On 10/21/2011 02:02 AM, mikoto20000 wrote:

Issue#visible_condition is added at 2011-03-15。

http://www.redmine.org/projects/redmine/repository/revisions/5141/diff/trunk/app/models/issue.rb

What version of your redmine is?

psdavis commented 13 years ago

This may actually be of more use:

dpkg -l redmine* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii redmine 1.1.3-4 flexible project management web application ii redmine-mysql 1.1.3-4 metapackage providing MySQL dependencies for un redmine-pgsql (no description available) un redmine-plugin (no description available) un redmine-sqlite

On 10/21/2011 02:02 AM, mikoto20000 wrote:

Issue#visible_condition is added at 2011-03-15。

http://www.redmine.org/projects/redmine/repository/revisions/5141/diff/trunk/app/models/issue.rb

What version of your redmine is?

retorquere commented 13 years ago

The main problem is that RM introduced incompatible internal features going from 1.1.x to 1.2.x. We can see what we can do, but current backlogs targets 1.2.x

psdavis commented 13 years ago

Ok, then I need to upgrade the redmine service, thanks!

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message----- From: friflaj [reply@reply.github.com] Received: Saturday, 22 Oct 2011, 6:11am To: Davis, Spencer [psdavis@bsu.edu] Subject: Re: [redmine_backlogs] Error 500 when using backlog (#297)

The main problem is that RM introduced incompatible internal features going from 1.1.x to 1.2.x. We can see what we can do, but current backlogs targets 1.2.x

Reply to this email directly or view it on GitHub: https://github.com/relaxdiego/redmine_backlogs/issues/297#issuecomment-2489323