
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Status of server error generating bug in rpc mode?
Quoting interch (interch@client.paymentonline.com):
>
> Found it....
>
> The problem is in dummy_database in Data.pm. backup is defined as an
> anonymous sub it looks like for some reason which I didn't bother to
> follow, and I don't completely understand what is going on here it looks
> like it is trying to get the structure here or something for it and of
> course it doesn't exist, so $class is then undefined and it bombs. I
> changed the die to a logDebug and a next and that is working as a
> temporary fix until someone that knows more than me can fix it correctly.
> Here is the fix I put in that seems to work.
>
>
>
> sub dummy_database {
> my ($name, $data);
> while (($name,$data) = each %{$Vend::Cfg->{Database}}) {
> if (defined $Vend::Cfg->{SaveDatabase}{$name}) {
> $Vend::Database{$name} =
> $Vend::Cfg->{SaveDatabase}{$name};
> next;
> }
> my $class = $db_config{$data->{Class}}->{Class};
> unless ($class) {
> ::logDebug("no class found for database %s",
> $name);
> next;
> }
> $Vend::Database{$name} =
> new $class ($data);
> }
> update_productbase();
> }
>
This is a good error log ot put in. Now we need to find out what
database is failing, what DBI/internal type it is, and why it is
failing. If you can get me that information (or someone else experiencing
the problem can) then we can get somewhere.
--
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH 45013
phone +1.513.523.7621 <mheins@redhat.com>
Few blame themselves until they have exhausted all other possibilities.
-- anonymous
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users