Title: PHP Warning: Undefined array key &#8220;path&#8221;
Last modified: October 8, 2022

---

# PHP Warning: Undefined array key “path”

 *  Resolved [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-2/)
 * Hello.
 * Any ideas what this could be? Can i ignore it?
 * [08-Oct-2022 20:36:03 UTC] PHP Warning: Undefined array key “path” in /home/wp-
   content/plugins/wp-simple-firewall/src/lib/src/Controller/Controller.php on line
   562
 * WP 6 latest, PHP 8.0.x
 * Thank you

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

 *  Plugin Author [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * (@paultgoodchild)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-2/#post-16084772)
 * It’s a very strange warning you have. Shield is getting your WP URL (from your
   WP settings) and breaking it up into various parts, such as the hostname, the
   path etc., but the path is completely empty (i.e. null).
 * It’s not going to do you any harm or affect your site in any way – just ensure
   you have set your WordPress to not “display” warnings. We’ll fix this for the
   next release so that you don’t get that warning any longer.
 * Thank you for reporting it!
 * How to not display errors:
    [https://aristath.github.io/blog/wp-hide-php-errors](https://aristath.github.io/blog/wp-hide-php-errors)
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-2/#post-16084959)
 * Ok, still seems strange to have this issue, since my urls and paths are 100% 
   right.
 * I usually do not like to hide things, but to solve them.
 * Are you sure it is ok?
 * Thanks
 *  Plugin Author [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * (@paultgoodchild)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-2/#post-16085107)
 * You’re hiding a warning about something that’s not causing a problem. It’s just
   a PHP warning… it’s not a problem in this case. As I said, we’ll release a fix
   for it in the next version.
 * If you don’t want to hide the warning and prefer it to be displayed to your visitors,
   then you don’t need to, it’s entirely up to yourself.
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-2/#post-16085137)
 * Ok, go it.
 * it is not displayed to visitors, it is going to debug.log.
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-2/#post-16085313)
 * Cpanel treats addon domains as subdomains or the main one. Not real domains.
 * Many times we get probes from bots that try to connect not to the Domain itself
   but to the Cpanel addon domain (addondomain.com.maindomain.com).
 * Could that be it? Maybe it is not an issue with the Shield.
 * just an idea.
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-2/#post-16086791)
 * Please scrap the above “idea” of mine.

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

The topic ‘PHP Warning: Undefined array key “path”’ is closed to new replies.

 * ![](https://ps.w.org/wp-simple-firewall/assets/icon-256x256.png?rev=3054572)
 * [Shield Security – Smart Bot Blocking, Brute-Force Login Protection & File Scanning](https://wordpress.org/plugins/wp-simple-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-simple-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-simple-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-simple-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-simple-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-simple-firewall/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [dimal](https://wordpress.org/support/users/dimalifragis/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-path-2/#post-16086791)
 * Status: resolved