• Hi. Hope all is well.

    We have been getting the following error each time we run any WP-CLI command:

    Notice: Undefined index: HTTP_HOST in \public\wp-content\plugins\breeze\inc\minification\breeze-minify-main.php on line 27

    It’s safe to ignore but it appears at the beginning of each command output so, after many months of seeing it, we’ve decided to report it. We understand this plugin isn’t doing anything in our local environment but we shouldn’t have to deactivate the plugin for this error to go away.

    As a suggestion, it might help if this line was added above line 27 in breeze\inc\minification\breeze-minify-main.php to avoid the error in WP-CLI context:
    if(!isset($_SERVER['HTTPS'])) return;

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index: HTTP_HOST in local environment WP-CLI’ is closed to new replies.