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

The Error Occurred While Evaluating Nil Split

Once the OP's bug is fixed, this case is hit because somewhere between Rails' mongrel-specific CGI code (see https://github.com/rails/rails/commit/b6e56efe) setting 'cookie' to an array and where mongrel looks at 'cookie' (https://github.com/fauna/mongrel/blob/rel_1-1-5/lib/mongrel/cgi.rb, Make that: @returnValue = data.split(/ /) Also, if you are not referring to @returnValue elsewhere, then there is no need to make that an instance variable... David Trasbo October 7th, 2010 @ 09:08 PM State changed from “new” to “resolved” Importance changed from “” to “Low” Marking this as resolved for now. Sep 05, 2007 08:57 AM|[email protected]|LINK Copy MSVCR71.dll from the first to the second and try. weblink

Pages ↓↑ dragHome ↓↑ dragSource Style ↓↑ dragTicket Guidelines ↓↑ dragContributing to Rails ↓↑ dragTicket Assignment activereload/entp Our blog FAQ API Privacy Terms of service Copyright © 2007-2016 activereload/entp Log In Not the answer you're looking for? I was pretty confident, I correctly integrated the mongrel_cluster with apache Continue reading Error calling Dispatcher.dispatch September 4th, 2010 | Tags: #, Error calling Dispatcher.dispatch, Mongrel 1.1.5 - Rails 1.3.8 You flagged this item as spam. http://stackoverflow.com/questions/4380785/why-do-i-get-the-error-occurred-while-evaluating-nil-when-using-sort-by

I'm not sure what is correct for this, but after tinkering around a bunch, I got this to work: when String cookies = cookie.split.map { |a| a[-1..-1]==';'?a[0..-2]:a } cookies.each do |c| You flagged this item as spam. Notice their behavior are slightly different, so refer to class_attribute documentation first. Please login or register.Did you miss your activation email? 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length Web Hosting Forum | Lunarpages »

csnk May 18th, 2011 @ 08:29 AM We are the professional underwear manufacturer, underwear supplier, underwear factory, custom underwear. You flagged this item as spam. ...Paul May 26th, 2010 @ 05:59 PM Tag changed from “2.3.8, rack” to “2.3.8, mongrel_cluster, rack” Given that I know mongrel_cluster has fallen somewhat out member sikachu commented Sep 23, 2011 Interesting. Mauro Morales October 7th, 2010 @ 06:24 AM As Lenart mentioned Mike's and bshand's comments fixed it for me to.

Use advanced searching » This project is archived and is in readonly mode. #4690 ✓resolved Mongrel doesn't work with rails 2.3.8 Reported by Edgars Beigarts | May 25th, 2010 @ 06:44 You might have expected an instance of Array. The function is present in the relevant 'helper.rb' file and contains the following: [code] def splitBonusUnit(data) @returnValue = @data.split(/ /) return @returnValue end [/code] The 'data' value passed into the function You flagged this item as spam.

All rights reserved. As of today. 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). Please help me !

class Attachment include IOStream def self.default_options @default_options ||= { :url => "/system/:attachment/:style/:thousand/:id/:filename", #"/system/:attachment/:id/:style/:filename", :path => ":rails_root/public:url", :styles => {}, :processors => [:thumbnail], :convert_options => {}, :default_url => "/:attachment/:style/missing.png", :default_style => :original, http://www.pcoder.net/tag/you-might-have-expected-an-instance-of-array-the-error-occurred-while-evaluating-nil-split/ I added this mongrel.rb to my config/initializers http://gist.github.com/471663 You flagged this item as spam. Sep 05, 2007 09:31 AM|dfunky|LINK Bingo ! Nat Brown June 16th, 2010 @ 06:02 PM for those of you still having issues, you do need to apply both the rack fix and the diff bshand posted.

Discuss on our WP Forum Rails Ruby on Rails Log in or Sign up Overview Tickets more 451Open Bugs 0Recent Open Tickets 87Open Patches 0Open Doc Patches 538Stale Tickets 3Verified Patches have a peek at these guys before sorting to ensure you have no nil values in the array. Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled Shop Versioning Reference Articles Premium Sign In Join Search IIS Home Downloads Learn Reference Solutions Simple - only took a few minutes Jeff Kreeftmeijer November 8th, 2010 @ 08:23 AM Tag cleared.

This actually looks like a bug in Mongrel, specifically their handling off cookies when @head['cookies'] is a string In lib/mongrel/cgi.rb, I believe there is a bug in send_cookies. HUP => reload (without restart). Are you sure this is solved? check over here share|improve this answer answered Dec 7 '10 at 20:21 the Tin Man 110k22136206 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using

I couldn't find where that happens, and won't be resolved until rails/rack/whatever doesn't un-array the 'cookie' header, or a new version of mongrel comes out. You flagged this item as spam. So is there any patch available yet?

You flagged this item as spam.

Please login or register.Did you miss your activation email? 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length Web Hosting Forum | Lunarpages » 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 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 You flagged this item as spam.

current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Mike C was on the right track, but was too-aggressively splitting apart cookies. 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 this content your hash ...}) instead.

Reload to refresh your session. It saves # when the model saves, deletes when the model is destroyed, and processes # the file upon assignment. I am too unfamiliar with Ruby code to figure it out. 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

Why cast an A-lister for Groot? I've repeated the steps over and over and I still get the same error: Error 0x80004005 occurred processing request. Also, like Eduardo I was getting a routing error but in my case it was my bad since I was redirecting the address without a slash / at the end of 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

Again, thank you for your prompt reply. member sikachu commented Sep 23, 2011 Gotcha. Instead of my browser redirecting. 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.

or if updating rack is tough, just make this change manually (sorry no diff) to gems/actionpack-2.3.8/lib/action_controller/cgi_process.rb at around :51. The instance variable @stories seems to be nil, or none existant when the view goes to reference it. You might have expected an instance of Array.