Premature end of script error

0 views
Skip to first unread message

Kim

unread,
Jul 1, 2009, 11:02:59 PM7/1/09
to Ramaze
I have a Ramaze/Phusion/Hpricot app working on my local machine, but
am getting a 500 error on my server when I try to submit a form. The
log just says 'Premature end of script'

Any ideas on what to start looking at?

James Britt

unread,
Jul 2, 2009, 12:28:15 AM7/2/09
to ram...@googlegroups.com
Kim wrote:
> I have a Ramaze/Phusion/Hpricot app working on my local machine, but
> am getting a 500 error on my server when I try to submit a form. The
> log just says 'Premature end of script'

Are you running this as CGI? That's a pretty common CGI error (though
it may come up for other reasons).

--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development

Kim

unread,
Jul 2, 2009, 5:37:59 PM7/2/09
to Ramaze
This was do to using a POST in a form submit.

On Jul 1, 9:28 pm, James Britt <james.br...@gmail.com> wrote:
> Kim wrote:
> > I have a Ramaze/Phusion/Hpricot app working on my local machine, but
> > am getting a 500 error on my server when I try to submit a form. The
> > log just says 'Premature end of script'
>
> Are you running this as CGI?  That's a pretty common CGI error (though
> it may come up for other reasons).
>
> --
> James Britt
>
> www.jamesbritt.com          - Playing with Better Toyswww.ruby-doc.org            - Ruby Help & Documentationwww.rubystuff.com           - The Ruby Store for Ruby Stuffwww.neurogami.com           - Smart application development
Reply all
Reply to author
Forward
0 new messages