[ic] Problem with 4.9.8 - Vend::Data

Reid Sutherland interchange-users@icdevgroup.org
Fri Jun 20 15:59:01 2003


Stefan Hornburg wrote:
> 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

Thanks Racke

I just discovered the problem too.  It seems to only happen on the 
'dict' table -- which doesn't have any configuration.  I was just about 
to submit a patch, but you beat me too it.

I'm simply going to remove any reference to the 'dict' admin table.

Thanks,

-reid