{"action":"created","issue":{"url":"https://api.github.com/repos/zh/redmine_importer/issues/33","labels_url":"https://api.github.com/repos/zh/redmine_importer/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/zh/redmine_importer/issues/33/comments","events_url":"https://api.github.com/repos/zh/redmine_importer/issues/33/events","html_url":"https://github.com/zh/redmine_importer/issues/33","id":88728170,"number":33,"title":"Internal Error","user":{"login":"ElskerDane","id":12851016,"avatar_url":"https://avatars.githubusercontent.com/u/12851016?v=3","gravatar_id":"","url":"https://api.github.com/users/ElskerDane","html_url":"https://github.com/ElskerDane","followers_url":"https://api.github.com/users/ElskerDane/followers","following_url":"https://api.github.com/users/ElskerDane/following{/other_user}","gists_url":"https://api.github.com/users/ElskerDane/gists{/gist_id}","starred_url":"https://api.github.com/users/ElskerDane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElskerDane/subscriptions","organizations_url":"https://api.github.com/users/ElskerDane/orgs","repos_url":"https://api.github.com/users/ElskerDane/repos","events_url":"https://api.github.com/users/ElskerDane/events{/privacy}","received_events_url":"https://api.github.com/users/ElskerDane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-16T13:28:41Z","updated_at":"2015-10-16T23:52:40Z","closed_at":null,"body":"I have installed your plugin and I am getting an Internal Error when I attempt to upload your sample file \"All Standard Fields\".  I have followed the steps as shown on: https://github.com/leovitch/redmine_importer/wiki/Samplefiles\r\n\r\nI am using Redmine 3.0.3, Ruby 2.0.0, Rails 4.2, Windows 7\r\n\r\nThis is the error I see in my production file:\r\n\r\nStarted POST \"/importer/match\" for ::1 at 2015-06-16 09:23:58 -0400\r\nProcessing by ImporterController#match as HTML\r\n  Parameters: {\"utf8\"=>\"✓\", \"authenticity_token\"=>\"uUHfot2aNJuyGtp25wtTPqucRES0/pCz4y1vnDSzrFu3eT0ByTRZ7nbnbVx0afri7spdJyq9LnpLg+qq2+sqsw==\", \"project_id\"=>\"5\", \"file\"=>#<ActionDispatch::Http::UploadedFile:0x99e3028 @tempfile=#<Tempfile:C:/Users/J40419/AppData/Local/Temp/RackMultipart20150616-2588-1in9yzs.csv>, @original_filename=\"AllStandardFields.csv\", @content_type=\"application/vnd.ms-excel\", @headers=\"Content-Disposition: form-data; name=\\\"file\\\"; filename=\\\"AllStandardFields.csv\\\"\\r\\nContent-Type: application/vnd.ms-excel\\r\\n\">, \"encoding\"=>\"U\", \"splitter\"=>\",\", \"wrapper\"=>\"\\\"\", \"commit\"=>\"Upload File\"}\r\n  Current user: admin (id=1)\r\nCompleted 500 Internal Server Error in 87ms (ActiveRecord: 6.0ms)\r\n\r\nNoMethodError (undefined method `find_or_create_by_user_id' for #<Class:0x93e2a28>):\r\n  activerecord (4.2.1) lib/active_record/dynamic_matchers.rb:26:in `method_missing'\r\n  plugins/redmine_importer/app/controllers/importer_controller.rb:33:in `match'\r\n  actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\r\n  actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action'\r\n  actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action'\r\n  actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n  actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action'\r\n  actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\n  actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'\r\n  activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument'\r\n  activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n  activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument'\r\n  actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\n  actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\n  activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\n  actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process'\r\n  actionview (4.2.1) lib/action_view/rendering.rb:30:in `process'\r\n  actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch'\r\n  actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\n  actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action'\r\n  actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'\r\n  actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve'\r\n  actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve'\r\n  actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each'\r\n  actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve'\r\n  actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call'\r\n  rack-openid (1.4.2) lib/rack/openid.rb:98:in `call'\r\n  request_store (1.0.5) lib/request_store/middleware.rb:9:in `call'\r\n  rack (1.6.1) lib/rack/etag.rb:24:in `call'\r\n  rack (1.6.1) lib/rack/conditionalget.rb:38:in `call'\r\n  rack (1.6.1) lib/rack/head.rb:13:in `call'\r\n  actionpack-xml_parser (1.0.2) lib/action_dispatch/xml_params_parser.rb:16:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call'\r\n  rack (1.6.1) lib/rack/session/abstract/id.rb:225:in `context'\r\n  rack (1.6.1) lib/rack/session/abstract/id.rb:220:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'\r\n  activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call'\r\n  activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks'\r\n  activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\n  railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app'\r\n  railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call'\r\n  activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n  activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged'\r\n  activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged'\r\n  railties (4.2.1) lib/rails/rack/logger.rb:20:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\n  rack (1.6.1) lib/rack/methodoverride.rb:22:in `call'\r\n  rack (1.6.1) lib/rack/runtime.rb:18:in `call'\r\n  activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'\r\n  actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call'\r\n  rack (1.6.1) lib/rack/sendfile.rb:113:in `call'\r\n  railties (4.2.1) lib/rails/engine.rb:518:in `call'\r\n  railties (4.2.1) lib/rails/application.rb:164:in `call'\r\n  rack (1.6.1) lib/rack/lock.rb:17:in `call'\r\n  rack (1.6.1) lib/rack/content_length.rb:15:in `call'\r\n  rack (1.6.1) lib/rack/handler/webrick.rb:89:in `service'\r\n  C:/Ruby200/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'\r\n  C:/Ruby200/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'\r\n  C:/Ruby200/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'\r\n\r\nI would greatly appreciate any help you can give me!"},"comment":{"url":"https://api.github.com/repos/zh/redmine_importer/issues/comments/148867311","html_url":"https://github.com/zh/redmine_importer/issues/33#issuecomment-148867311","issue_url":"https://api.github.com/repos/zh/redmine_importer/issues/33","id":148867311,"user":{"login":"badpenguin","id":5000272,"avatar_url":"https://avatars.githubusercontent.com/u/5000272?v=3","gravatar_id":"","url":"https://api.github.com/users/badpenguin","html_url":"https://github.com/badpenguin","followers_url":"https://api.github.com/users/badpenguin/followers","following_url":"https://api.github.com/users/badpenguin/following{/other_user}","gists_url":"https://api.github.com/users/badpenguin/gists{/gist_id}","starred_url":"https://api.github.com/users/badpenguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badpenguin/subscriptions","organizations_url":"https://api.github.com/users/badpenguin/orgs","repos_url":"https://api.github.com/users/badpenguin/repos","events_url":"https://api.github.com/users/badpenguin/events{/privacy}","received_events_url":"https://api.github.com/users/badpenguin/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T23:52:40Z","updated_at":"2015-10-16T23:52:40Z","body":"@go2null thanks! i had the same problem as this issue and your fork worked for me!!!"}}