Stephane GUIBOUD-RIBAUD wrote:
Hi Mark,

I had the same problem as you when installed the 2.0.0-RC6.
I patched the Apache/Reload.pm (version 0.07) as follow:

1/ Changed the string ${package}::FIELDS by ${package}::APACHE_RELOAD_FIELDS (line 43, 44, 90, 92) 2/ Changed the return value of the 'handler' function to return 0 (instead of 1) [line 139].

You will find in attachment the version I used.

I don't know if the first modification has a real impact on the error, but it works like this for me.


Thanks for the suggestion.  Unfortunatly, Apache2/Reload in 2.0.0
is at version 0.09 and has changed substantially from the 0.07 you
patched, and it's not clear to me how that patch would be fit to 0.09.
The whole ${package}::FIELDS business doesn't even exist in the
newer version, and the handler return is now Apache2::Const::OK.

Mark


Stephane

Mark wrote:

I have a typical situation, with a Registry script that use's
a bunch of modules.  After Apache::Reload reloads the first module,
I get errors suggesting that the other loaded modules have been lost.

To illustrate, it is like this (fake example):

Script:

   #!/usr/bin/perl

  use Fubar;
  use Snafu;

  $f = Fubar->new()
  $s = Snafu->new()


I run once, then 'touch /path/to/Fubar.pm'

Then I run from client, and I get error:

   Can't locate object method "new" via package "Snafu" at ...


Makes no sense to me?  Any ideas?    Same code on Apache 1.3 no problem.
My Reload config is:

PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlSetVar ReloadAll Off
PerlSetVar ReloadModules "Fubar"
PerlSetVar ReloadDebug On

And I also have both Fubar and Snafu in my Apache PerlRequire file.

Thanks.


Reply via email to