| Issue 83: | Uploading a file returns a 500 error | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Log in as admin
2. Click on "Files"
3. Click "Upload New Files"
4. Click "Browse"
5. Select file then click OK
6. Click "Upload Files"
"What is the expected output? What do you see instead?"
Expected to see a either a progress indicator or an indication that the
file was uploaded. Instead, I get a generic "We're sorry, but something
went wrong." 500 error page.
"What version of the product are you using? On what operating system?"
substruct_rel_1-0-a3 hosted on hostingrails.com. Using both Windows Vista
and Windows 2003 Server using Firefox 2 with the same results. Same error
using Windows XP 64-bit with Internet Explorer 7.
"Please provide any additional information below."
Here is the stack trace I managed to dig up from the log file:
Processing FilesController#upload (for 98.215.193.126 at 2008-05-04
10:20:10) [GET]
Session ID: 374cd19d1d1a29ef858ecd925ad3562b
Parameters: {"action"=>"upload", "controller"=>"admin/files"}
[AUTH] content_nodes - *
[AUTH] files - *
NoMethodError (undefined method `each' for nil:NilClass):
/vendor/plugins/substruct/app/controllers/admin/
files_controller.rb:53:in `upload'
/vendor/rails/actionpack/lib/action_controller/base.rb:1158:in
`send'
/vendor/rails/actionpack/lib/action_controller/base.rb:1158:in
`perform_action_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:697:in
`call_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:689:in
`perform_action_without_benchmark'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
68:in `perform_action_without_rescue'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
68:in `perform_action_without_rescue'
/vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in
`perform_action_without_caching'
/vendor/rails/actionpack/lib/action_controller/caching.rb:678:in
`perform_action'
/vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/query_cache.rb:33:in `cache'
/vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
`cache'
/vendor/rails/actionpack/lib/action_controller/caching.rb:677:in
`perform_action'
/vendor/rails/actionpack/lib/action_controller/base.rb:524:in
`send'
/vendor/rails/actionpack/lib/action_controller/base.rb:524:in
`process_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:685:in
`process_without_session_management_support'
/vendor/rails/actionpack/lib/action_controller/
session_management.rb:123:in `process'
/vendor/rails/actionpack/lib/action_controller/base.rb:388:in
`process'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
171:in `handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
115:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
126:in `dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in
`dispatch'
/vendor/rails/railties/lib/fcgi_handler.rb:101:in
`process_request'
/vendor/rails/railties/lib/fcgi_handler.rb:149:in
`with_signal_handler'
/vendor/rails/railties/lib/fcgi_handler.rb:99:in `process_request'
/vendor/rails/railties/lib/fcgi_handler.rb:77:in
`process_each_request'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in
`each_cgi'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in
`each'
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in
`each_cgi'
/vendor/rails/railties/lib/fcgi_handler.rb:76:in
`process_each_request'
/vendor/rails/railties/lib/fcgi_handler.rb:50:in `process!'
/vendor/rails/railties/lib/fcgi_handler.rb:24:in `process!'
dispatch.fcgi:24
Rendering /home/freefor/substruct/public/500.html (500 Internal Server
Error)
May 13, 2008
#2
charles....@gmail.com
May 14, 2008
Closing this, FCGI sucks, and nobody should be using it. It's buggy, error prone, and crashes for unknown reasons on _all_ Rails apps, not just Substruct. Use mod_rails or mongrels.
Status:
WontFix
|