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.
Email Log
Moderators: Developer, Contributor
-
- Posts: 78
- Joined: 23 Feb 2005, 17:29
- Location: US-Chicago area
Log file location
I have created the log folder in the same directory level as where the core, css, images, etc....are located
-jP
-jP
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
-
- Posts: 78
- Joined: 23 Feb 2005, 17:29
- Location: US-Chicago area
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
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
Write a script that echo's the following:
This will give you the full path to your script.
Code: Select all
echo __FILE__;
Migrate your MantisBT to the MantisHub Cloud