clueware / redmine_my_roadmaps

Redmine plugin that expose global roadmaps for the user's projects.
39 stars 10 forks source link

got an Internal error #5

Closed Arthraim closed 12 years ago

Arthraim commented 12 years ago

ruby: ree-1.8.7 rails: Rails 2.3.14

Clicked 'My roadmaps' on the top navigation bar, than got this error.

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

Back

log shows

NoMethodError (undefined method `member_of?' for "system":String):
  vendor/plugins/redmine_my_roadmaps/app/controllers/my_roadmaps_controller.rb:67:in `index'
  vendor/plugins/redmine_my_roadmaps/app/controllers/my_roadmaps_controller.rb:56:in `each'
  vendor/plugins/redmine_my_roadmaps/app/controllers/my_roadmaps_controller.rb:56:in `index'
  thin (1.3.1) lib/thin/connection.rb:80:in `pre_process'
  thin (1.3.1) lib/thin/connection.rb:78:in `catch'
  thin (1.3.1) lib/thin/connection.rb:78:in `pre_process'
  thin (1.3.1) lib/thin/connection.rb:53:in `process'
  thin (1.3.1) lib/thin/connection.rb:38:in `receive_data'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
  thin (1.3.1) lib/thin/backends/base.rb:61:in `start'
  thin (1.3.1) lib/thin/server.rb:159:in `start'
clueware commented 12 years ago

Can you give me the Redmine version, please?

Thanks

clueware commented 12 years ago

I've removed any reference to member_of?, could you have a try? I think it's related to system-wide versions, so I'll try to test such an occurence.

Arthraim commented 12 years ago

redmine: 1.3.1.stable

now the exception changed

NameError (uninitialized constant MyRoadmapsController::Projects):
  vendor/plugins/redmine_my_roadmaps/app/controllers/my_roadmaps_controller.rb:63:in `index'
  vendor/plugins/redmine_my_roadmaps/app/controllers/my_roadmaps_controller.rb:47:in `each'
  vendor/plugins/redmine_my_roadmaps/app/controllers/my_roadmaps_controller.rb:47:in `index'
  thin (1.3.1) lib/thin/connection.rb:80:in `pre_process'
  thin (1.3.1) lib/thin/connection.rb:78:in `catch'
  thin (1.3.1) lib/thin/connection.rb:78:in `pre_process'
  thin (1.3.1) lib/thin/connection.rb:53:in `process'
  thin (1.3.1) lib/thin/connection.rb:38:in `receive_data'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
  thin (1.3.1) lib/thin/backends/base.rb:61:in `start'
  thin (1.3.1) lib/thin/server.rb:159:in `start'
clueware commented 12 years ago

Ok, found it. Give me a moment to setup some system-wide versions and related issues, and you should be fine. I'll include this in version 0.0.6

Arthraim commented 12 years ago

It works now. But style may have some issues with my theme. After I deleted 2 lines, it looks good.

table.tracker tr td div {
    position: absolute; // <-- this
    text-align: left;
    left: 1.5em; // <-- and this
}
clueware commented 12 years ago

Glad that you don't have a crash anymore.

As for the CSS, removing these lines break the progress bars in "Related issues": when the title of the issue is longer than the % of progress of the issue, it bar end is pushed to the end of the title, showing a bar longer than the real progress.

If the theme you're using is freely available, feel free to open an issue with an URL pointing to the theme page: I'll try to find a solution.

Arthraim commented 12 years ago

CSS's not that important, so thanks @clueware :D