Project

General

Profile

Actions

Defect #23469

closed

Knowledgebase plugin causes error in RM 3.2 Global Search

Added by Rainer Rutka over 7 years ago. Updated over 7 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi!
The plugin redmine_knowledgebase, version 3.2.0 causes an error/crash in Redmine 3.2.

After installation of the above plugin, you can not use the GLOBAL SEARCH (upper right corner of the main-menue) function in Redmine. If you enter an unknown ticket number or any other string, you'll get an error.

The system crashes with this internal error:

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

See the atached error-log file (line 379 cont.).

Here's an excerpt:

Completed 200 OK in 273ms (Views: 38.8ms | ActiveRecord: 94.7ms)
Started GET "/search?utf8=%E2%9C%93&q=TestSearchRainer" for 134.34.1.235 at 2016-07-29 11:29:50 +0200
Processing by SearchController#index as HTML
  Parameters: {"utf8"=>"✓", "q"=>"TestSearchRainer"}
  Current user: rainer.rutka (id=678)
Completed 500 Internal Server Error in 574ms (ActiveRecord: 457.3ms)

NoMethodError (undefined method `where' for #<Hash:0x007f031667ead8>):
  lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb:93:in `search_result_ranks_and_ids'
  lib/redmine/search.rb:127:in `block in load_result_ids'
  lib/redmine/search.rb:125:in `each'
  lib/redmine/search.rb:125:in `load_result_ids'
  lib/redmine/search.rb:115:in `block in load_result_ids_from_cache'
  lib/redmine/search.rb:114:in `load_result_ids_from_cache'
  lib/redmine/search.rb:99:in `result_ids'
  lib/redmine/search.rb:70:in `result_count'
  app/controllers/search_controller.rb:65:in `index'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'
[...]

Our RM configuration at the Univsersity is:

Environment:
  Redmine version                3.2.0.stable.15148
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
  Rails version                  4.2.5
  Environment                    production
  Database adapter               PostgreSQL
SCM:
  Subversion                     1.8.10
  Mercurial                      3.1.2
  Cvs                            1.12.13
  Git                            2.1.4
  Filesystem                     
Redmine plugins:
  redmine_agile                  1.4.1
  redmine_code_review            0.7.0
  redmine_knowledgebase          3.2.0      # ERROR 
  redmine_meetings               0.2.7
  redmine_mylyn_connector        2.8.2.stable
  redmine_tweaks                 0.5.8-dev
  redmine_watcher_groups         0.0.3git
  scrum                          0.14.0

We tested all other plugins and this one is the only one
who creates the above error.

Thank you!


Files

search-error.log (33.7 KB) search-error.log excerpt from error log (SEARCH for TestSearchRainer) Rainer Rutka, 2016-07-29 11:33
Actions #1

Updated by Go MAEDA over 7 years ago

  • Status changed from New to Closed
  • Priority changed from High to Normal
  • Resolution set to Invalid

The plugin causes the problem, the plugin should be fixed. Please contact the author of the plugin.

Actions

Also available in: Atom PDF