Home > The Error > The Error Occurred While Evaluating Nil Split

The Error Occurred While Evaluating Nil Split

I'll accept an official patch, but I'm done messing with it for now. The Mike C, Lenart solution solved both issues (for Rails 2.3.8). You flagged this item as spam. before sorting to ensure you have no nil values in the array. this content

There is a problem parsing the package. Please help me ! Woody January 24th, 2011 @ 07:46 PM I was hesitant to monkey-patch w/o a better understanding of the problem. bshand July 27th, 2010 @ 10:11 AM Ken Collins' mongrel.rb initializer works for me -- on Windows with RubyGems 1.3.7 and Rails 1.8.6 (OneClick installer) / Rails 1.8.7 (RubyInstaller). you could check here

How to describe very tasty and probably unhealthy food Random noise based on seed What to do when majority of the students do not bother to do peer grading assignment? How do you enforce handwriting standards for homework assignments as a TA? Again, thank you for your prompt reply. nir0 commented Sep 23, 2011 yeah, i know...

It fails with RubyGems 1.3.5, unless I make the following addition patch to his mongrel.rb: $ diff mongrel.rb.orig mongrel.rb 2c2 < if Rails.version == '2.3.8' && Gem.available?('mongrel', Gem::Requirement.new('~>1.1.5')) && self.class.const_defined?(:Mongrel) --- I am too unfamiliar with Ruby code to figure it out. Until then, monkey patching will be necessary to get mongrel_rails working due to it's use of Mongrel::CGIWrapper (script/server does not "require 'mongrel/rails'", which uses Mongrel's CGI wrapper, which in turn uses For some reason I had to comment out the "if" statement: if Rails.version == '2.3.8' && Gem.available?('mongrel', Gem::Requirement.new('~>1.1.5')) && self.class.const_defined?(:Mongrel) and the associated "end" at the bottom.

Create your profile »

Tickets have moved to Github</h2> The new ticket tracker is available at https://github.com/rails/rails/issues</a> Shared Ticket Bins (Sort) ↓↑ drag 451 Open Bugs ↓↑ drag script/server works fine, all good, but when I push out to my servers which use mongrel_cluster, when setting a cookie (such as after a login), I get the following: Error calling Also, try adding a @contacts.compact! Jonny_K June 3rd, 2010 @ 03:21 PM Tag changed from “2.3.8, mongrel_cluster, rack” to “2.3.8, mongrel, mongrel_cluster, rack” You flagged this item as spam.

The Rack HeadersHash class appears to have different behaviour depending on whether you access a header directly or iterate over everything. All rights reserved. Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 41 Star 1,879 Fork 352 grosser/parallel_tests Code Issues 64 Pull requests 3 Projects I assume a cookie should be set somewhere along the way.

Partial sum of the harmonic series between two consecutive fibonacci numbers Origin of “can” in the sense of ‘jail’ Is it unethical of me and can I get in trouble if http://www.pcoder.net/tag/you-might-have-expected-an-instance-of-array-the-error-occurred-while-evaluating-nil-split/ The gist: Mongrel's CGI doesn't work in Rails 2.3.8+ w/o monkey patching 2 separate (old) bugs, one for Rack, and the other for Mongrel. The FastCGI process exited unexpectedly This is what I get in the fastcgi.crash.log after trying the test controller: [04/Sep/2007:18:13:51 :: 6296] Ignoring unsupported signal USR2. [04/Sep/2007:18:13:51 :: 6296] Ignoring unsupported signal Evgeny May 26th, 2010 @ 10:28 AM I have the same problem on hosting, even worse.

Sep 04, 2007 06:26 PM|dfunky|LINK I followed "10 steps to get Ruby on Rails running on Windows with IIS FastCGI" to get my app running on two different W2K3 servers. news I added this mongrel.rb to my config/initializers http://gist.github.com/471663 You flagged this item as spam. You might have expected an instance of Array. However, on the shared host the frontend of my app runs ok (http://spectrumplastics.net:12001/) but when I try to go to the login area (http://spectrumplastics.net:12001/refinery) I get a page using Firefox that

I agree, the variable was only created just on the off chance return on the split command was the issue. Logged Print Pages: [1] Go Up « previous next » Web Hosting Forum | Lunarpages » Scripting Languages Hosting Help » Ruby Hosting Support » Second RoR app kept getting a Thank you. have a peek at these guys You flagged this item as spam.

This line of code didn't seem to agree with the way my shared host is setup. Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Patches with fixes/failing tests are much appreciated.

Body James James Healy Jeremy Kemper Jonathan Weiss Jonny_K Matt Jones Michael Lovitt Santiago Pastorino Steven Parkes SUzB Tim Gildea Togg Vladimir Meremyanin Attachments rails238_mongrel115_patch.diff 586 Bytes celebrity-wedding-dresses-w... 210.3 KB Referenced

The simplest solution for our environment was to monkeypatch Mongrel using a Rails initializer: class Mongrel::CGIWrapper def header_with_rails_fix(options = 'text/html') @head['cookie'] = options.delete('cookie').flatten.map { |v| v.sub(/^\n/,'') } if options.class != String Edgars Beigarts May 26th, 2010 @ 07:03 PM The problem has been solved in http://github.com/rack/rack/commit/f6f3c60938ea3b08f3292a2480e6753c... If the element['title'] is null you'll get the error you are seeing so you'll want to either skip those elements or use a default value for the name field, like "unknown". You are limiting the result set to stories with at least five votes.

I just tried to deploy an app to a server with Rails 2.3.8 installed on it. You might have expected an instance of Array. Owner grosser commented Jun 24, 2015 I can offer a fun learning experience where you open a PR and fix it ;) Sign up for free to join this conversation check my blog I get no log in rails log file, but a fastcgi crash log as follow:[28/Aug/2008:15:42:03 :: 18273] Dispatcher failed to catch: You have a nil object when you didn't expect it!You

Thanks. The error occurred while evaluating nil.split (NoMethodError) C:/Ruby/lib/ruby/1.8/cgi.rb:897:in `parse' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/cgi_ext/raw_post_data_fix.rb:45:in `initialize_query' C:/Ruby/lib/ruby/1.8/cgi.rb:2274:in `initialize' C:/Ruby/lib/ruby/site_ruby/1.8/fcgi.rb:592:in `new' C:/Ruby/lib/ruby/site_ruby/1.8/fcgi.rb:592:in `each_cgi' C:/Ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:141:in `process_each_request!' C:/Ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:55:in `process!' C:/Ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:25:in `process!' FastCGI IIS RubyOnRails Ruby rails FastCGI iis Ruby Rails ROR Ruby IIS FastCGI Reply [email protected] 4640 Posts MVPModerator Re: Error 0x80004005 occurred processing request. your hash ...}) instead.

When I create any app with a single scaffolded page the Mongrel returns a page as plain text.