I just got a new server and everytime I run a script that ran fine on my old machine I get this error:
Undefined subroutine &ModPerl::ROOT::ModPerl::Registry::var_
The sub is "load_settings" called as "&load_settings". The weird thing is, after I click refresh page once or twice it loads up just fine.
load_settings is a subroutine in a "required" module that handles loading some required settings for the script..
use CGI qw
standard);
use CGI::Carp qw( fatalsToBrowser );
$root_path='/home/httpd/vhosts/somedomain.com/';
require $root_path . 'cgi-bin/generic_subs.lib';
&load_settings();
$query = new CGI;
print $query->header();
It seems to work fine after I refresh the page once or twice but that's not how it should work.
Any ideas?
Undefined subroutine &ModPerl::ROOT::ModPerl::Registry::var_
The sub is "load_settings" called as "&load_settings". The weird thing is, after I click refresh page once or twice it loads up just fine.
load_settings is a subroutine in a "required" module that handles loading some required settings for the script..
use CGI qw

use CGI::Carp qw( fatalsToBrowser );
$root_path='/home/httpd/vhosts/somedomain.com/';
require $root_path . 'cgi-bin/generic_subs.lib';
&load_settings();
$query = new CGI;
print $query->header();
It seems to work fine after I refresh the page once or twice but that's not how it should work.
Any ideas?