Project

General

Profile

Regarding Redmine 500 server when install "csv_import_issues" plugins in Redmine 3.0.3

Added by santhosh babu over 9 years ago

Hi,

I have installed Redmine 3.0.3 in Windows 7 and installed the plugins "csv_import_issues".
The plugins installation is sucessful and plugins is displayed in Redmine under plugins in Adminstration.
my problem is when import the csv file in Redmine.
I am facing the below listed 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.

My environment setup is:

Environment:
Redmine version 3.0.3.stable
Ruby version 2.0.0-p645 (2015-04-13) [i386-mingw32]
Rails version 4.2.1
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.11
Git 1.9.5
Filesystem
Redmine plugins:
csv_import_issues 0.0.2

Please find the log in Production.log is given below.

Processing by CsvImportsController#new as HTML
Parameters: {"project_id"=>"fss"}
Current user: redmine (id=1)
Rendered plugins/csv_import_issues/app/views/csv_imports/new.html.erb within layouts/base (2.0ms)
Completed 200 OK in 50ms (Views: 20.0ms | ActiveRecord: 6.0ms)
Started POST "/redmine/projects/fss/csv_imports" for 127.0.0.1 at 2015-07-08 14:19:02 +0530
Processing by CsvImportsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"DAzvPYT1zYqL44QaGKHjpjuRghGlgwuJZTXoHF8S0gnFEdMo/0NBln+ejWCbOhmjlzwQbx1j62lq9QiiCkUVnQ==", "csv_import"=>{"csv"=>#<ActionDispatch::Http::UploadedFile:0x4b18888 @tempfile=#<Tempfile:C:/Windows/Temp/RackMultipart20150708-4908-m5l8c5.csv>, @original_filename="issues (1).csv", @content_type="application/vnd.ms-excel", @headers="Content-Disposition: form-data; name=\"csv_import[csv]\"; filename=\"C:\\Users\\user\\Downloads\\issues (1).csv\"\r\nContent-Type: application/vnd.ms-excel\r\n">}, "commit"=>"Import CSV", "project_id"=>"fss"}
Current user: redmine (id=1)
Completed 500 Internal Server Error in 26ms (ActiveRecord: 2.0ms)

NoMethodError (undefined method `call' for "result == false":String):
activesupport (4.2.1) lib/active_support/callbacks.rb:165:in `block in halting'
activesupport (4.2.1) lib/active_support/callbacks.rb:504:in `call'
activesupport (4.2.1) lib/active_support/callbacks.rb:504:in `block in call'
activesupport (4.2.1) lib/active_support/callbacks.rb:504:in `each'
activesupport (4.2.1) lib/active_support/callbacks.rb:504:in `call'
activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks'
activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_csv_post_process_callbacks'
activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
paperclip (3.5.2) lib/paperclip/callbacks.rb:26:in `run_paperclip_callbacks'
paperclip (3.5.2) lib/paperclip/attachment.rb:414:in `block in post_process'
activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call'
activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks'
activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_post_process_callbacks'
activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
paperclip (3.5.2) lib/paperclip/callbacks.rb:26:in `run_paperclip_callbacks'
paperclip (3.5.2) lib/paperclip/attachment.rb:413:in `post_process'
paperclip (3.5.2) lib/paperclip/attachment.rb:112:in `assign'
paperclip (3.5.2) lib/paperclip/has_attached_file.rb:65:in `block in define_setter'
plugins/csv_import_issues/app/models/csv_import.rb:18:in `block in initialize'
actionpack (4.2.1) lib/action_controller/metal/strong_parameters.rb:183:in

Any help to resolve the error.

Thanks & Regards
Santhosh