Email Log

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
jkpalmer52
Posts: 78
Joined: 23 Feb 2005, 17:29
Location: US-Chicago area

Email Log

Post by jkpalmer52 »

Mantis version 1.0.6

My config_inc.php file contains

$g_log_level = LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/log/email.log';

I have a subdirectory named log

There is a file in the log directory named email.log which has permissions set to 666.

I create a new user, which notifies that user by email, but nothing appears in the email.log file

Instead, I'm receiving an error -

SYSTEM WARNING: error_log(/log/email.log) [function.error-log]: failed to open stream.No such file or directory

Regards,

Jim P.
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

Where is the log folder located?
Migrate your MantisBT to the MantisHub Cloud
jkpalmer52
Posts: 78
Joined: 23 Feb 2005, 17:29
Location: US-Chicago area

Log file location

Post by jkpalmer52 »

I have created the log folder in the same directory level as where the core, css, images, etc....are located

-jP
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

The path you are using (file:/log/email.log) is referring to /log/email.log which means log being under the root. You need file:/www/mantis/log/email.log or something similar.
Migrate your MantisBT to the MantisHub Cloud
jkpalmer52
Posts: 78
Joined: 23 Feb 2005, 17:29
Location: US-Chicago area

Post by jkpalmer52 »

I have tried many different combinations like you suggested / stated.

config_inc.php contains

$g_log_level = LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/mantisconn1/mantis-1.0.6/log/email.log';

My ftp site appears as such

ftp.mydomain.com (root - don't know what the actual folder names are for my host)
mantisconn1 (folder)
mantis-1.0.6 (folder beneath mantisconn1)
log (folder beneath mantis-1.0.6 folder) - with email.log file in it
log (folder beneath mantisconn1 folder) - with email.log file in it
log (folder beneath root) - with email.log file in it

None of these combinations work.

Permissions for all log folders are 777 as is email.log file in all folders

As you can see, I've kinda covered it.

Regards
-jP
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

Write a script that echo's the following:

Code: Select all

echo __FILE__;
This will give you the full path to your script.
Migrate your MantisBT to the MantisHub Cloud
jkpalmer52
Posts: 78
Joined: 23 Feb 2005, 17:29
Location: US-Chicago area

Post by jkpalmer52 »

Got it - Thanks!
Post Reply