in reply to Re: tfmail_application error_bad logfile name
in thread tfmail_application error_bad logfile name

Hi

In the process of installing and configurring the tfmail, i have come accross this error that i dont know how to correct:

An error has occurred in the program bad logfile name [ ] at /home/actercoa/safefoodkenya.com/cgi-bin/TFmai +l.pl line 1048. My TFmail.pl line 1048- 1053 looks like this: my $file = $treq->config('logfile', ''); $file = $treq->process_template("\%$file",'email', undef); return unless $file; $file =~ m#^([\/\-\w]{1,100})$# or die "bad logfile name [$file]"; $file = $1; open LOG, ">>@{[ LOGFILE_ROOT ]}/$file@{[ LOGFILE_EXT ]}" or die "o +pen [$file]: $!"; flock LOG, LOCK_EX or die "flock [$file]: $!"; seek LOG, 0, 2 or die "seek to end of [$file]: $!";

Kindly assist me to resolve this.

Kindest regards

Jared Otieno

Replies are listed 'Best First'.
Re^3: tfmail_application error_bad logfile name
by Corion (Patriarch) on Dec 09, 2016 at 07:59 UTC

    The error message is bad logfile name, so most likely you configured the logfile name in a way that is incompatible with the permissions on your machine.

    Which is the same error that was already discussed in the three preceeding posts in this thread.

    What steps have you taken to ensure that your situation is different from the situation posted previously? Where did you encounter problems?