From: Paul L. <pa...@sq...> - 2015-08-20 03:39:18
|
On 8/19/15, Don Levey <squ...@th...> wrote: > On 8/19/2015 20:15, Paul Lesniewski wrote: >> On 8/19/15, Don Levey <squ...@th...> wrote: >>> ... >>> I have followed the instructions in the INSTALL document included in the >>> plugin package, and yet (even with the default options) I get the >>> following error using configtest.php: >>> >>> ERROR: Squirrel Logger plugin is configured to log the "ERROR" event >>> in $sl_logs, but that event is not enabled in $sl_log_events >>> >>> Ideally, I would have the errors logged, to a file, but even though the >>> $sl_logs and $sl_log_events match >> >> The error tells you they don't "match" and I doubt it's wrong. >> >>> I get the error above. Any thoughts >>> on how I might resolve this? >> >> Look again. You can post log file snippets if you can't see it. > > Well, I don't have a log file yet; that's kinda what I'm trying to do. Was a typo - I meant *configuration* file snippets..... > But the config.php file has: > > $sl_log_events = array( > 'LOGIN', > 'LOGOUT', > 'TIMEOUT', > // 'OUTGOING_MAIL', > // 'MASS_MAILING', > 'LOGIN_ERROR', > // 'ERROR', > // 'CAPTCHA', > // 'RESTRICT_SENDERS', > // 'LOCKOUT', > ); > (lines 41-52) > > and > > $sl_logs = array( > 'SYSTEM:LOG_INFO:LOG_MAIL' => array( > // 'LOGIN' => "Successful webmail login: by %2 (%3) > at %4 on %6: %7", > // 'LOGOUT' => "Webmail logout: by %2 (%3) at %4 on > %6: %7", > // 'TIMEOUT' => "Webmail session timed out: by %2 (%3) > at %4 on %6: %7", > // 'OUTGOING_MAIL' => "Message sent via webmail: by %2 (%3) > at %4 on %6: %7", > // 'MASS_MAILING' => "Possible outgoing spam: by %2 (%3) at > %4 on %6: %7", > // 'LOGIN_ERROR' => "Failed webmail login: by %2 (%3) at %4 > on %6: %7", > // 'ERROR' => "Webmail error: by %2 (%3) at %4 on %6: > %7", > // > // The following correspond to events generated by other plugins: > // > // 'CAPTCHA' => "Webmail CAPTCHA litmus: by %2 (%3) at > %4 on %6: %7", > // 'RESTRICT_SENDERS' => "Failed recipient limit: by %2 (%3) at > %4 on %6: %7", > // 'LOCKOUT' => "Webmail login page abuse: by %2 (%3) > at %4 on %6: %7", > ), > 'SYSTEM:LOG_ALERT:LOG_AUTH' => array( > // 'MASS_MAILING' => "Possible outgoing spam: by %2 (%3) at %4 > on %6: %7", > ), > 'FILE' => array( > 'LOGIN' => "%6 [%1] %2 (%3) from %4: %7\n", > 'LOGOUT' => "%6 [%1] %2 (%3) from %4: %7\n", > 'TIMEOUT' => "%6 [%1] %2 (%3) from %4: %7\n", > // 'MASS_MAILING' => "%6 [%1] %2 (%3) from %4: %7\n", > 'LOGIN_ERROR' => "%6 [%1] %2 (%3) from %4: %7\n", > // 'LOGIN_ERROR' => "%6 [INVALID] %2 (%3) from %4: %7\n", > // 'ERROR' => "%6 [%1] %2 (%3) from %4: %7\n", > ), > 'SQL' => array( > // 'LOGIN' => 'LOGIN', > // 'LOGOUT' => 'LOGOUT', > // 'TIMEOUT' => 'TIMEOUT', > // 'MASS_MAILING' => 'MASS_MAILING', > // 'LOGIN_ERROR' => 'INVALID', > // 'ERROR' => 'ERROR', > ), > ); > (lines 126-162) > > >From what I can tell, "ERROR" is commented out in both sections. Is > there another section I've missed, where this might be set? Does look to be commented out everywhere. This likely means there is another configuration file that is being read. Use find or locate to help figure it out. Another fast way to see if a file is being used -- only on non-production, low volume or private servers -- is to introduce a PHP syntax error into the configuration file and see if it causes SquirrelMail to malfunction (watch your logs too). RedHat does move its configuration files around... -- Paul Lesniewski SquirrelMail Team Please support Open Source Software by donating to SquirrelMail! http://squirrelmail.org/donate_paul_lesniewski.php |