Hi all,

I am using params::validate and want to switch it off in production where i use it with apache httpd and mod_perl.
I set in the .cshrc.config PERL_NO_VALIDATION to 1.
Afterwards in the local_httpd.config i use PassEnv PERL_NO_VALIDATION
The parameter is passed well as i can verify it with warn $ENV{PERL_NO_VALIDATION}.

Unfortunately i get the error:
The 'x' parameter (undef) to Y::foo was an 'undef', which is not one o +f the allowed types: scalar at Y.pm line 70. ... ModPerl::ROOT::ModPerl::Registry::z_2ecgi::handler('Apache2::Reque +stRec=SCALAR(0xb61b6a8)') called at ... eval {...} called at ... ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xb6360c8)') +called at ... ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0 +xb6360c8)') called at ... ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestR +ec=SCALAR(0xb61b6a8)') called at -e line 0 eval {...} called at -e line 0
When i run the same cgi through command line everything works fine.
What is wrong here?
Thanks,
David

In reply to problems with switching off params::validate in mod_perl by david2008

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.