[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Problem report
#### Description of problem
:( i'm sure this is either my fault, or something to do with not finding httpd.congf
#### Perl version
Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:
Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris
uname='sunos ganghis 5.6 generic sun4m sparc sunw,sparcstation-20 '
hint=previous, useposix=true, d_sigaction=define
bincompat3=y useperlio=undef d_sfio=undef
Compiler:
cc='gcc', optimize='-O', gccversion=2.7.2.3
cppflags='-I/usr/local/include'
ccflags ='-I/usr/local/include'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
voidflags=15, castflags=0, d_casti32=define, d_castneg=define
intsize=4, alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
libc=/lib/libc.so, so=so
useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib'
Characteristics of this binary (from libperl):
Built under solaris
Compiled at Oct 31 1997 13:17:14
@INC:
/usr/local/lib/perl5/sun4-solaris/5.00404
/usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/sun4-solaris
/usr/local/lib/perl5/site_perl
.
#### OS version
SunOS trojan 5.6 Generic_105181-12 sun4d sparc SUNW,SPARCserver-1000
#### Main server config
Catalog simple /export/home/m/mdefusco/catalogs/simple /cgi-bin/simple /simple
Variable MV_NO_CRYPT 1
AdminUser plasquik:bitz0r
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
#### Main MiniVend error.log (last 50 lines)
- - - [07/July/1999:17:32:33 -0700] - - Config 'simple' at server startup
- - - [07/July/1999:17:32:35 -0700] - - START server (28766) (INET and UNIX)
- - - [07/July/1999:17:32:35 -0700] - - Accepting connections from localhost|127\.0\.0\.1
- - - [07/July/1999:17:34:54 -0700] - - Runtime error: Unrecognized block: <get>
>
- - - [07/July/1999:17:34:54 -0700] - - Could not open error file : No such file or directory
>
> to report this error:
> - - - [07/July/1999:17:34:54 -0700] - - Runtime error: Unrecognized block: <get>
> >
>
- - - [07/July/1999:17:48:58 -0700] - - STOP server (28766) on signal TERM
- - - [07/July/1999:17:54:38 -0700] - - MiniVend V3.14
- - - [07/July/1999:17:54:38 -0700] - - Config '_mv_admin' at server startup
- - - [07/July/1999:17:54:39 -0700] - - Config 'simple' at server startup
- - - [07/July/1999:17:54:41 -0700] - - START server (29265) (INET and UNIX)
- - - [07/July/1999:17:54:41 -0700] - - Accepting connections from localhost|127\.0\.0\.1
- - - [07/July/1999:17:55:31 -0700] - - STOP server (29265) on signal TERM
- - - [07/July/1999:17:55:56 -0700] - - MiniVend V3.14
- - - [07/July/1999:17:55:56 -0700] - - Config '_mv_admin' at server startup
- - - [07/July/1999:17:55:56 -0700] - - Config 'simple' at server startup
- - - [07/July/1999:17:55:58 -0700] - - START server (29315) (INET and UNIX)
- - - [07/July/1999:17:55:58 -0700] - - Accepting connections from localhost|127\.0\.0\.1
- - - [07/July/1999:17:58:46 -0700] - - Runtime error: REQUEST_METHOD is not defined at /export/home/m/mdefusco/mvend/bin/minivend line 2138.
>
- - - [07/July/1999:17:58:46 -0700] - - Could not open error file : Illegal seek
>
> to report this error:
> - - - [07/July/1999:17:58:46 -0700] - - Runtime error: REQUEST_METHOD is not defined at /export/home/m/mdefusco/mvend/bin/minivend line 2138.
> >
>
- - - [07/July/1999:17:59:42 -0700] - - Undefined catalog:
- - - [07/July/1999:18:05:15 -0700] - simple Runtime error: Bad script.
>
- - - [07/July/1999:18:05:15 -0700] - simple Could not open error file : Illegal seek
>
> to report this error:
> - - - [07/July/1999:18:05:15 -0700] - simple Runtime error: Bad script.
> >
>
- - - [07/July/1999:18:06:37 -0700] - scan Runtime error: Bad script.
>
- - - [07/July/1999:18:06:37 -0700] - scan Could not open error file : Illegal seek
>
> to report this error:
> - - - [07/July/1999:18:06:37 -0700] - scan Runtime error: Bad script.
> >
>
- - - [07/July/1999:18:06:45 -0700] - - Undefined catalog:
- - - [07/July/1999:18:30:15 -0700] - - STOP server (29315) on signal TERM
#### Catalog error.log (last 50 lines)
No entries.
#### DBM Status
No usable DBM.