Skip to content

Fix: Resolve unloadable errors in redmine_more_previews vince converter#109

Open
Bryan0211 wants to merge 4 commits intoHugoHasenbein:mainfrom
Bryan0211:main
Open

Fix: Resolve unloadable errors in redmine_more_previews vince converter#109
Bryan0211 wants to merge 4 commits intoHugoHasenbein:mainfrom
Bryan0211:main

Conversation

@Bryan0211
Copy link
Copy Markdown

Description

Addressing NameError: undefined local variable or method 'unloadable' errors encountered when using the redmine_more_previews plugin (specifically its vince vCard converter sub-module) with Redmine 6.0.5 (which runs on Rails 7.2.2.1).

The unloadable method, previously used for code reloading in older Rails versions, has been removed in Rails 6+ and is incompatible with the Zeitwerk autoloader.

This PR removes all instances of the unloadable call within the vince converter's codebase.

Changes Made

  • Removed all unloadable from the following files within the redmine_more_previews plugin in redmine_more_previews/converters/vince/lib/vince_lib

Bryan0211 added 4 commits May 18, 2025 19:46
The vince converter, used for previewing .vcf vCard files via the VinceLib library,
was calling the `unloadable` method. This method was deprecated in Rails 5 and
removed in Rails 6. As Redmine 6.0.5 is based on Rails 7.2.2.1, the `unloadable`
method is no longer available, leading to a NameError.
This commit temporarily disables the vince converter to allow plugin migration
and asset precompilation to proceed.
Commented out all instances of the `unloadable` method call
from the `vince` converter, a sub-module of the
`redmine_more_previews` plugin.

The `unloadable` method is deprecated and removed in newer Rails versions
(Rails 6+), which caused NameError issues when running Redmine 6.0.X
Commented out all instances of the `unloadable` method call
from the `vince` converter, a sub-module of the
`redmine_more_previews` plugin.

The `unloadable` method is deprecated and removed in newer Rails versions
(Rails 6+), which caused NameError issues when running Redmine 6.0.X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant