print vs $r->print still works. Is it better to use one over the other?
If I change all of my $r->print statements to read print instead will
I need to expect trouble?
Thanks,
Boysenberry
boysenberrys.com | habitatlife.com | selfgnosis.com
On Jul 1, 2006, at 1:40 PM, Boysenberry Payne wrote:
To clarify, I get the error now whether I debug or not.
Until I started to debug I wasn't getting the error.
I don't think I changed anything in my code to cause this though...
Thanks,
Boysenberry
boysenberrys.com | habitatlife.com | selfgnosis.com
On Jul 1, 2006, at 1:37 PM, Boysenberry Payne wrote:
I'm getting the following error only when I debug:
Can't locate object method "print" via package "Apache2::RequestRec"
at /Users/boysie/habitat/perl/modules/Habitat/Apache2/Template.pm
line 69.\n
Line 69:
$r->print( $output ) if $output;
Where $r is Apache2::RequestRec
Any ideas? It was working fine yesterday, the only thing different
is the debugger now,
and I even have it remarked out and still get this error. It doesn't
make any sense to me.
Why would Apache2:RequestRec loose the print subroutine?
Thanks,
Boysenberry
boysenberrys.com | habitatlife.com | selfgnosis.com
On Jul 1, 2006, at 1:36 AM, Boysenberry Payne wrote:
I'm not sure what your doing that you need to be running setgid
though.
Me either.
Do any of these require setgid that you know of?
use APR::Pool ();
use Apache::DB ();
Apache::DB->init();
use Apache::DBI ();
use Apache2::Connection ();
use Apache2::Const -compile => qw( OK REDIRECT FORBIDDEN );
use Apache2::Cookie ();
use Apache2::Request ();
use Apache2::Upload ();
use APR::Request::Apache2 ();
use Email::Send ();
use HTML::TreeBuilder ();
use Template ();
use URI::Escape ();
I used egrep on all of my custom modules and came up with nothing.
I says during install_driver(mysql) would it be from changing
databases,
e.g. starting in one database/user than switching to another
database/user?
Thanks,
Boysenberry
boysenberrys.com | habitatlife.com | selfgnosis.com
On Jun 30, 2006, at 6:36 PM, Philip M. Gollucci wrote:
Boysenberry Payne wrote:
That helped me get the Debugger working thank you.
Now its cutting out with this error in the error log:
[Fri Jun 30 17:55:23 2006] [error] [client 127.0.0.1]
install_driver(mysql) failed: Insecure $ENV{PATH} while running
setgid at
/Library/Perl/5.8.1/darwin-thread-multi-2level/Term/ReadKey.pm
line 334.\nCompilation failed in require at
/Library/Perl/5.8.1/Term/ReadLine/Perl.pm line 58.\n\n at
/Users/boysie/habitat/perl/modules/Habitat/Apache2/DB.pm line 39\n
How come its saying the $ENV{PATH} is insecure?
Any ideas?
perldoc perlsec.
By default path is tainted unless you untaint it.
I'm not sure what your doing that you need to be running setgid
though.
--
--------------------------------------------------------------------
----
Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F
"In all that I've done wrong I know I must have done something
right to
deserve a hug every morning and butterfly kisses at night."