Start with a full path - its safer.I don't think the log file is written to if there's an error in the form.U should fix the error first.
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
The instructions for setting up the log are not clear to me. In particular, the LOGDIR
imperative has just one example:
$LOGDIR = "/home/mysite/logs";
Now, is 'home' a literal? or a placeholder? In a formMail alert I see:
DOCUMENT_ROOT: /home/myname6/public_html
so should I follow that syntax and code something like:
$LOGDIR = "/home/myname6/public_html/SpecialSale";
or is it sufficient to code, say,
$LOGDIR = "public_html/SpecialSale";
I have not found the magic pattern yet: no log entries
have been added. I am trying to use the log as one way
of debugging, since I am still getting:
----------------------------------------
The following error occurred in FormMail : no_recipients ********** Error=The form has an internal error - no actions or recipients were specified. email: realname:
---------------------------------------
but recipients, email, and realname are all included in my form.
Sigh.
-Steve
Start with a full path - its safer.I don't think the log file is written to if there's an error in the form.U should fix the error first.
Thanks. I've got the error fixed, now I'm trying to get logging to work.
My real question here is: what does that look like? What is implied by
"Start with a full path"? Is the example using
$LOGDIR = "/home/mysite/logs";
generic or precise? Is 'home' a place holder or, perhaps, public_html for example?
Or does it need the domain name?
Thanks.
Never mind. Got it working. I used
$LOGDIR="/home/trnnn/public_html";
where 'home' is the word 'home', literally;
'trnnn' is my user-id on the system;
'public_html' is the system's place for
my html. Now that I know, I could have
gone one level deeper, but I can change
that later.
Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks