Project

General

Profile

Actions

Defect #4088

closed

Update from r2943 to r2952 causes 500 Internal Server Error with enumerations

Added by Albrecht Backhaus over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-10-22
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Updated my redmine installation from trunk r2943 to r2952. With this updates I experience an 500 Internal Server Error when I select enumerations in the administration. Creating a project runs in that error 500 too.

Processing EnumerationsController#index (for XXX.XXX.XXX.XXX at 2009-10-22 10:02:43) [GET]
  Parameters: {"action"=>"index", "controller"=>"enumerations"}
Rendering template within layouts/base
Rendering enumerations/list

ActionView::TemplateError (Mysql::Error: Unknown column 'enumerations.project_id' in 'where clause': SELECT count(*) AS count_all FROM `enumerations` WHERE (`enumerations`.`project_id` IS NULL) AND ( (`enumerations`.`type` = 'TimeEntryActivity' ) ) ) on line #7 of app/views/enumerations/list.rhtml:
4: <h3><%= l(klass::OptionName) %></h3>
5: 
6: <% enumerations = klass.all %>
7: <% if enumerations.any? %>
8: <table class="list">
9: <tr>
10:     <th><%= l(:field_name) %></th>

    app/views/enumerations/list.rhtml:7:in `_run_rhtml_app47views47enumerations47list46rhtml'
    app/views/enumerations/list.rhtml:3:in `each'
    app/views/enumerations/list.rhtml:3:in `_run_rhtml_app47views47enumerations47list46rhtml'
    app/controllers/enumerations_controller.rb:26:in `index'
    dispatch.fcgi:24

Rendering /home/xxxxx/etc/rails_apps/redmine/public/500.html (500 Internal Server Error)

Rollback solves the problem.

Actions #1

Updated by Anonymous over 14 years ago

try
rake db:migrate RAILS_ENV=development
after svn update

Actions #2

Updated by Albrecht Backhaus over 14 years ago

  • Status changed from New to Resolved

Krzysztof Podejma wrote:

try
rake db:migrate RAILS_ENV=development
after svn update

Thank you very much - that was it. All fine so far now.

Regards, Albrecht

Actions #3

Updated by Jean-Philippe Lang over 14 years ago

  • Status changed from Resolved to Closed
  • Affected version (unused) deleted (devel)
  • Resolution set to Invalid
Actions

Also available in: Atom PDF