fraoustin / redmine_indicator

13 stars 8 forks source link

500 Internal Server Error - ActionView::Template::Error (undefined method `indicator_left_top' for #<Project:0x00007f6e21fc2ad8> Did you mean? indicator_left_top_empty) #19

Open saFany opened 2 years ago

saFany commented 2 years ago

I had install the plugin but when i open a project i get a 500 internal server error. what's going on here?

My log is:

Completed 200 OK in 115ms (Views: 70.8ms | ActiveRecord: 15.3ms) Started GET "/projects/cobel" for 10.55.57.36 at 2021-11-19 19:06:04 -0600 Processing by ProjectsController#show as HTML Parameters: {"id"=>"cobel"} Current user: admin (id=1) Rendering projects/show.html.erb within layouts/base Rendered plugins/redmine_indicator/app/views/projects/_view_projects_show_left_indicator.html.erb (73.5ms) Rendered projects/show.html.erb within layouts/base (93.0ms) Completed 500 Internal Server Error in 140ms (ActiveRecord: 14.2ms)

ActionView::Template::Error (undefined method `indicator_left_top' for # Did you mean? indicator_left_top_empty): 1:

2: <%= 3: render :partial => "projects/view_projects_show_indicator", :locals => {:project => project, :indicatorValue => project.indicator_left_top} 4: %>

fraoustin commented 2 years ago

what is your redmine version?

saFany commented 2 years ago

This are my versions: Environment: Redmine version 4.2.3.stable Ruby version 2.7.3-p183 (2021-04-05) [x86_64-linux] Rails version 5.2.6

fraoustin commented 2 years ago

I check the last version (4.2.3.stable) with docker

My Dockerfile is

FROM redmine
WORKDIR /usr/src/redmine/plugins
RUN git clone https://github.com/fraoustin/redmine_indicator.git
WORKDIR /usr/src/redmine/

and load with

docker build -t myredmine .
docker run -d -p 3000:3000 -e REDMINE_PLUGINS_MIGRATE=1 --name myredmine myredmine

And all it's ok ...

How do you install redmine?