Y.A. great plugin for Redmine!

Yet another great plugin for Redmine just teached me how to add tables and columns manually into MySQL db.

mysql-redmine

This is “nice” plugin: Issue Templates

Have a great issue: error 500

And YES it have been migrated!

root@tet-redmine www/redmine# rake redmine:plugins:migrate RAILS_ENV=production
Migrating hooks_manager (Hooks manager)...
Migrating redmine_ckeditor (Redmine CKEditor plugin)...
Migrating redmine_digest (Digest plugin)...
Migrating redmine_issue_checklist (Redmine Issue Checklist plugin)...
Migrating redmine_issue_templates (Redmine Issue Templates plugin)...
Migrating redmine_lightbox (Redmine Light Box plugin)...
Migrating redmine_omniauth_ulogin (Redmine Omniauth uLogin plugin)...
Migrating redmine_open_links_in_new_window (Redmine Open Links In New Window plugin)...
Migrating redmine_people (Redmine People plugin)...
Migrating sidebar_hide (Sidebar Hide Plugin)...

But did not works! And I spent about 3hrs of my sleeping to find a roocause.

You can see picrelated – Ive added those tables – manyally!

How to figureout this issue see the production.log

Completed 500 Internal Server Error in 4.7ms ActiveRecord::StatementInvalid(Mysql2::Error: Table 'redmine_production.global_issue_templates' doesn't exist: SHOW FULL FIELDS FROM `global_issue_templates`):
  • be sure this is not ur fault

rake redmine:plugins:migrate RAILS_ENV=production

  • Another check the logs and see 500 error.
  • Use any MySQL tool you like to add tables manually
  • Profit!

Thanks man, u`r bug make me smarter

UPD: nope

Completed 500 Internal Server Error in 14.9ms ActionView::Template::Error (undefined method `enabled' for #<GlobalIssueTemplate:0x0000000617dda0>):

36: :label => l(:issue_template_note), :style => "overflow:auto;" %> 37: </p> 38: 39: <p><%= f.check_box :enabled, :label => l(:label_enabled) %> 40: <a class="icon icon-help" href="#" title="<%= l(:help_for_this_field) %>" 41: onclick="checkExpand('enabled_help_content'); return false;"><%= l(:help_for_this_field) %> 42: </a><br/> lib/redmine/views/labelled_form_builder.rb:34:in `check_box' app/helpers/application_helper.rb:1043:in `labelled_form_for'

 

Just fuck this shit!

rake db:migrate:plugin NAME=Issue Templates VERSION=0 RAILS_ENV=production

About trianglesis

Александр Брюндтзвельт - гений, филантроп, 100 гривен в кармане. Этот блог - "сток" моих мыслей и заметок. Достаточно одного взгляда на него, чтобы понять, что такой же бардак творится у меня в голове. Если вам этот бардак интересен - милости прошу.
Bookmark the permalink.