• I have this 3 problem on PHP Debug log:

    [04-Apr-2019 06:42:57 UTC] PHP Notice: Undefined index: path in /home/klient.dhosting.pl/parafiadmo/parafiadmosin.pl/public_html/wp-content/plugins/wps-hide-login/classes/plugin.php on line 432
    [04-Apr-2019 06:42:57 UTC] PHP Notice: Undefined index: path in /home/klient.dhosting.pl/parafiadmo/parafiadmosin.pl/public_html/wp-content/plugins/wps-hide-login/classes/plugin.php on line 441
    [04-Apr-2019 06:42:57 UTC] PHP Notice: Undefined index: path in /home/klient.dhosting.pl/parafiadmo/parafiadmosin.pl/public_html/wp-content/plugins/wps-hide-login/classes/plugin.php on line 449

    On server I have PHP 7.2.6

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem, I found it was caused for me by urls with double slashes like https://example.com//admin or https://example.com//monkey.

    In those circumstances parse_url doesn’t gets confused and doesn’t populate the path key so it produces
    array(1) { ["host"]=> string(6) "monkey" }
    rather than
    array(1) { ["path"]=> string(7) "/monkey" }
    like you might expect.

    I’ve put an extra line in wps-hide-login/classes/plugin.php just under $request = parse_url( $_SERVER[‘REQUEST_URI’] ); in the function plugins_loaded().

    To make sure the path key is always populated.

    
    $request = parse_url( $_SERVER['REQUEST_URI'] );
    if(!isset($request['path'])){
      $request['path'] = '';
    }
    

    parse_url also occurs in other places in that class but they don’t seem to error, I think because in my instance at least those urls get redirected to
    https://example.com/admin or https://example.com/monkey

    Plugin Author NicolasKulka

    (@nicolaskulka)

    This will be fixed in the next version

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Debug log’ is closed to new replies.