Re: [Mason] Error while loading app.psgi: Can't locate object method "expand_to_plugins"

2011-04-14 Thread Beckheng Lam
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

Re: [Mason] Error while loading app.psgi: Can't locate object method "expand_to_plugins"

2011-04-14 Thread 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 add customize filter. I added the plugin in app.psgi via > '+IiBlog::Filters'. > > But it show me the message as title said. > > Followi

[Mason] Error while loading app.psgi: Can't locate object method "expand_to_plugins"

2011-04-13 Thread Beckheng Lam
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 -- 诸法从缘起,如来说是因。 彼法因缘尽,是大沙门说

Re: [Mason] Error

2010-09-28 Thread MK
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

Re: [Mason] Error

2010-09-28 Thread charmie maniar
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

Re: [Mason] Error

2010-09-28 Thread charmie maniar
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

Re: [Mason] Error

2010-09-24 Thread Jérôme Etévé
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

Re: [Mason] Error

2010-09-23 Thread Bill Walz
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,

[Mason] Error

2010-09-23 Thread charmie maniar
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> %

Re: [Mason] Error in configure httpd.conf

2009-02-03 Thread Perrin Harkins
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

Re: [Mason] Error in configure httpd.conf

2009-02-01 Thread sandhya pawar
  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

Re: [Mason] Error in configure httpd.conf

2009-01-31 Thread Shiladitya Biswas
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

[Mason] Error in configure httpd.conf

2009-01-31 Thread sandhya pawar
  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.?

Re: [Mason] error

2008-12-23 Thread Jonathan Swartz
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 > ? > > > > -- > ___

[Mason] error

2008-12-23 Thread sandhya pawar
  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.

Re: [Mason] Error from request object

2007-12-27 Thread Dave Rolsky
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

[Mason] Error from request object

2007-12-26 Thread Susan Rizzo
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

[Mason] error reporting

2007-07-11 Thread myshare
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

[Mason] error handling and sessions

2006-11-01 Thread brett gardner
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

[Mason] Error with MasonX::Interp::WithCallbacks

2006-07-13 Thread Jimmy Li
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?

Re: [Mason] error message with MasonDeclineDirs 0

2006-02-11 Thread Marius Feraru
-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

Re: [Mason] error message with MasonDeclineDirs 0

2006-02-09 Thread Marius Feraru
-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

Re: [Mason] error message with MasonDeclineDirs 0

2006-02-08 Thread Dave Rolsky
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_

[Mason] error message with MasonDeclineDirs 0

2006-02-08 Thread Jason Thaxter
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.

Re: [Mason] Error Output

2006-02-03 Thread beer
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

Re: [Mason] Error Output

2006-02-03 Thread Matt Grommes
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

Re: [Mason] Error Output

2006-02-03 Thread Dave Rolsky
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

Re: [Mason] Error Output

2006-02-03 Thread Matt Grommes
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

[Mason] Error Output

2006-02-02 Thread beer
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

[Mason] Mason Error Pages

2006-01-13 Thread Ryan Perry
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

Re: [Mason] Error Handling Setup

2005-12-15 Thread Scott Lanning
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'

[Mason] Error Handling Setup

2005-12-15 Thread Dave Mabe
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

Re: [Mason] Error using debian HTML::Mason package

2005-12-02 Thread David Lloyd
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

Re: [Mason] Error using debian HTML::Mason package

2005-12-02 Thread Simon Drabble
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

Re: [Mason] Error using debian HTML::Mason package

2005-12-02 Thread Justin Cook
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(