Project

General

Profile

Actions

Maintenance #1972

closed

xmera Omnia - Collection #1826: Maintenance tasks of several components

Redmine - Maintenance #1739: Support Redmine 5.1.1

NameError: uninitialized constant CalendarsHelper

Added by liaham about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Compatible Redmine Version:

Description

Running Redmine 5.1.1 gives the following Zeitwerk error:

Hold on, I am eager loading the application.
rake aborted!
NameError: uninitialized constant CalendarsHelper

        Object.const_get(camel_cased_word)
              ^^^^^^^^^^
Did you mean?  CalendarsController
/home/liane-xmera/redmine/gem_home/gems/activesupport-6.1.7.6/lib/active_support/inflector/methods.rb:273:in `const_get'
/home/liane-xmera/redmine/gem_home/gems/activesupport-6.1.7.6/lib/active_support/inflector/methods.rb:273:in `constantize'
/home/liane-xmera/redmine/gem_home/gems/activesupport-6.1.7.6/lib/active_support/core_ext/string/inflections.rb:74:in `constantize'
/home/liane-xmera/redmine/gem_home/gems/actionpack-6.1.7.6/lib/abstract_controller/helpers.rb:176:in `block in modules_for_helpers'
/home/liane-xmera/redmine/gem_home/gems/actionpack-6.1.7.6/lib/abstract_controller/helpers.rb:169:in `map!'
/home/liane-xmera/redmine/gem_home/gems/actionpack-6.1.7.6/lib/abstract_controller/helpers.rb:169:in `modules_for_helpers'
/home/liane-xmera/redmine/gem_home/gems/actionpack-6.1.7.6/lib/action_controller/metal/helpers.rb:104:in `modules_for_helpers'
/home/liane-xmera/redmine/gem_home/gems/actionpack-6.1.7.6/lib/abstract_controller/helpers.rb:147:in `helper'
/home/liane-xmera/redmine/plugins/redmine_dashboards/app/controllers/dashboard_async_blocks_controller.rb:37:in `<class:DashboardAsyncBlocksController>'
/home/liane-xmera/redmine/plugins/redmine_dashboards/app/controllers/dashboard_async_blocks_controller.rb:26:in `<top (required)>'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:30:in `require'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:30:in `require'
/home/liane-xmera/redmine/gem_home/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/helpers.rb:135:in `const_get'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/helpers.rb:135:in `cget'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/eager_load.rb:175:in `block in actual_eager_load_dir'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/helpers.rb:40:in `block in ls'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/helpers.rb:25:in `each'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/helpers.rb:25:in `ls'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/eager_load.rb:170:in `actual_eager_load_dir'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/eager_load.rb:17:in `block (2 levels) in eager_load'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/eager_load.rb:16:in `each'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/eager_load.rb:16:in `block in eager_load'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/eager_load.rb:10:in `synchronize'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader/eager_load.rb:10:in `eager_load'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader.rb:379:in `block in eager_load_all'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader.rb:377:in `each'
/home/liane-xmera/redmine/gem_home/gems/zeitwerk-2.6.12/lib/zeitwerk/loader.rb:377:in `eager_load_all'
/home/liane-xmera/redmine/gem_home/gems/railties-6.1.7.6/lib/rails/tasks/zeitwerk.rake:11:in `block in <top (required)>'
/home/liane-xmera/redmine/gem_home/gems/railties-6.1.7.6/lib/rails/tasks/zeitwerk.rake:47:in `block (2 levels) in <top (required)>'
/home/liane-xmera/redmine/plugins/xmera_test_bridge/lib/tasks/core.rake:29:in `block (3 levels) in <top (required)>'
/home/liane-xmera/redmine/gem_home/gems/rake-13.1.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => zeitwerk:check
Actions #1

Updated by liaham about 1 year ago

  • Status changed from New to In Progress
Actions #2

Updated by liaham about 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

The file app/helpers/calendars_helper.rb does not exist anymore. It has had only a single method which is moved to lib/redmine/helpers/calendar.rb class.

Actions #3

Updated by liaham about 1 year ago

  • Target version changed from unreleased to 2.2.0
Actions

Also available in: Atom PDF