Title: PHP error log notices
Last modified: August 21, 2016

---

# PHP error log notices

 *  Resolved [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-error-log-notices/)
 * Hi there,
 * Developer of [Ultimate Tinymce](http://wordpress.org/plugins/ultimate-tinymce/)
   here.
 * One of my clients reported some excessive error log files. After digging around,
   I found some of them are generated by your fantastic plugin.
 * Here is a snippet of the error logs:
 *     ```
       [14-Sep-2013 03:57:13 America/Kentucky/Louisville] PHP Notice:  Undefined index: HTTP_USER_AGENT in /home/XXXX/public_html/wp-content/plugins/wordfence/lib/wfLog.php on line 486
       [14-Sep-2013 03:57:13 America/Kentucky/Louisville] PHP Notice:  Undefined index: HTTP_USER_AGENT in /home/XXXX/public_html/wp-content/plugins/wordfence/lib/wfCrawl.php on line 74
       [14-Sep-2013 03:57:13 America/Kentucky/Louisville] PHP Notice:  Undefined index: HTTP_USER_AGENT in /home/XXXX/public_html/wp-content/plugins/wordfence/lib/wfLog.php on line 107
       ```
   
 * It seems to repeat that block of notices over and over again.
 * I am assuming it has to do with the user agent not being set (or is empty) when
   certain browsers are viewing the page.
 * Normally I would disregard such notices… but this error log fills up FAST! It
   was around 72 megs when I found it. After deleting, it was back to two megs within
   a couple hours.
 * I’m going to dig around; but I thought I might bring it to your attention.
 * Again, awesome plugin!
 * [http://wordpress.org/plugins/wordfence/](http://wordpress.org/plugins/wordfence/)

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

 *  Thread Starter [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/php-error-log-notices/#post-4127424)
 * Yep.
 * First checking to make sure the HTTP_USER_AGENT is not empty suppresses the PHP
   notices.
 * It might be of interest to incorporate this into your core.
 * Thank you!
 *  Plugin Author [Mark Maunder](https://wordpress.org/support/users/mmaunder/)
 * (@mmaunder)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-error-log-notices/#post-4127559)
 * Thanks Josh, I’ve incorporated your suggested fixes and caught a few other instances
   where we’re not doing that check, so this will be incorporated into the next 
   release out shortly.
 * Regards,
 * Mark.
 *  Thread Starter [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-error-log-notices/#post-4127561)
 * Thanks Mark!
 * Personally, I haven’t used it… but you have a donation coming from me anyways
   just for being an awesome developer and maintainer!
 * Keep up the great work!
 *  Plugin Author [Mark Maunder](https://wordpress.org/support/users/mmaunder/)
 * (@mmaunder)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-error-log-notices/#post-4127562)
 * Thanks Josh. Always a pleasure.

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

The topic ‘PHP error log notices’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [PHP Notice](https://wordpress.org/support/topic-tag/php-notice/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mark Maunder](https://wordpress.org/support/users/mmaunder/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/php-error-log-notices/#post-4127562)
 * Status: resolved