Title: WP-CLI compatibility issue
Last modified: December 11, 2018

---

# WP-CLI compatibility issue

 *  Resolved [Joe Cartonia](https://wordpress.org/support/users/joemoto/)
 * (@joemoto)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wp-cli-compatibility-issue/)
 * Using swift-performance-lite 2.0.
 * When using WP-CLI comamnds, all I get are the following PHP notices, a user list,
   and no regular response:
 *     ```
       Notice: Undefined index: HTTP_HOST in /home/user/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 400
       Notice: Undefined index: HTTP_HOST in /home/user/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 404
       +----+--------------+------------------+-----------------------+---------------------+---------------+
       | ID | user_login   | display_name     | user_email            | user_registered     | roles         |
       +----+--------------+------------------+-----------------------+---------------------+---------------+
       REDACTED
       +----+--------------+------------------+-----------------------+---------------------+---------------+
       ```
   
 * I deactivate the plugin and the WP-CLI functionality returns.
 * I tried reinstalling the plugin. On initial activation using WP-CLI, I see:
 *     ```
       Notice: Undefined index: HTTP_HOST in /home/user/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 400
       Notice: Undefined index: HTTP_HOST in /home/user/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 404
       Notice: Undefined index: HTTP_HOST in /home/user/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 1230
       Notice: Undefined index: HTTP_HOST in /home/user/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 1211
       Notice: Undefined index: HTTP_HOST in /home/user/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 1267
       Notice: Undefined index: HTTP_HOST in /home/user/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 1276
       Notice: Undefined property: Exception::$getMessage in /home/user/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 1069
       Plugin 'swift-performance-lite' activated.
       Success: Activated 1 of 1 plugins.
       Notice: Undefined index: HTTP_HOST in /home/user/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 1283
       Notice: Undefined index: HTTP_HOST in /home/user/public_html/wp-content/plugins/swift-performance-lite/performance.php on line 1291
       ```
   
 * Subsequent WP-CLI commands show the initial behavior above; the 2 notices, but
   now a plugin list.

Viewing 1 replies (of 1 total)

 *  Plugin Author [swte](https://wordpress.org/support/users/swte/)
 * (@swte)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wp-cli-compatibility-issue/#post-10977080)
 * Thank you for reporting this issue, we are going to fix it in next update

Viewing 1 replies (of 1 total)

The topic ‘WP-CLI compatibility issue’ is closed to new replies.

 * ![](https://ps.w.org/swift-performance-lite/assets/icon-256x256.jpg?rev=2388229)
 * [Swift Performance Lite](https://wordpress.org/plugins/swift-performance-lite/)
 * [Support Threads](https://wordpress.org/support/plugin/swift-performance-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/swift-performance-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/swift-performance-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/swift-performance-lite/reviews/)

## Tags

 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * 1 reply
 * 2 participants
 * Last reply from: [swte](https://wordpress.org/support/users/swte/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/wp-cli-compatibility-issue/#post-10977080)
 * Status: resolved