Project

General

Profile

Actions

Defect #23195

closed

search occurred 500 error

Added by Steven Wong over 8 years ago. Updated over 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

A NoMethodError occurred in search#index:

undefined method `where' for #<Hash:0x007f0ff87135e0>
lib/plugins/acts_as_searchable/lib/acts_as_searchable.rb:93:in `search_result_ranks_and_ids'

-------------------------------
Request:
-------------------------------

  • URL : http://192.168.1.41/search?utf8=%E2%9C%93&q=2644 * HTTP Method: GET * IP address : 192.168.50.244 * Parameters : {"utf8"=>"✓", "q"=>"2644", "controller"=>"search", "action"=>"index"} * Timestamp : 2016-06-29 09:52:59 UTC * Server : jira * Rails root : /opt/redmine-3.3 * Process: 20909

-------------------------------
Session:
-------------------------------

  • session id: "b9d71b4319a467ce7b00af4eeb082b18"
  • data: {"session_id"=>"b9d71b4319a467ce7b00af4eeb082b18",
    "user_id"=>1,
    "tk"=>"50f6d45314017a00af2beb18e719f073122d4baa",
    "sudo_timestamp"=>1467193748,
    "my_page_sort"=>"none",
    "_csrf_token"=>"Oy6Z39B8D1SgHsaQAH/d5IA+g+l7OVTNzWD7oQvUwj4=",
    "recent_projects"=>[2]}
