redmine_stealth icon indicating copy to clipboard operation
redmine_stealth copied to clipboard

Can't convert nil into string : init.rb row 24 Redmine 2.3.1

Open patfrat opened this issue 11 years ago • 4 comments

Hello, I used this plugin on a redmine v2.3.0 and after a light upgrade in v2.3.1, this issue appears. Can(t convert nil into string on init.rb(24)

I have just changed the code to this to get it to work !

#plugin_locale_glob = respond_to?(:directory) ?
#    File.join(directory, 'config', 'locales', '*.yml') :
plugin_locale_glob = File.join(Rails.root, 'vendor', 'plugins', 'redmine_stealth', 'config', 'locales', '*.yml')

And everything is ok now !

patfrat avatar May 03 '13 07:05 patfrat

I'm getting this issue as well. The former path is for Rails 3, while the latter is for Rails > 2 I believe.

snwfog avatar Aug 29 '13 02:08 snwfog

Fix works also in redmine 2.4.2.

lejek avatar Jan 02 '14 10:01 lejek

I can confirm this bug and the fix.

fmms avatar Mar 19 '14 13:03 fmms

Fix works in redmine 2.5.1. Thanks !

flarramendi avatar Jun 19 '15 20:06 flarramendi