• Resolved Anonymous User 14978628

    (@anonymized-14978628)


    Hi, I just noticed the following in my debug.log. Not sure what it means though:

    PHP Notice: Undefined index: SERVER_NAME in /stopbadbots/stopbadbots.php on line 43

    PHP Notice: Undefined index: HTTP_USER_AGENT in /stopbadbots/functions/functions.php on line 497

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Bill Minozzi

    (@sminozzi)

    Hi,

    $_SERVER is a PHP super global variable which holds information about headers, paths, and script locations.

    The first one, your server should supply the domain name.

    The second, the user agent.

    You need ask to your hosting company why it is not working.

    Cheers,

    Bill

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Does this mean the plugin isn’t currently working? I’m on litespeed server. Is there any incompatibility with that server?

    Plugin Author Bill Minozzi

    (@sminozzi)

    I think is not incompatibility. I guess your server and PHP install have an issue.
    I suggest to you request to them fix it to avoid problems with all themes and plugins, not only ours.

    Here is the PHP manual:
    https://php.net/manual/en/language.variables.superglobals.php

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Hi, I fixed this by uninstalling and reinstalling plugin. I changed server recently so something must have affected plugin. Thanks

    Plugin Author Bill Minozzi

    (@sminozzi)

    Hi,
    You are welcome.
    Good news.
    Cheers,
    Bill

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Hi, problems returned. Speaking with my host about this they asked if plugin was compatible with php 7.1?

    Plugin Author Bill Minozzi

    (@sminozzi)

    Hi,
    Never tested with php 7.1
    I suggest to you disable the plugin to avoid problems.
    Cheers,
    Bill

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    What php version has this been tested up to?

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