Title: PHP_errors.log &#8211; Reveals info about untrapped errors
Last modified: August 31, 2016

---

# PHP_errors.log – Reveals info about untrapped errors

 *  Resolved [IRD-dev](https://wordpress.org/support/users/ird-dev/)
 * (@ird-dev)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php_errorslog-reveals-info-about-untrapped-errors/)
 * Hello. LOVE this plugin and leverage it often.
 * One of my custom scripts had an apparent error that was untrapped by this plugin.
   Whilst looking at the webserver today, via FTP filezilla, I noticed a log under
   wwwroot named “PHP_errors.log” which outlined the error.
 * While this helped, I was dismayed to discover this log which also reveals the
   hosting path on the physical web server:
 * `[29-Mar-2016 17:04:42 UTC] PHP Warning: Missing argument 2 for remove_filter(),
   called in F:\WebSpace\customername\customerdomain.com\wwwroot\wp-content\plugins\
   code-snippets\php\snippet-ops.php(383) : eval()'d code on line 8 and defined 
   in F:\WebSpace\customername\customerdomain.com\wwwroot\wp-includes\plugin.php
   on line 321`
 * My particular issue, while irrelevant to this discussion, was the failure to 
   properly configure the REMOVE_FILTER function (missing a req’d argument).
 * My questions are:
    (1) Why wasn’t that trapped by your plugin? (2) What dictates
   this log (its directory, name, contents)?
 * Thank you!
 * [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [10 years ago](https://wordpress.org/support/topic/php_errorslog-reveals-info-about-untrapped-errors/#post-7220328)
 * The error log is generated by PHP. Your hosting provider would have configured
   for it to be generated and saved in that location – you may want to talk to them
   about changing this to a non-web-accessible location.
 * The error is only a PHP warning, rather than a fatal error, which might explain
   why it was not automatically picked up when saving the snippet.

Viewing 1 replies (of 1 total)

The topic ‘PHP_errors.log – Reveals info about untrapped errors’ is closed to new
replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

## Tags

 * [log](https://wordpress.org/support/topic-tag/log/)
 * [trap](https://wordpress.org/support/topic-tag/trap/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/php_errorslog-reveals-info-about-untrapped-errors/#post-7220328)
 * Status: resolved