Helpful Docs to read before posting: (All Docs) | Config Docs | General FAQ | Mailing List Sending FAQ | Error FAQ

Software error: Died at /

Can't get Dada Mail to send messages?

Software error: Died at /

Postby invisiontech » Mon Feb 22, 2010 3:20 pm

Hi,

I've been used dadamail for over 5 or 6 years and recently ran into this issue where the script would not load. I have since moved to a new server but the error continues... the solutions that come up using search do not help. I've virtually tried everything but nothing seems to be helping. This is the error:


Software error:
Died at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at /DADA/MailingList/Subscribers.pm line 12.
Compilation failed in require at /home/USER/public_html/cgi-bin/dada2/mail.cgi line 149.
BEGIN failed--compilation aborted at /home/USER/public_html/cgi-bin/dada2/mail.cgi line 149.



Please help! I don't know how or why it went from working to not working at all.

Thanks
invisiontech
 
Posts: 1
Joined: Mon Feb 22, 2010 3:17 pm

Re: Software error: Died at /

Postby justin » Mon Feb 22, 2010 5:05 pm

See if you can't set up t
Code: Select all
he error log - it may hold more of an explanation.

You may also want to try to run the perldiver script:

Code: Select all
#!/usr/bin/perl -wT
#
# $Id: perldiver.pl,v 1.4 2002/07/20 08:56:39 gellyfish Exp $
#
use strict;
use subs 'File::Find::chdir';
use File::Find;

delete @ENV{qw(BASH_ENV ENV IFS)};

$ENV{PATH} = '/bin:/usr/bin';

my $plocation  = join('<br />', split(' ', `whereis perl`));
my $sendmail   = join('<br />', split(' ', `whereis sendmail`));
my $inc        = join('<br />', @INC);

my $dev = 'nms';
my $program = 'perldiver';
my $version = sprintf "%d.%02d", '$Revision: 1.4 $ ' =~ /(\d+)\.(\d+)/;

my $env;
foreach (keys %ENV){
  $env .= qq(<tr><th width="35%" valign="top">$_</th><td width="65%" valign="top">$ENV{$_}</td></tr>\n);
}

my @foundmods;
find( \&wanted, @INC);

my %found;
foreach (@foundmods)
{
   ++$found{$_} ;
}

@foundmods = sort keys(%found);
my $modcount = @foundmods;

my $third = int(@foundmods / 3);

push @foundmods, '' while @foundmods % 3;

my $mods;
for (0 .. $third) {
  $mods .= qq(<tr><td width="33%">$foundmods[$_]</td><td width="33%">$foundmods[$_ + $third + 1]</td><td width="33%">$foundmods[$_ + 2 + (2 * $third)]</td></tr>\n);
}

print "Content-type:  text/html\n\n";

my $page = do { local $/; <DATA>};

$page =~ s/\[%\s*(\S+)\s*%]/$1/eeg;

print $page;

exit;

sub wanted {
  if ($File::Find::name =~ /\.pm$/){
    open(MODFILE, $File::Find::name) || return;
    while(<MODFILE>){
      if (/^ *package +(\S+);/) {
   push (@foundmods, $1);
   last;
      }
    }
  }
}

sub File::Find::chdir
{
   return CORE::chdir(main::detaint_dirname($_[0]));
}

sub detaint_dirname
{
    my ($dirname) = @_;

    $dirname =~ m|^([:\\+@\w./-]*)$| or die "suspect directory name: $dirname";
    return $1;
}


__END__
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>[% $program %] [% $version %]</title>
<style type="text/css">
body { font-family: Verdana, sans serif;
       font-weight: normal; }
th { background-color: ghostwhite;
     text-align: left;
     font-weight: bold; }
</style>
</head>
<body>

<h1>[% $program %] [% $version %]</h1>
<h2>Server Program Paths</h2>
<table border="0" cellpadding="3" width="95%">
<tr>
<th valign="top" width="35%">Perl Executable:</th>
<td valign="top">[% $^X %]</td>
</tr>
<tr>
<th valign="top">Perl Version:</th>
<td valign="top">[% $] %]</td>
</tr>
<tr>
<th valign="top">Perl compile version OS:</th>
<td valign="top">[% $^O %]</td>
</tr>
<tr>
<th valign="top">GID: <span style="font-size: smaller; font-weight:normal">(If not blank, you are on a machine that supports membership in multiple groups simultaneously)</span></th>
<td valign="top">[% $< %]</td>
</tr>
<tr>
<th valign="top">Location of Perl:</th>
<td valign="top">[% $plocation %]</td>
</tr>
<tr>
<th valign="top">Location of Sendmail:</th>
<td valign="top">[% $sendmail %]</td>
</tr>
<tr>
<th valign="top">Directory locations searched for perl modules</th>
<td valign="top">[% $inc %]</td>
</tr>
</table>

<h2>Environment Variables</h2>
<table border="0" cellpadding="3" width="95%">[% $env %]</table>

<h2>Installed Modules</h2>
<p>[% $modcount %] modules found</p>
<table border="0" cellpadding="3" width="95%">
[% $mods %]
</table>
<hr />
<address>perldiver is Copyright &copy; 2002, London Perl Mongers. Latest
version of this and many other scripts is always available from
<a href="http://nms-cgi.sourceforge.net/">the <i>nms</i> project</a>.</address>
</body>
</html>


Installation just needs you to upload the script (save what's posted above as, "perldiver.cgi") into your cgi-bin and change its permission to, "755"

it should like what CPAN modules you have. For Dada Mail, you'll need to have one of the following:

DB_File
GDBM_File

if you have a really really old version of Dada Mail, this may work, too:

ODBM_File

If one of those isn't working, you'll have to run Dada Mail using the SQL backend.
User avatar
justin
 
Posts: 4582
Joined: Wed Feb 13, 2008 8:41 pm
Location: Denver, CO


Return to General Problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Loading