Project

General

Profile

Actions

Defect #5330

closed

Error show user and overall activity link.

Added by Marcello Henrique over 14 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
2010-04-15
Due date:
% Done:

100%

Estimated time:
Resolution:
Invalid
Affected version:

Description

With some users this error appears:

ActionView::TemplateError (wrong constant name issue) on line #51 of app/views/users/show.rhtml:
48: <% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| ->
49: <dt class="<
= e.event_type >">
50: <span class="time"><
= format_time(e.event_datetime, false) ></span>
51: <
= content_tag('span', h(e.project), :class => 'project') >
52: <
= link_to format_activity_title(e.event_title), e.event_url ></dt>
53: <dd><span class="description"><
= format_activity_description(e.event_description) ></span></dd>
54: <
end -%>

app/models/journal.rb:62:in `project'
app/views/users/show.rhtml:51:in `_run_rhtml_app47views47users47show46rhtml'
app/views/users/show.rhtml:48:in `each'
app/views/users/show.rhtml:48:in `_run_rhtml_app47views47users47show46rhtml'
app/views/users/show.rhtml:45:in `each'
app/views/users/show.rhtml:45:in `_run_rhtml_app47views47users47show46rhtml'
app/controllers/users_controller.rb:70:in `show'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'

Rendering /data/redmine/public/500.html (500 Internal Server Error)

Processing ProjectsController#activity (for 200.137.222.231 at 2010-04-15 16:43:00) [GET]
Parameters: {"action"=>"activity", "id"=>nil, "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/activity

ActionView::TemplateError (wrong constant name issue) on line #12 of app/views/projects/activity.rhtml:
9: <dt class="<%= e.event_type > <= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil >">
10: <
= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) >
11: <span class="time"><
= format_time(e.event_datetime, false) ></span>
12: <
= content_tag('span', h(e.project), :class => 'project') if @project.nil? > <#= || Herve Harster != e.project >
13: <
= link_to format_activity_title(e.event_title), e.event_url ></dt>
14: <dd><span class="description"><
= format_activity_description(e.event_description) ></span>
15: <span class="author"><
= e.event_author if e.respond_to?(:event_author) %></span></dd>

app/models/journal.rb:62:in `project'
app/views/projects/activity.rhtml:12:in `_run_rhtml_app47views47projects47activity46rhtml'
app/views/projects/activity.rhtml:8:in `each'
app/views/projects/activity.rhtml:8:in `_run_rhtml_app47views47projects47activity46rhtml'
app/views/projects/activity.rhtml:5:in `each'
app/views/projects/activity.rhtml:5:in `_run_rhtml_app47views47projects47activity46rhtml'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'

Rendering /data/redmine/public/500.html (500 Internal Server Error)

I'm using: Debian Lenny, Rails 2.3.5, ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux], mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (x86_64) using readline 5.2

svn info
Caminho: .
URL: http://redmine.rubyforge.org/svn/trunk
Raiz do Repositório: http://redmine.rubyforge.org/svn
UUID do repositório: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revisão: 3671
Tipo de Nó: diretório
Agendado: normal
Autor da Última Mudança: jplang
Revisão da Última Mudança: 3671
Data da Última Mudança: 2010-04-13 14:51:06 -0300 (Ter, 13 Abr 2010)

Actions #1

Updated by Marcello Henrique over 14 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Disregard this task...

In table journals in journalized_type the correct value is Issue and was defined issue... I correct this in my database and now all is well.

Actions #2

Updated by Felix Schäfer over 14 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid
Actions #3

Updated by Andrew Betts almost 14 years ago

Marcello, I just had this exact problem and wanted to say thanks for saving me many hours of my life trying to debug that one :-)

Actions #4

Updated by Marcello Henrique almost 14 years ago

Andrew Betts wrote:

Marcello, I just had this exact problem and wanted to say thanks for saving me many hours of my life trying to debug that one :-)

How nice that can help someone.

Actions #5

Updated by belkacem niach over 12 years ago

  • File Untitled.jpg added

-

Actions #6

Updated by belkacem niach over 12 years ago

  • File 201204232223_002.JPG added

-

Actions #7

Updated by Etienne Massip over 12 years ago

  • File deleted (Untitled.jpg)
Actions #8

Updated by Etienne Massip over 12 years ago

  • File deleted (201204232223_002.JPG)
Actions

Also available in: Atom PDF