Hello,
I really miss the 'Mason::Plugin' role. It's OK now.
Thanks!
/Heng
于 2011年04月15日 01:34, Jonathan Swartz 写道:
> What does your plugin class look like? Does it contain
>
> with 'Mason::Plugin';?
>
> On Thu, 14 Apr 2011 13:15 +0800, "Beckheng Lam"
> wrote:
>
>> Hi,
>>
>> I want to ad
What does your plugin class look like? Does it contain
with 'Mason::Plugin';?
On Thu, 14 Apr 2011 13:15 +0800, "Beckheng Lam"
wrote:
> Hi,
>
> I want to add customize filter. I added the plugin in app.psgi via
> '+IiBlog::Filters'.
>
> But it show me the message as title said.
>
> Followi
Hi,
I want to add customize filter. I added the plugin in app.psgi via
'+IiBlog::Filters'.
But it show me the message as title said.
Following plugins what I use.
my @plugins = ('PSGIHandler', 'HTMLFilters', '+IiBlog::Filters');
Would somebody tell me why?
/Heng
--
诸法从缘起,如来说是因。
彼法因缘尽,是大沙门说
On Tue, 28 Sep 2010 12:20:50 -0400
charmie maniar wrote:
> Thanks a lot for your replies. Can someone please explain me what
> this line does:
>
> % my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
> localtime((stat($r->filename))[9]);
Localtime returns an array based on a "seconds s
Hi,
Sorry I forgot to add: what should the file referred in this line
($r->filename)
contain?
Thanks,
Charmie
On Tue, Sep 28, 2010 at 12:20 PM, charmie maniar
wrote:
> Hi,
>
> Thanks a lot for your replies. Can someone please explain me what this line
> does:
>
> % my ($sec,$min,$hour,$mday,$m
Hi,
Thanks a lot for your replies. Can someone please explain me what this line
does:
% my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime((stat($r->filename))[9]);
Thanks,
Charmie
On Fri, Sep 24, 2010 at 4:28 AM, Jérôme Etévé wrote:
> Or implement the missing method in you
Or implement the missing method in your startup.pl or wherever it
makes sense, so your client code stays the same, and submit a patch to
mason's authors when you're happy with it :
*HTML::Mason::FakeApache::filename = sub{ return $ENV{SCRIPT_FILENAME} };
Does $ENV{SCRIPT_FILENAME} contain what yo
I have found that not all methods are available when running under cgi
and fake apache vs $r Apache2::RequestRec.
You could always try to use:
stat($ENV{SCRIPT_FILENAME})
That should work.
-Bill
On 09/23/2010 09:09 AM, charmie maniar wrote:
> Hi,
>
> I am using mason in a CGI mode on IIS 6.0,
Hi,
I am using mason in a CGI mode on IIS 6.0, windows server 2003 and I am
getting the following error:
Can't locate object method "filename" via package "HTML::Mason::FakeApache"
at D:\test\advising\templates\autohandler line 8, line 522.
Here is the code snippet :
<%method .timestamp>
%
On Sat, Jan 31, 2009 at 11:29 PM, sandhya pawar
wrote:
> I have perl5.8 on windowsXP.
>
> I have added following lines to configure mason in httpd.conf.
>
> PerlModule HTML::Mason::ApacheHandler
>
> SetHandler perl-script
> PerlHandler HTML::Mason::ApacheHandler
>
>
> But Apached us
No. Its SetHandler perl.
On Sun, 01 Feb 2009 Shiladitya Biswas wrote :
>I think its SetHandler perl or SetHandler mod-perl. Pls check the syntax.
>
>On 1 Feb 2009 04:29:55 -, sandhya pawar
> wrote:
> >
> > I have perl5.8 on windowsXP.
> >
> > I have added following lines to configure maso
I think its SetHandler perl or SetHandler mod-perl. Pls check the syntax.
On 1 Feb 2009 04:29:55 -, sandhya pawar
wrote:
>
> I have perl5.8 on windowsXP.
>
> I have added following lines to configure mason in httpd.conf.
>
> PerlModule HTML::Mason::ApacheHandler
>
> SetHandler perl-sc
I have perl5.8 on windowsXP.
I have added following lines to configure mason in httpd.conf.
PerlModule HTML::Mason::ApacheHandler
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
But Apached used to get stop.?
We got this one...
On Dec 23, 2008, at 12:27 AM, sandhya pawar wrote:
>
> WHy my mails get bounced when I used to send to
> mason-users@lists.sourceforge.net
> ?
>
>
>
> --
> ___
WHy my mails get bounced when I used to send to
mason-users@lists.sourceforge.net ?--
___
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.
On Wed, 26 Dec 2007, Susan Rizzo wrote:
> I am getting an error from the request object when I attempt to redirect to
> a component via a new URL.
> The error message is "Request->abort was called
> Stack:
> [/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm:600]
> [/usr/lib/perl5/site_perl/5
I am getting an error from the request object when I attempt to redirect to
a component via a new URL.
The error message is "Request->abort was called
Stack:
[/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Request.pm:600]
[/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/ApacheHandler.pm:220]
[/var/www/h
hi,
I have the following weird problem..
Let say I have an error in MyModule::some_method().
What I get as error from Mason is something like :
... Undefined MyModule::some_method() .
Instead of the exact error I made in some_method().
So it is very hard sometimes for me to figure out the pr
Okay
I setup the error handling as specified at
http://www.masonhq.com/docs/manual/Admin.html#exceptions_under_the_hood
My apache handler object is using MasonX::Request::WithApacheSession
When an error occurs, the error message is handled correctly by
/error/500.html
But if I go back, and cl
I'm using MasonX::Interp::WithCallbacks under mason 1.33 and mod_perl 2 and I'm getting the followin error.
The 'apache_req' parameter ("Apache2::Request=SCALAR(0x851c070)") to
Params::Callback::new was not a 'Apache' (it is a
Apache2::Request=SCALAR(0x851c070))\n
What does this error mean?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Please keep it on the list ;-)
I'll quote all your message (for conformity)
Jason Thaxter wrote:
> what you propose sounds like a sensible simplification, though
> DIR_MAGIC_TYPE isn't a recognized constant here... i don't know these
> internals well
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave Rolsky wrote:
> On Wed, 8 Feb 2006, Jason Thaxter wrote:
>> That line is trying to set $r->content_type(undef) because
>> $self->decline_dirs...
>
> Sounds like a bug. Maybe we should set the content type to "", not undef.
That line occurs insid
On Wed, 8 Feb 2006, Jason Thaxter wrote:
I'm getting this message using MasonDeclineDirs=0:
Use of uninitialized value in subroutine entry at
/usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/ApacheHandler.pm line 954.
That line is trying to set $r->content_type(undef) because
$self->decline_
I'm getting this message using MasonDeclineDirs=0:
Use of uninitialized value in subroutine entry at
/usr/local/lib/perl5/site_perl/5.8.7/HTML/Mason/ApacheHandler.pm line 954.
That line is trying to set $r->content_type(undef) because
$self->decline_dirs...
FreeBSD, perl 5.8.7, mod_perl 2.
Matt,
I think what you want is the error_mode directive. Setting it to 'fatal' I
believe will produce a 500 page.
http://www.masonhq.com/docs/manual/Params.html#error_mode
Dave,
So what exactly is the purpose of error_format?
-b
On Fri, February 3, 2006 1:31 pm, Matt Grommes said:
> Is th
Is there a way to hide the error page or detect when an error has happened and show another page? I
don't personally care so much about using $@ if I can do that.
Dave Rolsky wrote:
On Fri, 3 Feb 2006, Matt Grommes wrote:
beer wrote:
Hey Folks
I'm trying to figure out how to get mason to n
On Fri, 3 Feb 2006, Matt Grommes wrote:
beer wrote:
Hey Folks
I'm trying to figure out how to get mason to not push the stack trace onto
$@ when a die is encountered in the underlying api. I thought this was set
using the error_format variable but it seems I get the same output
regardless
I'm interested in an answer to this as well if anybody has some suggestions.
beer wrote:
Hey Folks
I'm trying to figure out how to get mason to not push the stack trace onto $@ when a die is encountered in the underlying api. I thought this was set using the error_format variable but it seems
Hey Folks
I'm trying to figure out how to get mason to not push the stack trace onto $@
when a die is encountered in the underlying api. I thought this was set using
the error_format variable but it seems I get the same output regardless of what
this is set to...if someone could point me in th
Just recently Apple Computer released a Safari web browser update (http://docs.info.apple.com/article.html?artnum=302810) that now displays certain documents that have text/plain headers as plain text rather than treating them as HTML. So Mason error pages render as plain text. Should be an easy
On Thu, 15 Dec 2005, Dave Mabe wrote:
On the exception handling section of the documentation for Mason, where does
the handler() code go? I'm simply using the ErrorDocument directive in
httpd.conf to point to /error/500.html like in the example which displays
properly, but the error message isn'
On the exception handling section of the documentation for Mason, where does the handler() code go? I'm simply using the ErrorDocument directive in httpd.conf to point to /error/500.html like in the example which displays properly, but the error message isn't included in the message.
How do I incl
Jason,
> > [error] Can't locate object method "new" via package
> > "Apache::Request" at /usr/lib/perl5/Apache/Request.pm line 22.
That looks sneakingly like a mod_perl1 DSO trying to work with a
mod_perl2 DSO. I'm convinced I've seen it before...
Which version of mod_perl are you running and a
On Fri, 2 Dec 2005, Justin Cook wrote:
Does anyone use Debian here?
Debian sarge here, with no problems. I have seen your problem but that was on
a non-debian system that did not have Apache::Request installed.
FWIW, these are the debs I have installed:
apache 1.3.33-7
apache-common 1.3.33-7
Does anyone use Debian here?
On Thu, 2005-12-01 at 15:22 -0500, Justin Cook wrote:
> Hi,
>
> Before I spend several more hours trying to figure this out...
> I did a new install of Ubuntu 5.10(which is basically Debian) and
> decided to use all .deb packages.
>
> So I apt-get install:
> apache(
35 matches
Mail list logo