Title: Undefined array key &#8220;HTTP_HOST&#8221;
Last modified: October 13, 2022

---

# Undefined array key “HTTP_HOST”

 *  Resolved [fondashci](https://wordpress.org/support/users/fondashci/)
 * (@fondashci)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-2/)
 * Type: PHP Warning
    Message: Undefined array key “HTTP_HOST” In: /wp-content/plugins/
   defender-security/src/controller/mask-login.php on line 183
 *  $current_url = set_url_scheme( ‘[http://&#8217](http://&#8217); . $_SERVER[‘
   HTTP_HOST’] . $_SERVER[‘REQUEST_URI’] );
 * is something can i fix ?
    is it wrong ? can you help about that error ?

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

 *  Plugin Support [Jair – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport15/)
 * (@wpmudevsupport15)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-2/#post-16095593)
 * Hi [@fondashci](https://wordpress.org/support/users/fondashci/),
 * I hope you are doing well today!
 * Please check if your PHP version is above 7.2 or greater as Defender v3.0 and
   above requires PHP 7.2 or above. We also recommend that the PHP version on your
   server be at least 7.4.
 * [https://wpmudev.com/docs/getting-started/wpmu-dev-minimum-requirements/#defender-v3-and-above](https://wpmudev.com/docs/getting-started/wpmu-dev-minimum-requirements/#defender-v3-and-above)
 * Please also check if you have any additional lines added to your wp-config.php
   file.
 * Kind regards,
    Zafer
 *  Thread Starter [fondashci](https://wordpress.org/support/users/fondashci/)
 * (@fondashci)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-2/#post-16095630)
 * hi Zater
    i have php 8.1 now
 * how to check that?
    Please also check if you have any additional lines added 
   to your wp-config.php file actualy i can see only that as extra
 *     ```
       //Begin Really Simple SSL session cookie settings
       @ini_set('session.cookie_httponly', true);
       @ini_set('session.cookie_secure', true);
       @ini_set('session.use_only_cookies', true);
       //END Really Simple SSL
       ```
   
 *  Plugin Support [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-2/#post-16101546)
 * Hi [@fondashci](https://wordpress.org/support/users/fondashci/),
 * Can you please try temporarily removing the mentioned code and check if that 
   resolves the issue?
 * If the issue persists, please perform a complete conflict test to rule out the
   possibility of a conflict issue. The following flowchart can help you with the
   test process: [https://wpmudev.com/wp-content/uploads/2015/09/Support-Process-Support-Process.gif](https://wpmudev.com/wp-content/uploads/2015/09/Support-Process-Support-Process.gif)
 * If this is a live website with traffic, please perform the test using a staging
   website. A staging website is a copy of your live website in a new folder on 
   the same server using a separate database.
 * Please let us know the result.
 * Kind Regards,
    Nebu John
 *  Thread Starter [fondashci](https://wordpress.org/support/users/fondashci/)
 * (@fondashci)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-2/#post-16105564)
 * i did
    and i will let you know thank you
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-2/#post-16138937)
 * Hi [@fondashci](https://wordpress.org/support/users/fondashci/),
 * Since we haven’t heard from you for a while. I’ll mark this thread as resolved
   for now. Please feel free to re-open the thread if you need further assistance.
 * Best Regards
    Nithin

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

The topic ‘Undefined array key “HTTP_HOST”’ is closed to new replies.

 * ![](https://ps.w.org/defender-security/assets/icon-256x256.gif?rev=3435930)
 * [Defender Security - Malware Scanner, Login Security & Firewall](https://wordpress.org/plugins/defender-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/defender-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/defender-security/)
 * [Active Topics](https://wordpress.org/support/plugin/defender-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/defender-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/defender-security/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 5 replies
 * 4 participants
 * Last reply from: [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-http_host-2/#post-16138937)
 * Status: resolved