Project

General

Profile

Error after migrating DB

Added by Hector Estevez over 12 years ago

Hello, I upgraded Redmine from 1.0.x to 2.0.

All works fine, but after I migrate the DB, I get a "501 Internal Server Error" everytime I try to create or consult an issue.

This is the error in the log:

ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: 'WorkflowTransition'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Workflow.inheritance_column to use another column for that information.):
app/models/issue_status.rb:78:in `find_new_statuses_allowed_to'
app/models/issue.rb:546:in `new_statuses_allowed_to'
app/controllers/issues_controller.rb:111:in `show'

Plugins:

Redmine_DMSF

Database: Mysql

Any suggestions? Ty


Replies (5)

RE: Error after migrating DB - Added by Hector Estevez about 12 years ago

To anyone that is stuck with this issue:

Put these 3 files in app/models and restart the apache service (or Mongrel, or whatever your web server is).

You can find the same files in the app/models folder of an older Redmine installation.

I don't know if this is the best way to solve this issue, but it worked for me.

Cheers.

RE: Error after migrating DB - Added by Pierre de LESPINAY about 12 years ago

That worked for me too.
I didn't even had to restart the server.
Thanks.

RE: Error after migrating DB - Added by Junyu Jiang over 11 years ago

That worked for me too.
The different is, my original installation do not have this file, I tried to upgrade to 2.x, failed then roll back to 1.4.7.

RE: Error after migrating DB - Added by Birgir Hrafn Sigurðsson about 11 years ago

Worked for me to when moving from a heroku install to a a new ec2 install.
I installed Redmine from ppa:ondrej/redmine

RE: Error after migrating DB - Added by Mastan Prasad Chinni almost 11 years ago

I have already those 3 files, but still i am getting the same error.

    (1-5/5)