Title: Plugin is changing error log location
Last modified: August 24, 2016

---

# Plugin is changing error log location

 *  Resolved [Matt](https://wordpress.org/support/users/syntax53/)
 * (@syntax53)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-is-changing-error-log-location/)
 * I assume this was accidentally left in on the latest update, but you are changing
   the location of PHP’s error log.
 * Line 26 in ActiveRecord.php:
    `ini_set( 'error_log', WP_CONTENT_DIR . '/debug.
   log' );`
 * p.s. This little mishap wasted an hour of my life trying to figure out why the
   hell PHP wasn’t logging to the error log 😛
 * [https://wordpress.org/plugins/wp-security-audit-log/](https://wordpress.org/plugins/wp-security-audit-log/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [wpwalker](https://wordpress.org/support/users/wpwalker/)
 * (@wpwalker)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-is-changing-error-log-location/#post-5969719)
 * me too! 18 websites. :/
 * Web search finding nothing. Finally figured out it was something in WP Security
   Audit Log when i happened to look at error log in dashboard with (the excellent)
   Error Log Monitor plugin (Oll Korrect), and then looked again after updating 
   wp security audit log v.1.5.0 to 1.5.1 — wups, wrong log file!
 * Was getting ready to grep through wsal files and now Matt has saved me 🙂 thanks!
   Now thanks to ssh/vi, and most of the sites being on one server, i can go comment
   out that bad baby fairly quick. Also this is going to make me start checking 
   all plugins, if they have any ini_sets in them. grrrrrrr.
 * — wpwalker
 *  [wpwalker](https://wordpress.org/support/users/wpwalker/)
 * (@wpwalker)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-is-changing-error-log-location/#post-5969720)
 * Just fyi, the full path to that Bad Boy is, in your plugins folder:
    /wp-security-
   audit-log/classes/DB/ActiveRecord.php line 26
 * — wpwalker
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-is-changing-error-log-location/#post-5969750)
 * Hello all,
 * Sorry for this mishap gents. We did it to troubleshoot some issues but now all
   is sorted. Soon releasing 1.5.2 which will include this fix.
 * Feel free to get in touch should you have any further queries.
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-is-changing-error-log-location/#post-5969813)
 * Hello all,
 * Just fixed this issue in version in 1.5.2, which we just released now. Sorry 
   for the mishap and thanks for reporting the issue.
 *  [wpwalker](https://wordpress.org/support/users/wpwalker/)
 * (@wpwalker)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-is-changing-error-log-location/#post-5969815)
 * Yay WP White Security and thanks!
 * stuff happens 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Plugin is changing error log location’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [wpwalker](https://wordpress.org/support/users/wpwalker/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/plugin-is-changing-error-log-location/#post-5969815)
 * Status: resolved