Title: WP-CLI errors
Last modified: September 1, 2016

---

# WP-CLI errors

 *  Resolved [JF::IA](https://wordpress.org/support/users/jfacemyer/)
 * (@jfacemyer)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-errors/)
 * I’m getting these errors with everything updated:
 * Notice: Undefined index: SERVER_NAME in /home/vianney/www/shvcamps.com/wp-content/
   plugins/wordfence/lib/wfUtils.php on line 641
    Notice: Undefined index: HTTP_HOST
   in /home/vianney/www/shvcamps.com/wp-content/plugins/wordfence/lib/wfCache.php
   on line 38 Notice: Undefined index: SERVER_NAME in /home/vianney/www/shvcamps.
   com/wp-content/plugins/wordfence/lib/wfCache.php on line 38
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

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

 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-errors/#post-7497920)
 * Hello jfacemyer,
    we have a fix for this in Wordfence 6.1.9 which is just right
   now being released. Please upgrade to the latest version and you should be fine!
 * Let me know how it goes.
 *  Thread Starter [JF::IA](https://wordpress.org/support/users/jfacemyer/)
 * (@jfacemyer)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-errors/#post-7497940)
 * Looks like the update removed the first SERVER_NAME error on line 641, but the
   other two errors from line 38 are still there.
 *  Thread Starter [JF::IA](https://wordpress.org/support/users/jfacemyer/)
 * (@jfacemyer)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-errors/#post-7497941)
 * BTW, thank you for your attention on this! Much appreciated.
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-errors/#post-7497985)
 * Hi jfacemyer,
    I have filed a bug for this. Our internal reference number is 
   FB2091. Just a few quick questions.
 * 1. Are you using Wordfence cache?
    2. When and where are you getting the error?
 * Thanks in advance!
 *  Thread Starter [JF::IA](https://wordpress.org/support/users/jfacemyer/)
 * (@jfacemyer)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-errors/#post-7497991)
 * I’m getting this error whenever I do anything on this particular site (no others)
   with wp-cli.
 * I’m using the 2-3x wf-cache setting on this site. Interestingly, it doesn’t happen
   when I disable it.
 * I’m using NGINX, is there any other info that I can share to help diagnose the
   issue?
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-errors/#post-7497993)
 * I think that’s all we need to know for now. Thanks jfacemyer!

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

The topic ‘WP-CLI errors’ 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](https://wordpress.org/support/topic-tag/php/)
 * [SERVER_NAME](https://wordpress.org/support/topic-tag/server_name/)
 * [undefined index](https://wordpress.org/support/topic-tag/undefined-index/)
 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * 6 replies
 * 2 participants
 * Last reply from: [wfasa](https://wordpress.org/support/users/wfasa/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-errors/#post-7497993)
 * Status: resolved