Error to create a new group
Added by Andrea Sanchez 11 months ago
Hello colleagues,
I have problems after migrating and updating Redmine from 4.2.3 to 5.1.1
This Redmine was moved from one server to another. Now in version 5.1.1 I get the following error when creating new user groups (attached screenshots and log captured in a local simulation environment).
Error Internal error
System info
Environment:
Redmine version 5.1.1.stable
Ruby version 3.2.3-p157 (2024-01-18) [x86_64-linux]
Rails version 6.1.7.6
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Cfe (includes JavaScript)
SCM:
Git 2.39.3
Filesystem
Redmine plugins:
no plugin installed
Log
[b02f5a6b-e696-4639-a199-57f34da1baaa]
[b02f5a6b-e696-4639-a199-57f34da1baaa] ActionView::Template::Error (undefined method `twofa_required' for #<Group id: nil, login: "", hashed_password: [FILTERED], firstname: "", lastname: "", admin: false, status: 1, last_login_on: nil, language: "", auth_source_id: nil, created_on: nil, updated_on: nil, type: "Group", identity_url: nil, mail_notification: "", salt: nil, must_change_passwd: false, passwd_changed_on: nil, twofa_scheme: nil, twofa_totp_key: nil, twofa_totp_last_used_at: nil>):
[b02f5a6b-e696-4639-a199-57f34da1baaa] 4: <p><%= f.text_field :name, :required => true, :size => 60,
[b02f5a6b-e696-4639-a199-57f34da1baaa] 5: :disabled => !@group.safe_attribute?('name') ></p>
[b02f5a6b-e696-4639-a199-57f34da1baaa] 6: < unless @group.builtin? >
[b02f5a6b-e696-4639-a199-57f34da1baaa] 7: <p><= f.check_box :twofa_required, disabled: !Setting.twofa_optional? >
[b02f5a6b-e696-4639-a199-57f34da1baaa] 8: < if Setting.twofa_required? >
[b02f5a6b-e696-4639-a199-57f34da1baaa] 9: <em class="info"><= l 'twofa_text_group_required' ></em>
[b02f5a6b-e696-4639-a199-57f34da1baaa] 10: < elsif !Setting.twofa_optional? %>
[b02f5a6b-e696-4639-a199-57f34da1baaa]
[b02f5a6b-e696-4639-a199-57f34da1baaa] lib/redmine/views/labelled_form_builder.rb:36:in `check_box'
[b02f5a6b-e696-4639-a199-57f34da1baaa] app/views/groups/_form.html.erb:7
[b02f5a6b-e696-4639-a199-57f34da1baaa] app/views/groups/new.html.erb:4
[b02f5a6b-e696-4639-a199-57f34da1baaa] app/helpers/application_helper.rb:1487:in `labelled_form_for'
[b02f5a6b-e696-4639-a199-57f34da1baaa] app/views/groups/new.html.erb:3
[b02f5a6b-e696-4639-a199-57f34da1baaa] lib/redmine/sudo_mode.rb:61:in `sudo_mode'