[ic] Re: Runtime error: Could not tie to 'products': Is a directory

Mike Heins mikeh@minivend.com
Fri, 30 Mar 2001 08:41:59 -0500


Quoting vasile_abo@wexim.com (vasile_abo@wexim.com):
> Hello Mike and Interchange users
> 
> Thanks (again) for taking the time to read and study this.
> 
> >> I've got a strange problem with a Interchange 4.6.3
> >> on a Linux box with perl 5.6. In error.log I got :
> >> ######################################
> >> [27/March/2001:14:55:56 -0500] shop /cgi-bin/shop/IRDA-01.html
> >> Runtime error: Could not tie to 'products': Is a directory
> >> at [interchange lib]/lib/Vend/Table/GDBM.pm line 105.
> >> ######################################
> >> 
> >> In catalog.cfg I has :
> >> Database products products.asc TAB
> >> Database products READ_ONLY 1
> >> Database products IMPORT_ONCE 1
> >> ProductFiles products
> >> 
> >> This problem does not happen when using a InMemory table.
> >> Does anybody has an idea ?
> > 
> > You don't mention the situation that caused the error.
> 
> OK, I'll give some more details. It happened only
> in flypage.html, nowhere else. In the same time I
> was able to add the product to the cart, see its
> description, etc... IRDA-01 is the valid sku for
> a product. And this error came for all the products,
> not just this one.
> As workaround, I passed to a InMemory table and it
> works fine (except some small problems I solved)
> 
> A restart of IC server didn't solve the problem.
> 

This is a bug with IMPORT_ONCE and the DBM types. I will probably not
fix it in 4.6.3, but have done in 4.7.x CVS. I have attached the 4.7.x
patch -- basically it is as simple

I am not putting it in stable yet, as it isn't tested fully enough
and this is a change with conceivable interactions. The fact that it
hasn't been reported before now indicates not many people use
IMPORT_ONCE (or have not read the docs well enough to find it even
if they need it.)

Thanks for the find. 8-)

-- 
Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mheins@redhat.com>

Be patient. God isn't finished with me yet.  -- unknown