-------------------------------
Environment:
-------------------------------
  • HTTP_REFERER : http://192.168.1.41/projects * HTTP_UPGRADE_INSECURE_REQUESTS : 1 * HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36 * HTTP_VERSION : HTTP/1.1 * ORIGINAL_FULLPATH : /search?utf8=%E2%9C%93&q=2644 * ORIGINAL_SCRIPT_NAME : * PATH_INFO : /search * QUERY_STRING : utf8=%E2%9C%93&q=2644 * REMOTE_ADDR : 192.168.50.244 * REQUEST_METHOD : GET * REQUEST_PATH : /search * REQUEST_URI : /search?utf8=%E2%9C%93&q=2644 * ROUTES_41629840_SCRIPT_NAME : * SCRIPT_NAME : * SERVER_NAME : 192.168.1.41 * SERVER_PORT : 80 * SERVER_PROTOCOL : HTTP/1.1 * SERVER_SOFTWARE : thin 1.7.0 codename Dunder Mifflin * action_controller.instance : #<SearchController:0x007f0fce636bd8> * action_dispatch.backtrace_cleaner : #<Rails::BacktraceCleaner:0x00000003feb958> * action_dispatch.cookies : #<ActionDispatch::Cookies::CookieJar:0x007f1011362608> * action_dispatch.cookies_digest : * action_dispatch.cookies_serializer : * action_dispatch.encrypted_cookie_salt : encrypted cookie * action_dispatch.encrypted_signed_cookie_salt : signed encrypted cookie * action_dispatch.http_auth_salt : http authentication * action_dispatch.key_generator : #<ActiveSupport::CachingKeyGenerator:0x00000004ad4c70> * action_dispatch.logger : #<ActiveSupport::Logger:0x00000004e0b4c0> * action_dispatch.parameter_filter : [:password] * action_dispatch.redirect_filter : [] * action_dispatch.remote_ip : 192.168.50.244 * action_dispatch.request.content_type : * action_dispatch.request.formats : [#<Mime::Type:0x0000000183afd0 @synonyms=["application/xhtml+xml"], @symbol=:html, @string="text/html", @hash=-1372727287529389025>] * action_dispatch.request.parameters : {"utf8"=>"✓", "q"=>"2644", "controller"=>"search", "action"=>"index"} * action_dispatch.request.path_parameters : {:controller=>"search", :action=>"index"} * action_dispatch.request.query_parameters : {"utf8"=>"✓", "q"=>"2644"} * action_dispatch.request.request_parameters : {} * action_dispatch.request.unsigned_session_cookie: {"session_id"=>"b9d71b4319a467ce7b00af4eeb082b18", "user_id"=>1, "tk"=>"50f6d45314017a00af2beb18e719f073122d4baa", "sudo_timestamp"=>1467193748, "my_page_sort"=>"none", "_csrf_token"=>"Oy6Z39B8D1SgHsaQAH/d5IA+g+l7OVTNzWD7oQvUwj4=", "recent_projects"=>[2]} * action_dispatch.request_id : 179d5473-b9d5-4ad4-9bee-256f034e6460 * action_dispatch.routes : #<ActionDispatch::Routing::RouteSet:0x00000004f67120> * action_dispatch.secret_key_base : 59dda17a42803617f96151518b9aeecb94e132c6f140123f1982e1c8ae15d0103ffa854c4d8b0019 * action_dispatch.secret_token : * action_dispatch.show_detailed_exceptions : false * action_dispatch.show_exceptions : true * action_dispatch.signed_cookie_salt : signed cookie * async.callback : #<Method: Thin::Connection#post_process> * async.close : #<EventMachine::DefaultDeferrable:0x007f1008b206a0> * rack.errors : #<IO:0x000000007855a0> * rack.input : #<StringIO:0x007f0fed1967d0> * rack.multiprocess : false * rack.multithread : true * rack.request.cookie_hash : {"_redmine_session"=>"Umkwd2xzQys0L0lpUFRWdTljb056R0tyZC9HdkNJVkVYdHpwVytXQm1VR0xpQkFvcVZKblNPT2dRTXRkMTVVZERIbWllZDF5WXgyc0pWWEZLQXZjLzBiMG5pSVErNlgrVHV2dzFXK0pzanA3cTA0ZkttU1RRdk5JS2s0N1pYMC9FVzlCSFR0YWV3OVhBWVQvZmFaQjRMUS9mZWFiNjdRZDNiUGxQZ3YwT1BWakp0cUhhTHl5RmVQaUVTSTNZb2lnczROUk1vMDJwMklaTkd4Y2J5SWZaQjVZNmpud3hrRTY5SG5aUmJVSHE0SFpGWWJQWjVodVRvcGJWRy9HdW9Hb1Y4WVRjQWpELysvYVl4RGdnK1E3MDhnTDVaeVZTMmIvN3BvbnJ4V05Qak1oeWMrdHdVS2RpVDRFZlU2Qi96S3JOSHpkTkN5MlpSZXUwdFRjN1JjeHhRTGhqdXdKUUY0ZW50MytQbmtNR3Nha3lDd0g3VCthb04yWGcvMi8rRDEzLS04ZmVhcmJPQW9VKys2RGkrdThJeHZ3PT0=--b7bf55dfb07971c473acdb060ec6b041e1380a6b"} * rack.request.cookie_string : _redmine_session=Umkwd2xzQys0L0lpUFRWdTljb056R0tyZC9HdkNJVkVYdHpwVytXQm1VR0xpQkFvcVZKblNPT2dRTXRkMTVVZERIbWllZDF5WXgyc0pWWEZLQXZjLzBiMG5pSVErNlgrVHV2dzFXK0pzanA3cTA0ZkttU1RRdk5JS2s0N1pYMC9FVzlCSFR0YWV3OVhBWVQvZmFaQjRMUS9mZWFiNjdRZDNiUGxQZ3YwT1BWakp0cUhhTHl5RmVQaUVTSTNZb2lnczROUk1vMDJwMklaTkd4Y2J5SWZaQjVZNmpud3hrRTY5SG5aUmJVSHE0SFpGWWJQWjVodVRvcGJWRy9HdW9Hb1Y4WVRjQWpELysvYVl4RGdnK1E3MDhnTDVaeVZTMmIvN3BvbnJ4V05Qak1oeWMrdHdVS2RpVDRFZlU2Qi96S3JOSHpkTkN5MlpSZXUwdFRjN1JjeHhRTGhqdXdKUUY0ZW50MytQbmtNR3Nha3lDd0g3VCthb04yWGcvMi8rRDEzLS04ZmVhcmJPQW9VKys2RGkrdThJeHZ3PT0%3D--b7bf55dfb07971c473acdb060ec6b041e1380a6b * rack.request.query_hash : {"utf8"=>"✓", "q"=>"2644"} * rack.request.query_string : utf8=%E2%9C%93&q=2644 * rack.run_once : false * rack.session : #<ActionDispatch::Request::Session:0x007f1018ba4788> * rack.session.options : #<ActionDispatch::Request::Session::Options:0x007f1018ba4648> * rack.url_scheme : http * rack.version : [1, 0]
  • GATEWAY_INTERFACE : CGI/1.2
  • HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
  • HTTP_ACCEPT_ENCODING : gzip, deflate, sdch
  • HTTP_ACCEPT_LANGUAGE : zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4
  • HTTP_CONNECTION : keep-alive
  • HTTP_COOKIE : _redmine_session=Umkwd2xzQys0L0lpUFRWdTljb056R0tyZC9HdkNJVkVYdHpwVytXQm1VR0xpQkFvcVZKblNPT2dRTXRkMTVVZERIbWllZDF5WXgyc0pWWEZLQXZjLzBiMG5pSVErNlgrVHV2dzFXK0pzanA3cTA0ZkttU1RRdk5JS2s0N1pYMC9FVzlCSFR0YWV3OVhBWVQvZmFaQjRMUS9mZWFiNjdRZDNiUGxQZ3YwT1BWakp0cUhhTHl5RmVQaUVTSTNZb2lnczROUk1vMDJwMklaTkd4Y2J5SWZaQjVZNmpud3hrRTY5SG5aUmJVSHE0SFpGWWJQWjVodVRvcGJWRy9HdW9Hb1Y4WVRjQWpELysvYVl4RGdnK1E3MDhnTDVaeVZTMmIvN3BvbnJ4V05Qak1oeWMrdHdVS2RpVDRFZlU2Qi96S3JOSHpkTkN5MlpSZXUwdFRjN1JjeHhRTGhqdXdKUUY0ZW50MytQbmtNR3Nha3lDd0g3VCthb04yWGcvMi8rRDEzLS04ZmVhcmJPQW9VKys2RGkrdThJeHZ3PT0%3D--b7bf55dfb07971c473acdb060ec6b041e1380a6b
  • HTTP_HOST : 192.168.1.41

-------------------------------
Backtrace:
-------------------------------

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:75:in `index'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Actions

Also available in: Atom PDF