HTML::Mason dhandler and 404's

software development

#1

Having a problem with HTML::Mason. Mason is working problem for most pages, however the dhandler does not seem to be executing, so any dynamic urls (such as “/display/.mhtml”) are not getting handled. This previously worked fine, but is no longer working. 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 CGI and HTML::Mason into my home directory (via: http://wiki.dreamhost.com/Cpan ), and this has not helped either.