Hmmm. I changed it as you listed, but that didn't seem to change the error
at all. I still get this:
Execution of component 'page_name' failed! - The following parameter was
passed in the call to HTML::Mason::Request->new() but was not listed in the
validation options:
## This is the code
if ( my @unmentioned = grep { ! exists $specs->{$_} } keys %$p )
{
$options->{on_fail}->
( "The following parameter" . (@unmentioned > 1 ? 's were' :
' was') .
" passed in the call to $called but " .
(@unmentioned > 1 ? 'were' : 'was') .
" not listed in the validation options:
@unmentioned\n".Carp::longmess );
}
}
On 8/7/07, Timothy S. Nelson < [EMAIL PROTECTED]> wrote:
>
> On Mon, 6 Aug 2007, shawn looker wrote:
>
> > I've posted the apache config. I'm trying to find the mason handler.pl
> /handler
> > class still. (I've inherited this system and am still trying to fix
> it).
>
> Also, if you're willing to sink a fair bit of your own time
> into delving into it until you figure out how it works, and are just
> looking
> for a starting point, here's an idea (note, it may result in the website
> acting funny or even completely crashing (temporarily), but if that's not
> a
> problem, you can do this).
>
> That error message is coming from the Params::Validate module. in
> the
> file ValidatePP. Find this on your system ("locate Params::ValidatePP.pm
> "),
> and locate the line that generates the "validation options" part of the
> message. If you attach the coutput of Carp::longmess(), it will give you
> a
> stack trace, and you might be able to use that for debugging.
>
> Of course, take a backup copy of the file first. And note down
> the
> ownership & permissions.
>
> It'd be something like this.
>
> Mine currently says:
> ------------------------------------------------------------
> $options->{on_fail}->
> ( "The following parameter" . (@unmentioned > 1 ? 's
> were' : ' was') .
> " passed in the call to $called but " .
> (@unmentioned > 1 ? 'were' : 'was') .
> " not listed in the validation options: @unmentioned\n"
> );
> ------------------------------------------------------------
>
>
> I'd want it to say:
> ------------------------------------------------------------
> $options->{on_fail}->
> ( "The following parameter" . (@unmentioned > 1 ? 's
> were' : ' was') .
> " passed in the call to $called but " .
> (@unmentioned > 1 ? 'were' : 'was') .
> " not listed in the validation options: @unmentioned\n"
> .
> Carp::longmess );
> ------------------------------------------------------------
>
> HTH,
>
>
> ---------------------------------------------------------------------
> | Name: Tim Nelson | Because the Creator is, |
> | E-mail: [EMAIL PROTECTED] | I am |
> ---------------------------------------------------------------------
>
> ----BEGIN GEEK CODE BLOCK----
> Version 3.12
> GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V-
> PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
> -----END GEEK CODE BLOCK-----
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users