Hi,

I wonder if anyone can offer some help here?

I have a number of small webapps that run under Mason 1.33, Apache 2.2.2,
mod_perl 2.0.2 and perl 5.8.8 on a RHEL4ES machine. The webserver and perl
is all compiles from source.

I have an object $sprintObj that is defined as a global variable in the
httpd.conf for Mason. I create this object as a second level autohandler
in /sprint/autohandler, which the pages below it rely on, but other parent
or sibling directories do not (Hence it's in that autohandler and not
the parent one).

Sometimes it seems that the /sprint/autohandler never gets called in the
code stack, so the $sprintObj object is never created, resulting in the
error below where my page cannot use the object that it expects to exist:

error:          Can't call method "sprint" on an undefined value at
/home/rrd/webroot/www/sprint/current_sprint.html line 2.
context:
1:      <%method title>
2:      % my $sprint = $sprintObj->sprint || $sprintObj->last_sprint;
3:      Sprint <% $sprint->{sprint_id} %>
4:      </%method>
5:      <%args>
6:      $submit => 0
...
code stack:     /home/rrd/webroot/www/sprint/current_sprint.html:2
/home/rrd/webroot/www/autohandler:13
/home/rrd/webroot/www/syshandler:9

Does anybody know why /home/rrd/webroot/www/sprint/autohandler sometimes
dissapears from the code stack when it should live between
/home/rrd/webroot/www/sprint/current_sprint.html and
/home/rrd/webroot/www/autohandler?

Help!

Thanks in advance,
Nicola

-- 
Nicola Worthington



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to