barrycarlyon has asked for the wisdom of the Perl Monks concerning the following question:

When Running

package LSweb::Application::LSone; use strict; use warnings; use base qw(LSweb::Base); use Apache::Reload; use CGI; use LSweb::Database::Page_Intro; use LSweb::Database::Page_Content; use LSweb::Database::LSone; sub setup { my $self = shift; $self->start_mode('lsone'); $self->run_modes([qw/lsone/]);} sub _submenu { return LSRfm::Database::SubMenus->search(menu => "lson +e", { order_by=>'position ASC'});} sub lsone { my $self = shift; my $html_template = $self->param('main_template'); my @lsone = LSweb::Database::LSone->retrieve_all; my @pageintro = LSweb::Database::Page_Intro->search(page => "lsone") +; my @pagecontent = LSweb::Database::Page_Content->search(page => "lso +ne", { order_by=>'contentorder ASC'}); my $output; $html_template->process('template', {wrapper => $self->wrapper(), submenu => \&_submenu, submenuon => "lsone", pageintro => \@pageintro, pagecontent => \@pagecontent, boxtype => "half", box => "right", lsone => \@lsone, }, \$output) || die $html_template->error; return $output; } sub article { my $self = shift; my $html_template = $self->param('main_template'); my $cgi = CGI->new; my $id = $cgi->param('article'); my @lsone = LSweb::Database::LSone->search(id => $id); my @pageintro = LSweb::Database::Page_Intro->search(page => "lsone") +; my @pagecontent = LSweb::Database::Page_Content->search(page => "lso +ne", { order_by=>'contentorder ASC'}); my $output; $html_template->process('template', {wrapper => $self->wrapper(), submenu => \&_submenu, submenuon => "lsone", pageintro => \@pageintro, pagecontent => \@pagecontent, boxtype => "half", lsone => \@lsone, }, \$output) || die $html_template->error; return $output; } 1;

I get the following errors:

Apache::Reload: Can't locate /home/lsweb/public_html/perllib/LSweb/Adm +in/Modules.pm [Mon May 8 14:05:19 2006] [error] Can't locate ApacheReadConfig.pm in + @INC (@INC contains: /home/lsweb/public_html/perllib /home/lsweb/per +llib /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/lib/pe +rl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/li +b/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5 +/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_p +erl . /usr/local/apache/ /usr/local/apache/lib/perl) at /usr/lib/perl +5/site_perl/5.8.6/Apache/Reload.pm line 132.\n

Modules.pm is not called ANYWHERE in any of the scripts i use

all Database:: Modules are custom builds, which are just table and column declartions for the database (mysql 4.x)

Does anyone have any suggestions?

Barry Carlyon barry@barrycarlyon.co.uk
  • Comment on What is Apachereadconfig, what does it do, and why am i calling it, when im not specifically doing it in my code?
  • Select or Download Code

Replies are listed 'Best First'.
Re: What is Apachereadconfig, what does it do, and why am i calling it, when im not specifically doing it in my code?
by Herkum (Parson) on May 08, 2006 at 14:04 UTC

    If you look at your error it says, Can't locate ApacheReadConfig.pm ... at /usr/lib/perl5/site_perl/5.8.6/Apache/Reload.pm line 132. So there is something wrong with your configuration that is giving Apache::Reload a problem. Try not using Apache::Reload first and then figure out what is wrong with with the Apache configuration.

      Have disabled my use apache::reload still the same errors

      Im going to ask my server supplier to disable it for a short while

      Barry Carlyon barry@barrycarlyon.co.uk
A reply falls below the community's threshold of quality. You may see it by logging in.