Project

General

Profile

Issues list 500 error

Added by Ger Ger almost 10 years ago

Good day.

I have 500 error when trying get issues list.

Redmine:
Environment:
Redmine version 2.3.2.stable.12202
Ruby version 1.9.3-p484 (2013-11-22) [amd64-freebsd9]
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
redmine_charts2 0.2.1
redmine_code_review 0.6.2
redmine_contacts 3.2.5-pro
redmine_extended_watchers 0.0.3

Production log:
Started GET "/activity?from=2014-04-18&user_id=187" for 172.17.1.252 at 2014-05-27 14:08:34 +0400
Processing by ActivitiesController#index as HTML
Parameters: {"from"=>"2014-04-18", "user_id"=>"187"}
Current user: georgiy.gerasimov (id=187)
Completed 500 Internal Server Error in 12ms

NoMethodError (undefined method `lft' for nil:NilClass):
app/models/issue.rb:76:in `block in <class:Issue>'
lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb:76:in `find_events'
lib/redmine/activity/fetcher.rb:76:in `block (2 levels) in events'
lib/redmine/activity/fetcher.rb:75:in `each'
lib/redmine/activity/fetcher.rb:75:in `block in events'
lib/redmine/activity/fetcher.rb:74:in `each'
lib/redmine/activity/fetcher.rb:74:in `events'
app/controllers/activities_controller.rb:41:in `index'

mysql> SELECT id, parent_id, lft, rgt FROM projects;
--------------+------+------+ | id | parent_id | lft | rgt |
--------------+------+------+ | 1 | NULL | 153 | 154 | | 2 | NULL | 91 | 112 | | 4 | 2 | 92 | 93 | | 5 | 2 | 104 | 107 | | 6 | 5 | 105 | 106 | | 7 | NULL | 129 | 130 | | 8 | NULL | 229 | 344 | | 9 | 8 | 240 | 241 | | 10 | 8 | 340 | 341 | | 11 | NULL | 59 | 60 | | 207 | NULL | 175 | 176 | | 209 | NULL | 161 | 164 | | 210 | NULL | 437 | 438 | | 211 | NULL | 447 | 448 | | 212 | NULL | 187 | 188 | | 213 | NULL | 443 | 444 | | 214 | NULL | 209 | 210 | | 215 | NULL | 185 | 186 | | 216 | NULL | 417 | 418 | | 217 | NULL | 119 | 120 | | 218 | NULL | 137 | 138 | | 219 | NULL | 435 | 436 | | 220 | NULL | 69 | 70 | | 221 | NULL | 41 | 42 | | 222 | NULL | 431 | 432 | | 223 | NULL | 429 | 430 | | 224 | NULL | 427 | 428 | | 225 | NULL | 177 | 178 | | 226 | NULL | 195 | 196 | | 227 | NULL | 197 | 198 | | 228 | NULL | 419 | 420 | | 229 | NULL | 395 | 396 | | 230 | NULL | 173 | 174 | | 231 | NULL | 169 | 170 | | 232 | NULL | 205 | 206 | | 233 | NULL | 165 | 166 |
--------------+------+------+
209 rows in set (0.00 sec)


Replies (3)

RE: Issues list 500 error - Added by Ger Ger almost 10 years ago

I shall be glad to any help in my question.

Thanks in advance.

RE: Issues list 500 error - Added by Matthias Fischer almost 10 years ago

Hi,

I have exactly the same problem. As I can see, we both have redmine_extended_watchers plugin. Maybe thats the problem.

RE: Issues list 500 error - Added by Ger Ger almost 10 years ago

Thank you very much. I updated the plugin and it worked.

    (1-3/3)