Giter Site home page Giter Site logo

redmine 1.2.1 raises NoMethodError in IssuesController#update undefined method `>' for nil:NilClass about redmine_better_gantt_chart HOT 6 OPEN

kulesa avatar kulesa commented on August 19, 2024
redmine 1.2.1 raises NoMethodError in IssuesController#update undefined method `>' for nil:NilClass

from redmine_better_gantt_chart.

Comments (6)

kulesa avatar kulesa commented on August 19, 2024

Hi! Few questions here:

  1. Did you try it with clean Redmine 1.2.1 (without other patches)? The patch that allows subtasks in other projects might be the cause. Could you send me a link to this patch?
  2. Make sure you are using the plugin installed from this git repo, and not from Redmine site. The version of the plugin on Redmine site is a bit obsolete and doesn't include some latest fixes.
  3. What are the start and end dates, and durations of the issues you are creating? Are ther any empty/zero values?

from redmine_better_gantt_chart.

rsilvestri avatar rsilvestri commented on August 19, 2024

Hi Alexey,

Have a rather busy time and will be in holiday the coming week. Will
give you feedback to your queries begining September.

Anyway, thanks very much for quick reaction and support.

Regards,
Ruedi.

-----Original Message-----
From: kulesa
[mailto:[email protected]
ithub.com]
Sent: Donnerstag, 18. August 2011 13:12
To: Silvestri, Ruedi
Subject: Re: [redmine_better_gantt_chart] redmine 1.2.1 raises
NoMethodError in IssuesController#update undefined method `>' for
nil:NilClass (#35)

Hi! Few questions here:

  1. Did you try it with clean Redmine 1.2.1 (without other patches)? The
    patch that allows subtasks in other projects might be the cause. Could
    you send me a link to this patch?
  2. Make sure you are using the plugin installed from this git repo, and
    not from Redmine site. The version of the plugin on Redmine site is a
    bit obsolete and doesn't include some latest fixes.
  3. What are the start and end dates, and durations of the issues you are
    creating? Are ther any empty/zero values?

Reply to this email directly or view it on GitHub:
#35 (comment)
ent-1838146

from redmine_better_gantt_chart.

swcurran avatar swcurran commented on August 19, 2024

I appear to be getting a similar issue. I have 1.2.1 stable installed with no patches, several plugins, including Better Gantt Chart. Sometimes, when I have a task with a "Follows" and try to change the due date of the "precedes" task, I get the internal error below - I've seen it several times. If I unlink the tasks, the update works fine. I just tried a series of updates to try to recreate the problem but unfortunately cannot have not determined the condition that triggers it, so this is not that much help. I was hoping that another data point might help in pinpointing a cause.

Processing IssuesController#update (for 192.168.168.95 at 2011-08-31 14:50:33) [PUT]
Parameters: {"time_entry"=>{"comments"=>"", "activity_id"=>"", "hours"=>""}, "commit"=>"Submit", "notes"=>"", "action"=>"update", "_method"=>"put", "authenticity_token"=>"uZlFovGWaoIaeLF0324VjEPo1awkGkcL1llOJkmz0CQ=", "id"=>"6", "issue"=>{"start_date"=>"2011-08-09", "custom_field_values"=>{"1"=>"", "2"=>""}, "estimated_hours"=>"80", "parent_issue_id"=>"4", "priority_id"=>"4", "is_private"=>"0", "lock_version"=>"12", "fixed_version_id"=>"1", "done_ratio"=>"80", "assigned_to_id"=>"8", "subject"=>"Implement Screen", "category_id"=>"", "tracker_id"=>"7", "due_date"=>"2011-09-09", "status_id"=>"2", "description"=>"Implement the main screen."}, "controller"=>"issues", "attachments"=>{"1"=>{"description"=>""}}}

NoMethodError (undefined method +' for nil:NilClass): app/models/issue.rb:606:insave_issue_with_child_records'
app/models/issue.rb:588:in save_issue_with_child_records' app/controllers/issues_controller.rb:175:inupdate'
config/initializers/mongrel.rb:62:in `dispatch_cgi'

from redmine_better_gantt_chart.

derekjwilliams avatar derekjwilliams commented on August 19, 2024

I'm seeing similar, it appears to be on issues that existed before installing better_gantt, but cannot be positive

from redmine_better_gantt_chart.

derekjwilliams avatar derekjwilliams commented on August 19, 2024

Log output, should have included in previous comment:

Processing IssuesController#update (for [removed] at 2011-12-13 11:31:29) [PUT]
  Parameters: {"time_entry"=>{"comments"=>"", "activity_id"=>"", "hours"=>""}, "
commit"=>"Submit", "notes"=>"", "action"=>"update", "_method"=>"put", "authentic
ity_token"=>"[removed]", "id"=>"299", "issue"
=>{"start_date"=>"", "custom_field_values"=>{"1"=>"3", "2"=>"3"}, "estimated_hou
rs"=>"0", "parent_issue_id"=>"298", "priority_id"=>"4", "is_private"=>"0", "lock
_version"=>"6", "fixed_version_id"=>"15", "done_ratio"=>"0", "assigned_to_id"=>"
1", "subject"=>"Appliance Update - Web Interface - Windows Supervisor", "tracker
_id"=>"8", "due_date"=>"", "status_id"=>"2", "description"=>"[removed, contained a URL]"}, "controller"=>"issues", "attachments"=>{"1"=
>{"description"=>""}}}

NoMethodError (undefined method `>' for nil:NilClass):
  app/models/issue.rb:831:in `recalculate_attributes_for'
  app/models/issue.rb:795:in `update_parent_attributes'
  app/models/issue.rb:831:in `recalculate_attributes_for'
  app/models/issue.rb:795:in `update_parent_attributes'
  app/models/issue.rb:629:in `save_issue_with_child_records'
  app/models/issue.rb:613:in `save_issue_with_child_records'
  app/controllers/issues_controller.rb:180:in `update'
  config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi

from redmine_better_gantt_chart.

cerw avatar cerw commented on August 19, 2024

Any update on this>

from redmine_better_gantt_chart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.