Hi,

I've already had this kind of problem, when using Mason with mod_perl and
Apache (under Windows, but I don't think this makes a difference), and it
was due to the fact that the Request module wasn't explicitly
loaded in memory before the faulty page using this request object was
called => error. Then, when loading another page that, contrary to the first
one,
loaded the module (=>worked) and coming back then to the faulty page,this
latter one was
working, because the module was then preexisting in memory, since loaded by
the working page.

So, the solution was to load the Apache2::Request in memory at Apache
startup.

Hope this helps.

----- Original Message ----- From: "Mike Marcus" <[EMAIL PROTECTED]>
To: "Mason List" <[email protected]>
Sent: Wednesday, February 01, 2006 2:08 AM
Subject: [Mason] Intermittent error with $r Apache Request variable


I haven't been working with Mason on Apache for terribly long, so my apologies if this is covered in a FAQ somewhere. I'm getting an intermittent error on an application that uses Catalyst and Mason, where the global $r variable isn't always being set. When that happens, I get the telltale teal screen o' death from Catalyst, stating:
Couldn't render component...
Global symbol "$r" requires explicit package name...

This problem only occurs some of the time, and it looks like $r is simply not being set. Is this the case, and if so, is there a known remedy? When the bug does occur, I can reload the page one or four times, and it'll sooner or later render the way it's supposed to.

Thanks! Any help here is greatly appreciated,


Mike Marcus
Software Engineer
Broadband.com
[EMAIL PROTECTED]
202-350-9962






-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to