Title: PHP Notice
Last modified: August 31, 2016

---

# PHP Notice

 *  Resolved [sasserp01](https://wordpress.org/support/users/sasserp01/)
 * (@sasserp01)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-notice-76/)
 * Hello,
 * I’m getting a PHP notice everytime a cron job runs on my server. Wordfence is
   installed and a PHP cron runs every so often to keep an inventory database updated.
 * The PHP warning that I’m getting is….
 * `PHP Notice: Undefined index: SERVER_NAME in /fullpath/web/content/wp-content/
   plugins/wordfence/lib/wfUtils.php on line 641`
 * Any thoughts on how to resolve this??
 * Thanks much and have a great day.
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

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

 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-notice-76/#post-7377946)
 * Hello sasserp01,
    We have a bug filed for this. Our internal case number is FB938.
   I can’t tell you exactly when it will be released but I’ll try to get back to
   you when it’s fixed.
 *  [Dan Norris](https://wordpress.org/support/users/daaaan/)
 * (@daaaan)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-notice-76/#post-7378156)
 * Glad to see it’s not just me – looking forward to the patch.
    Thank you in advance!
 * Cheers,
    Dan
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-notice-76/#post-7378196)
 * Hello Dan!
    A fix is on the way in one of the upcoming releases. However, I just
   wanted to add note here that if you run wp-cron with wget/curl instead you will
   not get this error message. Running it with wget/curl is a bit more in line with
   how WordPress works too so unless you have a particular reason for not doing 
   it that way I would recommend it.

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

The topic ‘PHP Notice’ 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/)

 * 3 replies
 * 3 participants
 * Last reply from: [wfasa](https://wordpress.org/support/users/wfasa/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/php-notice-76/#post-7378196)
 * Status: resolved