Erik Norgaard wrote: > Erik Norgaard wrote: > >> I have successfully created a module that declares some configuration >> parameters which should be available to the handler: dbDriver, dbHost, >> dbName, dbUser and dbPassword. Or so I think, I followed this guide: >> >> http://perl.apache.org/docs/2.0/user/config/custom.html > > Something is wrong, I can't read the variables, or they are undefined. > What am I missing? > my $r = shift; > my $conf = Apache2::Module::get_config('XCMS::Config', $r->server); my $conf = Apache2::Module::get_config('XCMS::Config',$r->server, $r->per_dir_config); ^^^^^^^
Should do the trick. That detail is subtle and has gotten me also in the past. I put a quick test together using Geoff's bug reporting skeleton [1] and a few tweaks based on your examples. Let me know if it doesn't work and I'll send you the tarball. [1] http://perl.apache.org/~geoff/bug-reporting-skeleton-apache.tar.gz