Title: Errors with latest WP version
Last modified: June 16, 2020

---

# Errors with latest WP version

 *  [thisisbbc](https://wordpress.org/support/users/thisisbbc/)
 * (@thisisbbc)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/errors-with-latest-wp-version/)
 * Hello there,
 * We were doing some verification with our hosting provider (WPEngine) and it came
   to their attention that PluginOrganizer had some issues with the HTTP_HOST variable.
 * We have added the definition in the wp-config file but it still gives these notices:
 * Notice: Undefined index: HTTP_HOST in /nas/content/live/nationhats/wp-content/
   mu-plugins/PluginOrganizerMU.class.php on line 439
    Notice: Undefined index: 
   HTTP_HOST in /nas/content/live/nationhats/wp-content/mu-plugins/PluginOrganizerMU.
   class.php on line 165

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

 *  [Pratham](https://wordpress.org/support/users/pratham2003/)
 * (@pratham2003)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/errors-with-latest-wp-version/#post-13001926)
 * Defining these in wp-config.php doesn’t make sense.
 * It checks for `$_SERVER['HTTP_HOST']` which doesn’t exist in a CLI environment.(
   I’m assuming these notices occur when running a cron via php cli / wp-cli commands)
 * Plugin developer should check if the $_SERVER[‘HTTP_HOST’] is set before using
   it.
    `if(isset($_SERVER['HTTP_HOST'])) { ... }`
    -  This reply was modified 5 years, 11 months ago by [Pratham](https://wordpress.org/support/users/pratham2003/).
 *  Thread Starter [thisisbbc](https://wordpress.org/support/users/thisisbbc/)
 * (@thisisbbc)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/errors-with-latest-wp-version/#post-13002016)
 * [@pratham2003](https://wordpress.org/support/users/pratham2003/) thanks for your
   input. I meant that WPEngine did add the HTTP_HOST reference but apparently it
   did not fix the issue.
 * I assumed this was done in wp-config but it’s probably at the server level. To
   be honest I’m not sure, we were doing some verification and this came to our 
   attention.
 *  Plugin Author [Jeff Sterup](https://wordpress.org/support/users/foomagoo/)
 * (@foomagoo)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/errors-with-latest-wp-version/#post-13151867)
 * If your server does not set the HTTP_HOST index of the $_SERVER variable then
   this plugin will not work.

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

The topic ‘Errors with latest WP version’ is closed to new replies.

 * ![](https://ps.w.org/plugin-organizer/assets/icon-256x256.png?rev=1786554)
 * [Plugin Organizer](https://wordpress.org/plugins/plugin-organizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/plugin-organizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/plugin-organizer/)
 * [Active Topics](https://wordpress.org/support/plugin/plugin-organizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plugin-organizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plugin-organizer/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jeff Sterup](https://wordpress.org/support/users/foomagoo/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/errors-with-latest-wp-version/#post-13151867)
 * Status: not resolved