• acurran

    (@acurran)


    PHP Notice: Undefined index: HTTP_HOST in …./wp-content/mu-plugins/PluginOrganizerMU.class.php on line 165
    PHP Notice: Undefined index: HTTP_HOST in …./mu-plugins/PluginOrganizerMU.class.php on line 439

Viewing 4 replies - 1 through 4 (of 4 total)
  • joy0114

    (@joy0114)

    Hi,

    Just some notices…
    I added this to the beginning of /mu-plugins/PluginOrganizerMU.class.php;

    $_SERVER[‘HTTP_HOST’] = ‘my-domaine.tld’;

    Just a workaround, but hope this helps.

    Plugin Author Jeff Sterup

    (@foomagoo)

    I added a check for HTTP_HOST and had it fall back to SERVER_NAME if that is not set. If neither of those are set then this plugin won’t work for you since your server isn’t identifying what domain is being accessed. If there is another index in your setups $_SERVER variable that identifies the domain being accessed please let me know and I can try and work with that. One of those variables should be set in your environment though.

    Plugin Author Jeff Sterup

    (@foomagoo)

    Please download the latest version (10.1.7) and give that a try.

    Hi Jeff,

    The same issue here. WP toolkit crashed: WP installation damaged. I could not use WP toolkit for this website anymore.

    Due this error:

    Site data was refreshed and stored in cache. The site is now marked as broken since WP Toolkit could not establish connection to it due to the following issue: PHP Warning: Undefined array key “SERVER_NAME” in /var/www/vhosts/xx/wp-content/mu-plugins/PluginOrganizerMU.class.php on line 20 Warning: Undefined array key “SERVER_NAME” in /var/www/vhosts/xx/wp-content/mu-plugins/PluginOrganizerMU.class.php on line 20

    I have added my-domain.com to line 16 of PluginOrganizerMU.class.php

    $this->httpHostName = ”;

    changed to

    $this->httpHostName = ‘my-domain.com’;

    I hope it will work..

    Using 10.1.7 version on a LightSpeed server. Thank you for your time and plugin!

    • This reply was modified 1 year, 10 months ago by gopa4.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin Organizer generating lots of PHP Notices’ is closed to new replies.