ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Setting page fails to render after upgrate to 3.1.0

Added by Kirpal Sukumar at 2012-04-13 12:49 pm

I've just run across this error after my migration to 3.1.0 using the standard directions for upgrade:

Processing SettingsController#index (for XXX.XXX.XXX.XXX at 2012-04-13 08:40:52) [GET]
  Parameters: {"controller"=>"settings", "action"=>"index"}
Rendering template within layouts/admin
Rendering settings/edit

ActionView::TemplateError (undefined method `mail_handler_confirmation_on_success?' for #<Class:0x4f3c8a8>) on line #9 of app/views/settings/_mail_handler.rhtml:
6:     <br /><em><%= l(:text_line_separated) %></em>
7:   </p>
9:   <p><%= setting_check_box :mail_handler_confirmation_on_success %></p>
10:   <p><%= setting_check_box :mail_handler_confirmation_on_failure %></p>
11: </div>

    app/helpers/settings_helper.rb:64:in `setting_check_box'
    app/views/settings/_mail_handler.rhtml:9:in `block in _run_rhtml_app47views47settings47_mail_handler46rhtml_locals_mail_handler_object_tab'
    app/views/settings/_mail_handler.rhtml:1:in `_run_rhtml_app47views47settings47_mail_handler46rhtml_locals_mail_handler_object_tab'
    app/views/common/_tabs.rhtml:24:in `block in _run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
    app/views/common/_tabs.rhtml:23:in `each'
    app/views/common/_tabs.rhtml:23:in `_run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
    app/helpers/application_helper.rb:219:in `render_tabs'
    app/views/settings/edit.rhtml:3:in `_run_rhtml_app47views47settings47edit46rhtml'
    app/controllers/settings_controller.rb:22:in `index'
    <internal:prelude>:10:in `synchronize'
    <internal:prelude>:10:in `synchronize'

Rendering D:/chiliproject/chiliproject-prod/public/500.html (500 Internal Server Error)

I did some research, and the only thing I can can find that is similar is bug #871, but I am not using any custom plugins (and have never done so).

Thankfully I made sure to take a DB backup before upgrade, so I could roll it back if necessary.


Replies (2)

RE: Setting page fails to render after upgrate to 3.1.0 - Added by Holger Just at 2012-04-13 01:40 pm

I assume you upgrade from a version older than 3.0.0.

Make sure that you have not copied the file config/settings.yml from your old version. It is not intended to be changed and is always tied to a specific version of ChiliProject. The file must contain the lines (almost at the bottom of the file):

  default: 1
  default: 1

If that is not the case, please use the settings.yml that originally ships with Chili 3.1

RE: Setting page fails to render after upgrate to 3.1.0 - Added by Kirpal Sukumar at 2012-04-13 01:58 pm

Thanks for the help, once again.

I had upgraded from 2.5.0, but had not modified or copied over the settings.yml file - but on the off chance something had happened to it, I re-copied it form the original archive.

Everything is working nicely now.

Thanks Again!