[ic] Administrators by Affiliate

Casey R. Tweten crt@kiski.net
Sun, 12 Nov 2000 15:11:01 -0500 (EST)


Today around 8:35pm, Hans-Joachim Leidinger hammered out this masterpiece:

: "Casey R. Tweten" wrote:
: > 
: > example config error: Can't call method "new" on an undefined value at
: > /home/httpd/interchange/lib/Vend/Data.pm line 576.
: > 
: > What am I missing?
: 
: I've gotten this same error often, when my setting of my new table is
: wrong in my catalog.cfg or the file <mynewfile.mdb> (Attention! I write
: this from my head!) is wrong. Post your part of your setting. Without a
: crytalball, it is hard to help you.

I am using MySQL so this is the catalog.cfg section for it:

#####
##### MySQL
#####
#ifdef MYSQL

Message Using MySQL, DSN=__SQLDSN__.

# Tell the default DBM we are using something else...
Variable  SOME_DATABASE  1

# Uncomment if needed
#Variable  SQLUSER  foo
#Variable  SQLPASS  bar

# The table defs are in separate files in the dbconf/mysql directory,
# the ones kept in DBM are in TABLENAME.dbm files.

#include dbconf/mysql/*

#endif

------------>8 Snip the other DB config sections... 8<------------

#####
##### Default DBM if nothing else defined
#####
#ifndef SOME_DATABASE

# The table defs are in separate files in the dbconf/dbm directory.

Message Using default DBM database.
#include dbconf/default_db/*

#endif

#ProductFiles   products
ProductFiles   products products2

###################################################

That's my catalog.cfg section in question.

-- 
print(join(' ', qw(Casey R. Tweten)));my $sig={mail=>'crt@kiski.net',site=>
'http://home.kiski.net/~crt'};print "\n",'.'x(length($sig->{site})+6),"\n";
print map{$_.': '.$sig->{$_}."\n"}sort{$sig->{$a}cmp$sig->{$b}}keys%{$sig};
my $VERSION = '0.01'; #'patched' by Jerrad Pierce <belg4mit at MIT dot EDU>