Support » Plugin: Force HTTPS (SSL Redirect & Fix Insecure Content) » Undefined index: HTTP_HOST

  • $ wp –debug
    Debug (bootstrap): Using default global config: /usr/local/wp/config.yml (0.422s)
    Debug (bootstrap): No project config found (0.423s)
    Debug (bootstrap): argv: /usr/local/wp/bin/../php/boot-fs.php –debug (0.423s)
    Debug (commandfactory): No doc comment for autoptimize. (0.674s)
    PHP Notice: Undefined index: HTTP_HOST in /home/me/example.com/wp-content/plugins/force-https-littlebizzy/core/redirect.php on line 91
    Warning: Some code is trying to do a URL redirect. Backtrace:
    #0 WP_CLI\Utils\wp_redirect_handler(https://)
    #1 call_user_func_array(WP_CLI\Utils\wp_redirect_handler, Array ([0] => https://))

Viewing 1 replies (of 1 total)
  • deltafactory

    (@deltafactory)

    Looks like the plugin needs to account for execution from the command line.

    I’ll see if I can submit a patch…

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index: HTTP_HOST’ is closed to new replies.