MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Problem report



******    message to minivend-users from root <root@bigcow.inetarena.com>     ******

#### Description of problem




#### Perl version
Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
  Platform:
    osname=linux, osvers=2.2.4, archname=i586-linux
    uname='linux bigcow.inetarena.com 2.2.4 #2 smp tue mar 23 20:16:19 pst 1999 i586 unknown '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O2', gccversion=2.7.2.3
    cppflags='-Dbool=char -DHAS_BOOL'
    ccflags ='-Dbool=char -DHAS_BOOL'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=, so=so, useshrplib=true, libperl=libperl.so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.00502/i586-linux/CORE'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Built under linux
  Compiled at Mar 24 1999 17:35:25
  @INC:
    /usr/lib/perl5/5.00502/i586-linux
    /usr/lib/perl5/5.00502
    /usr/lib/perl5/site_perl/5.005/i586-linux
    /usr/lib/perl5/site_perl/5.005
    .

#### OS version
Linux bigcow.inetarena.com 2.2.5 #1 SMP Fri Apr 16 09:06:10 PDT 1999 i586 unknown

#### Main server config
Catalog       simple /home/webmaster/catalogs/simple /cgi-bin/simple /simple
Catalog       estes /home/webmaster/catalogs/estes /cgi-bin/estes /estes
Variable   MV_NO_CRYPT   1
AdminUser  minivend:nevairbe
AllowGlobal _mv_admin
GlobalSub sub test_global_sub { return 'Test of global subroutine OK.' }
HouseKeeping 5
MaxServers 5
PIDcheck  300
TcpMap  7786 -
TolerateGet  Yes
Variable TEST_VARIABLE Test of global variable OK.
UserTag loc hasEndTag   1
UserTag loc Interpolate 1
UserTag loc Order locale
UserTag loc Routine <<EOF
sub {
    my ($locale, $message) = @_;
    return $message unless $Vend::Cfg->{Locale};
    my $ref;
    if($locale) {
        return $message
            unless defined $Vend::Cfg->{Locale_repository}{$locale};
        $ref = $Vend::Cfg->{Locale_repository}{$locale}
    }
    else {
        $ref = $Vend::Cfg->{Locale};
    }
    return defined $ref->{$message} ? $ref->{$message} : $message;
EOF
UserTag var Interpolate 1
UserTag var PosNumber 2
UserTag var Order name global
UserTag var Routine <<EOF
sub {
    $_[1] and return $Global::Variable->{shift @_};
    return $Vend::Cfg->{Variable}{shift @_};
EOF
UserTag summary Order amount name currency format total reset hide
UserTag summary PosNumber 6
UserTag summary Routine <<EOF
use vars qw/%summary_hash/;
sub {
    my ($amount, $name, $currency, $format, $total, $reset, $hide) = @_;
	unless ($name) {
		$name = 'ONLY0000';
		%summary_hash = () if Vend::Util::is_yes($reset);
	else {
		$summary_hash{$name} = 0 if Vend::Util::is_yes($reset);
	$summary_hash{$name} += $amount if length $amount;
	$amount = $summary_hash{$name} if Vend::Util::is_yes($total);
	return '' if defined $hide && Vend::Util::is_yes($hide);
	return sprintf $format, $amount if $format;
    return Vend::Util::currency($amount) if $currency;
    return $amount;
EOF
UserTag  db-date  Order table format
UserTag  db-date  PosNumber 2
UserTag  db-date  Routine <<EOF
sub {
    my ($format, $db) = @_;
    $format = '%A %d %b %Y';
	$db = 'products' unless $db;
    my $mtime = (stat($Vend::Cfg->{Database}{'file'}))[9];
    return POSIX::strftime($format, localtime($mtime));
EOF
UserTag  db-count  Order table
UserTag  db-count  PosNumber 1
UserTag  db-count  Routine <<EOF
sub {
    my ($db) = @_;
    $db = 'products' unless $db;
    my $ref = Vend::Data::database_exists_ref($db)
        or return "Bad table $db";
    $ref = $ref->ref();
    my $count;
    while ($ref->each_record()) {
        $count++;
    }
    return $count;
EOF
UserTag bar-button Order page current
UserTag bar-button PosNumber 2
UserTag bar-button HasEndTag 1
UserTag bar-button Routine   <<EOR
sub {
	use strict;
	my ($page, $current, $html) = @_;
	$current = $Global::Variable->{MV_PAGE}
		if ! $current;
	$html =~ s:\[selected\]([\000-\377]*)\[/selected]::i;
	my $alt = $1;
	return $html if $page ne $current;
	return $alt;
EOR

#### Catalog config differences
3,30c3,35
< Variable    SERVER_NAME     __MVC_SERVERNAME__
< Variable    CGI_URL         __MVC_CGIURL__
< Variable    SECURE_SERVER   http://__MVC_SERVERNAME__
< Variable    ORDERS_TO       __MVC_MAILORDERTO__
< Variable    IMAGE_DIR       __MVC_IMAGEURL__
< Variable    DOCROOT         __MVC_DOCUMENTROOT__
< Variable    SAMPLEHTML      __MVC_SAMPLEHTML__
< Variable    SAMPLEURL       __MVC_SAMPLEURL__
< 
< Variable    COMPANY         __MVC_COMPANY__
< Variable    ADDRESS         __MVC_ADDRESS__
< Variable    CITY            __MVC_CITY__
< Variable    PHONE           __MVC_PHONE__
< Variable    TOLLFREE        __MVC_TOLLFREE__
< Variable    FAX             __MVC_FAX__
< Variable    LOGO            __MVC_LOGO__
< Variable    SMLOGO          __MVC_SMLOGO__
< Variable    HEADERBG        __MVC_HEADERBG__
< Variable    TABLEFG         __MVC_TABLEFG__
< Variable    HEADERTEXT      __MVC_HEADERTEXT__
< Variable    BARBG           __MVC_BARBG__
< Variable    BARTEXT         __MVC_BARTEXT__
< Variable    BGIMAGE         __MVC_BGIMAGE__
< Variable    BGCOLOR         __MVC_BGCOLOR__
< Variable    ENCRYPTOR       __MVC_ENCRYPTOR__
< Variable    TAXAREA         __MVC_TAXAREA__
< Variable    TAXRATE         __MVC_TAXRATE__
< Variable    TAXSHIPPING     __MVC_TAXSHIPPING__
---
> Variable    SERVER_NAME     bigcow.inetarena.com
> Variable    CGI_URL         /cgi-bin/estes
> Variable    SECURE_SERVER   http://bigcow.inetarena.com
> Variable    ORDERS_TO       sparky@online.inetarena.com 
> Variable    IMAGE_DIR       /estes/images
> Variable    DOCROOT         /home/webmaster/www
> Variable    SAMPLEHTML      /home/webmaster/www/estes
> Variable    SAMPLEURL       http://bigcow.inetarena.com/estes
> Variable    COMPANY         Steve Estes P.N., INC.
> Variable    ADDRESS         PO Box 25509
> Variable    CITY            Portland Or 97298
> Variable    PHONE           (503) 244-5057
> Variable    TOLLFREE        (800) 705-5057
> Variable    FAX             (503) 244-6015
> Variable    LOGO            banner.gif
> Variable    HOMELOGO        home.jpg
> Variable    SEARCHLOGO      search.jpg
> Variable    BASKETLOGO      basket.jpg
> Variable    ORDERLOGO       order.jpg
> Variable    INFO            info.jpg
> Variable    CHECKLOGO       check.jpg
> Variable    SMLOGO          sm_banner.gif
> Variable    HEADERBG        #ffffff
> Variable    TABLEFG         #ffffff
> Variable    HEADERTEXT      #000000
> Variable    BARBG           #ffffff
> Variable    BARTEXT         #000000
> Variable    BGIMAGE         none
> Variable    BGCOLOR         #FFFFFF
> Variable    ENCRYPTOR       none
> Variable    TAXAREA         OH IL
> Variable    TAXRATE         OH=6, IL=7.25
> Variable    TAXSHIPPING     OH
39c44
< Variable      MV_NO_CRYPT      __MVC_NOCRYPT__
---
> Variable      MV_NO_CRYPT      1
42a48
> Variable      ICONVTAB   <iconvtab
157a164
> 
169,181c176,187
< 
< Database            products     products.asc      TAB
< Database            products     INDEX             category
< Database            pricing      pricing.asc       TAB
< Database            transactions transactions.txt  TAB
< Database            userdb       userdb.asc        TAB
< Database            country      country.asc       TAB
< Database            locale       locale.asc        TAB
< Database            Ground       Ground.csv        CSV
< Database            2ndDayAir    2ndDayAir.csv     CSV
< Database            NextDayAir   NextDayAir.csv    CSV
< 
< # Here are some sample product database definitions for various SQL 
---
> Database            transactions transactions.asc TAB
> Database            shipping    shipping.asc   TAB
> Database            products    products.asc   TAB
> Database            pricing     pricing.asc    TAB
> Database            inventory   inventory.asc  TAB
> Database            userdb      userdb.asc     TAB
> Database            country     country.asc    TAB
> Database            locale      locale.asc     TAB
> Database            Ground      Ground.csv     CSV
> Database            2ndDayAir   2ndDayAir.csv  CSV
> Database            NextDayAir  NextDayAir.csv CSV
> # Here are some sample product database definitions for various SQL
198,200d203
< ### Needed for Oracle and some others
< #Database            products UPPERCASE    1
< 
281c284
< # AsciiBackend         etc/backend.asc
---
> AsciiBackend         etc/backend.asc
304c307
< # BackendOrder name,company,address,city,state,zip,country,account,mv_shipmode
---
> BackendOrder name,company,address,city,state,zip,country,account,mv_shipmode
445c448
< CustomShipping       Yes
---
> CustomShipping        Yes   
464c467
< DefaultShipping      0
---
> DefaultShipping     default 
1002c1005
< Password                __MVC_SUPASSWD__
---
> Password                theresa
1113c1116
< RemoteUser   __MVC_SUPERUSER__
---
> RemoteUser   webmaster
1273c1276
< # Shipping
---
> Shipping 0 

#### Main MiniVend error.log (last 50 lines)
- - - [17/May/1999:07:16:09 -0700] - - STOP server (13506) on signal TERM
- - - [17/May/1999:07:16:17 -0700] - - MiniVend V3.12
- - - [17/May/1999:07:16:17 -0700] - - Config '_mv_admin' at server startup
- - - [17/May/1999:07:16:17 -0700] - - Config 'estes' at server startup
- - - [17/May/1999:07:16:18 -0700] - - Config 'simple' at server startup
- - - [17/May/1999:07:16:19 -0700] - - START server (13630) (INET and UNIX)
- - - [17/May/1999:07:16:19 -0700] - - Accepting connections from localhost|127\.0\.0\.1
207.149.117.60 NzKXEx4j:207.149.117.60 - [17/May/1999:07:27:22 -0700] estes /cgi-bin/estes/order Safe: syntax error at (eval 56) line 1, near "( ||"
> 
> 1 * ( || 0)
> 
207.149.117.60 NzKXEx4j:207.149.117.60 - [17/May/1999:07:27:22 -0700] estes /cgi-bin/estes/order Safe: syntax error at (eval 59) line 1, near "( ||"
> 
> 1 * ( || 0)
> 
207.149.117.60 NzKXEx4j:207.149.117.60 - [17/May/1999:07:29:24 -0700] estes /cgi-bin/estes/order Safe: syntax error at (eval 56) line 1, near "( ||"
> 
> 1 * ( || 0)
> 
- - - [17/May/1999:07:34:47 -0700] - - STOP server (13630) on signal TERM
- - - [17/May/1999:07:34:56 -0700] - - MiniVend V3.12
- - - [17/May/1999:07:34:56 -0700] - - Config '_mv_admin' at server startup
- - - [17/May/1999:07:34:56 -0700] - - Config 'estes' at server startup
- - - [17/May/1999:07:34:56 -0700] - - Config 'simple' at server startup
- - - [17/May/1999:07:34:58 -0700] - - START server (13727) (INET and UNIX)
- - - [17/May/1999:07:34:58 -0700] - - Accepting connections from localhost|127\.0\.0\.1
- - - [17/May/1999:07:36:55 -0700] - - STOP server (13727) on signal TERM
- - - [17/May/1999:07:37:03 -0700] - - MiniVend V3.12
- - - [17/May/1999:07:37:03 -0700] - - Config '_mv_admin' at server startup
- - - [17/May/1999:07:37:03 -0700] - - Config 'estes' at server startup
- - - [17/May/1999:07:37:04 -0700] - - Config 'simple' at server startup
- - - [17/May/1999:07:37:05 -0700] - - START server (13741) (INET and UNIX)
- - - [17/May/1999:07:37:05 -0700] - - Accepting connections from localhost|127\.0\.0\.1

#### Catalog error.log (last 50 lines)

#### DBM Status
Have GDBM_File.
Have DB_File.

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: