Dear Monks I desperately need thy help..

I have installed Apache 2.2.11 on my Windows Vista (yeah!), and also mod_perl 2.0. I have Strawberry perl and through PPM I also installed HTML::Mason 1.40. So, theoretically I should be able to serve mason pages. However, although I mod_perl works well (the server processes .pl files), my Mason modules cause the server to throw a 500 Internal Error. The error log from Apache is this:
Loading CGI at runtime. You could increase shared memory between Apac +he processes by preloading it in your httpd.conf or handler.pl file Use of uninitialized value $file in concatenation (.) or string at C:/ +strawberry/perl/site/lib/HTML/Mason/Compiler/ToObject.pm line 116. Use of uninitialized value $file in concatenation (.) or string at C:/ +strawberry/perl/site/lib/HTML/Mason/Compiler/ToObject.pm line 116. Reference found where even-sized list expected at C:/strawberry/perl/s +ite/lib/HTML/Mason/Interp.pm line 610. [Mon Apr 06 12:10:07 2009] [error] [client 127.0.0.1] Must specify eit +her 'comp_source' or 'comp_file' parameter to 'make_component()'\nSta +ck:\n [C:\\strawberry\\perl\\site\\lib\\HTML\\Mason\\Request.pm:556] +\n [C:\\strawberry\\perl\\site\\lib\\HTML\\Mason\\ApacheHandler.pm:2 +06]\n [C:\\strawberry\\perl\\site\\lib\\HTML\\Mason\\Request.pm:331] +\n [C:\\strawberry\\perl\\site\\lib\\HTML\\Mason\\Request.pm:211]\n + [C:\\strawberry\\perl\\site\\lib\\HTML\\Mason\\ApacheHandler.pm:97]\ +n [C:\\strawberry\\perl\\site\\lib\\Class\\Container.pm:275]\n [C:\ +\strawberry\\perl\\site\\lib\\Class\\Container.pm:353]\n [C:\\strawb +erry\\perl\\site\\lib\\HTML\\Mason\\Interp.pm:348]\n [C:\\strawberry +\\perl\\site\\lib\\HTML\\Mason\\ApacheHandler.pm:868]\n [C:\\strawbe +rry\\perl\\site\\lib\\HTML\\Mason\\ApacheHandler.pm:822]\n [(eval 32 +):8]\n [-e:0]\n

Function parameters are not parsed well, which might indicate a problem with Params::Validate, but this is up-to-date in my machine.

My Apache configuration is this:
#MOD_PERL Settings LoadFile "C:/strawberry/perl/bin/perl510.dll" LoadModule perl_module modules/mod_perl.so <FilesMatch "\.pl$"> SetHandler perl-script PerlResponseHandler ModPerl::Registry Options +ExecCGI </FilesMatch> #MASON Settings PerlModule HTML::Mason::ApacheHandler <FilesMatch "\.html$"> SetHandler perl-script PerlHandler HTML::Mason::ApacheHandler </FilesMatch>


If anyone has encountered such problems before, please help.
Notice:Whoever helps me out of this nightmare, will be awarded with a cool Mason website, free of charge!* :)

* I may retrieve the offer without prior notice

In reply to HTML::Mason problems in Apache 2.2 (Windows) by ptoulis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.