Adding a slash now calls the dhandler ok, however:
1) I was previously parsing the dynamic "ID" number in the "filename"
via $m->dhandler_arg .. I had to switch this to using $ENV{REQUEST_URI}
2) URL Variables via GET's seem to be working fine, but POST data (which
previously worked) does not seem to be passed to the dhandler %args (or at
least I don't know how to access it)
Any ideas how to get POST's working?
TIA!
On Mon, Jul 13, 2009 at 12:50 AM, Beckheng Lam <bi.ken....@gmail.com> wrote:
> Try to add slash as the end of ErrorDocument 404
> /cgi-bin/mason_handler.cgi
>
> ErrorDocument 404 /cgi-bin/mason_handler.cgi/???
>
>
> Matt 22207 wrote:
>
> I'm hosted on Dreamhost, so I only have Mason on CGI.
> Mason is working for most pages, however the dhandler does not seem to be
> executing, so any dynamic urls (such as "/display/<ID>.mhtml") are not
> getting handled. This previously worked fine, but is no longer working
> (probably due to some Dreamhost upgrade). I am mostly using the stock CGI
> setup here:
>
> http://wiki.dreamhost.com/Mason
>
> While this worked before, any dhandled URL's are now just returning
> standard 404's.
>
> I was also previously adding to my .htaccess:
>
> ErrorDocument 404 /cgi-bin/mason_handler.cgi
>
> This gives me:
>
> [Sun Jul 12 19:21:05 2009] [error] [client XX.XX.XX.XX] File does not
> exist: /home/BLAH/BLAH.com/4.mhtml, referer: http://www.BLAH.com/
> [Sun Jul 12 19:21:04 2009] [error] [client XX.XX.XX.XX] The 'comp'
> parameter (undef) to HTML::Mason::Request::CGI->new() was an 'undef', which
> is not one of the allowed types: scalar object, referer:
> http://www.BLAH.com/
> [Sun Jul 12 19:21:04 2009] [error] [client XX.XX.XX.XX] , referer:
> http://www.BLAH.com/
> [Sun Jul 12 19:21:04 2009] [error] [client XX.XX.XX.XX] Stack:, referer:
> http://www.BLAH.com/
> [Sun Jul 12 19:21:04 2009] [error] [client XX.XX.XX.XX]
> [/usr/share/perl5/HTML/Mason/CGIHandler.pm:131], referer:
> http://www.BLAH.com/
> [Sun Jul 12 19:21:04 2009] [error] [client XX.XX.XX.XX]
> [/usr/share/perl5/HTML/Mason/CGIHandler.pm:66], referer:
> http://www.BLAH.com/
> [Sun Jul 12 19:21:04 2009] [error] [client XX.XX.XX.XX]
> [mason_handler.cgi:44], referer: http://www.BLAH.com/
> [Sun Jul 12 19:21:04 2009] [error] [client XX.XX.XX.XX] Premature end of
> script headers: mason_handler.cgi, referer: http://www.BLAH.com/
>
>
> Ideas how to make this work again? I've also tried installing and running
> the latest CGI and HTML::Mason into my home directory (via:
> http://wiki.dreamhost.com/Cpan ), and this has not helped either.
>
> Also, i checked that "$m->dhandler_name" is plain old "dhandler".
>
> TIA for any help!
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
>
> ------------------------------
>
> _______________________________________________
> Mason-users mailing
> listmason-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/mason-users
>
>
>
> --
> Perl乐事 -- http://www.perlersh.org
> 我的博客 -- http://www.perlersh.org/blog.html
>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
>
>
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users