• Resolved Joe Cartonia

    (@joemoto)


    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)
Viewing 1 replies (of 1 total)
  • The topic ‘WP-CLI compatibility issue’ is closed to new replies.