Title: PHP Debug log
Last modified: April 9, 2019

---

# PHP Debug log

 *  Resolved [Hubert Rosiński](https://wordpress.org/support/users/hubi10/)
 * (@hubi10)
 * [7 years ago](https://wordpress.org/support/topic/php-debug-log/)
 * 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)

 *  [spottedpaint](https://wordpress.org/support/users/spottedpaint/)
 * (@spottedpaint)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-debug-log/#post-11442097)
 * I have the same problem, I found it was caused for me by urls with double slashes
   like [http://example.com//admin](http://example.com//admin) or [http://example.com//monkey](http://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
    [http://example.com/admin](http://example.com/admin)
   or [http://example.com/monkey](http://example.com/monkey)
 *  Plugin Author [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * (@nicolaskulka)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-debug-log/#post-11458549)
 * 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.

 * ![](https://ps.w.org/wps-hide-login/assets/icon-256x256.png?rev=1820667)
 * [WPS Hide Login](https://wordpress.org/plugins/wps-hide-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wps-hide-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wps-hide-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wps-hide-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wps-hide-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wps-hide-login/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [NicolasKulka](https://wordpress.org/support/users/nicolaskulka/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/php-debug-log/#post-11458549)
 * Status: resolved