This project is archived and is in readonly mode.

#2434 ✓stale
Jon Vlachoyianis

Rails 2.3.2 CGI doesn't work

Reported by Jon Vlachoyianis | April 6th, 2009 @ 10:07 PM | in 3.x

I create a new rails application : rails -D new_app

When I try to run dispatch.cgi from public/, I get this error:

/home/bla/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controller/cgi_process.rb:22:in __send__': You have a nil object when you didn't expect it! (NoMethodError) The error occurred while evaluating nil.env_table

from /home/bla/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controller/cgi_process.rb:22:in `dispatch_cgi'
from /home/bla/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:102:in `dispatch_cgi'
from /home/bla/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controller/dispatcher.rb:28:in `dispatch'
from ./dispatch.cgi:10

Is CGI dropped? Will be dropped completely in the near future? I was using CGI for small applications in shared hosting that supported CGI but don't support mod_rails.

Any solutions, work-arounds?

Comments and changes to this ticket

  • Max Lapshin

    Max Lapshin April 20th, 2009 @ 09:00 PM

    As far as I know, CGI is really deprecated

  • Ngoc Dao

    Ngoc Dao July 11th, 2009 @ 01:14 PM

    Run rake rails:update:generate_dispatchers to generate dispatcher files in RAILS_ROOT/public.

  • comopasta

    comopasta July 15th, 2009 @ 06:36 AM

    "Run rake rails:update:generate_dispatchers to generate dispatcher files in RAILS_ROOT/public."

    I have the same problem also.
    I used rake rails:update:generate_dispatchers but the generated ones were exactly the same as those that I had before...
    So didn't help.

    I'm running on a shared hosting as well so I don't have much freedom there.

    Regards

  • techarch

    techarch July 15th, 2009 @ 08:03 PM

    I am having the same issue after generating the dispatchers. Has anyone figure out how to resolve this?

  • Thorbjørn Hermansen

    Thorbjørn Hermansen August 8th, 2009 @ 09:48 PM

    I have this one too. Both on my development computer and on my web hotel. Reverting back to Rails 2.2.2 and it's working, but not with 2.3.x.

  • Jeremy Kemper

    Jeremy Kemper May 4th, 2010 @ 06:48 PM

    • Milestone changed from 2.x to 3.x
  • Rohit Arondekar

    Rohit Arondekar October 14th, 2010 @ 02:48 PM

    • State changed from “new” to “stale”
    • Importance changed from “” to “”

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages