• Resolved dimal

    (@dimalifragis)


    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

    (@paultgoodchild)

    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

    Thread Starter dimal

    (@dimalifragis)

    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

    (@paultgoodchild)

    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

    (@dimalifragis)

    Ok, go it.

    it is not displayed to visitors, it is going to debug.log.

    Thread Starter dimal

    (@dimalifragis)

    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

    (@dimalifragis)

    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.