danmunn / redmine_dmsf

Fork of svn repository for redmine_dmsf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting.plugin_redmine_dmsf['dmsf_index_database']: undefined method `strip' for nil:NilClass

liaham opened this issue · comments

There is a simply solvable nil error in the line:

databasepath = File.join(Setting.plugin_redmine_dmsf['dmsf_index_database'].strip, lang)

Here is the full error message from a production.log:

E, [2023-10-16T20:38:27.572670 #1] ERROR -- : [a940d328-134b-490c-b8ed-f821f4db0f3a] REDMINE_XAPIAN ERROR: Xapian database is not properly set, initiated or it's corrupted.
E, [2023-10-16T20:38:27.576784 #1] ERROR -- : [a940d328-134b-490c-b8ed-f821f4db0f3a] undefined method `strip' for nil:NilClass

        databasepath = File.join(Setting.plugin_redmine_dmsf['dmsf_index_database'].strip, lang)

Not as much detailed as in a development.log but should be sufficient.

Feel free to ask when you need more information.

Fixed.