Project

General

Profile

Actions

Defect #23449

closed

NoMethodError (undefined method `where' for

Added by Rainer Rutka almost 8 years ago. Updated almost 8 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

When i try to search for a string in RM 3.2 I get an 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.

--
This is an excerpt from the log:

redmine@projects:/srv/redmine/ror/log$ cat sea*
Processing by SearchController#index as HTML
  Parameters: {"utf8"=>"✓", "q"=>"Rainer"}
  Current user: rainer.rutka (id=678)
Completed 500 Internal Server Error in 661ms (ActiveRecord: 467.5ms)

NoMethodError (undefined method `where' for #<Hash:0x007f3e16f5d740>):
  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'
redmine@projects:/srv/redmine/ror/log$

My configs:

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
  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

THANK YOU ! :-)


Files

search-error.log (6.91 KB) search-error.log Rainer Rutka, 2016-07-28 11:31
Actions

Also available in: Atom PDF