Defect #11838

Cannot create a new forum

Added by Erica Gallindo about 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution:Invalid Affected version:


When I'm trying to create a new forum, I've got an "Internal Error"; the log file presents the following error:

NameError (undefined local variable or method `parent_id' for #<Board:0x10defb88>):
  app/models/board.rb:85:in `validate_board'
  app/controllers/boards_controller.rb:70:in `create'

I'm using devel - r10382

is there anything I can do to fix this or is it really a bug?

Captura de Tela 2012-09-15 às 12.34.16.png - Internal Error (20.2 KB) Erica Gallindo, 2012-09-15 17:35


#1 Updated by Etienne Massip about 8 years ago

Did you run database migrations?

#2 Updated by Jean-Philippe Lang about 8 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

This is a migration issue indeed.

#3 Updated by Erica Gallindo about 8 years ago

You are right. As I update my redmine installation every week, I must have forgotten to run migrate in one of my updates. Thanks for the feedback. Lesson learned!

# rake db:migrate RAILS_ENV=production
==  AddBoardsParentId: migrating ==============================================
-- add_column(:boards, :parent_id, :integer)
   -> 0.2695s
==  AddBoardsParentId: migrated (0.2696s) =====================================

Also available in: Atom PDF