[ic] Problem with 4.9.8 - Vend::Data
Stefan Hornburg
interchange-users@icdevgroup.org
Fri Jun 20 15:49:01 2003
On Fri, 20 Jun 2003 11:54:14 -0400
Reid Sutherland <reid-ic@thirddimension.net> wrote:
> I'm getting the following pretty randomly when inside the admin:
> (I've subbed the confidantial info with variable names for this email)
>
> $CLIENTIP - - [20/June/2003:11:43:07 -0400] $STOREID
> $STORECGI/admin/do_view.html Died in server spawn: Can't call method
> "new" on an undefined value at $INTERCHANGE/lib/Vend/Data.pm line 784.
>
> Any ideas?
Please apply this patch to your Data.pm in order to get info about
the database name.
*** Data.pm 18 Jun 2003 17:34:44 -0000 2.28
--- Data.pm 20 Jun 2003 19:08:21 -0000
***************
*** 781,786 ****
--- 781,789 ----
next;
}
my $class = $db_config{$data->{Class}}->{Class};
+ unless ($class) {
+ die "no class found for database $name";
+ }
$Vend::Database{$name} =
new $class ($data);
}
Thanks
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team