Support » Plugin: BBQ: Block Bad Queries » Some Undefined index notices

  • Resolved falopiuss


    1. In debug.log file there are some notices related to this plugin:

    PHP Notice: Undefined index: HTTP_USER_AGENT in /home/userid/public_html/wp-content/plugins/block-bad-queries/block-bad-queries.php on line 26

    Does it means it is suffering some kind of attack, or does some code needs to be debugged?
    If all is OK, perhaps the code may be improved to put away these notices?

    2. I’ve included the 5G BLACKILST code to my .htaccess params (this .htaccess file is located one level up the root directory, in /home/userid/). Makes it sense to have the 5G code and the plugin working simultaneously?

    Thanks for this so useful plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Starr


    In PHP, there are Notices, Warnings, Fatal Errors, etc. If you get a Fatal Error, then something is seriously wrong and needs fixed asap. If you get a warning, that should be fixed too, although perhaps not with the same intense urgency. What you have shown here is a Notice, which is more or less information that says something could be improved with the script, at some point in the future, in order to better coincide with PHP specifications. I.e., it’s a “Notice”.

    1) That said, thank you for pointing out this Notice – it will be addressed in the next version. In the meantime, and to respond to your first question, no, a PHP Notice does not mean you are “suffering some kind of attack” or anything of the sort.

    2) Yes, it does make sense to use both BBQ and 5G, although there is some overlap in which bad requests are blocked.


    Yes, I knew the difference between Notice and Fatal Error. Anyway, the explanation is a very useful reminder.
    I apologize for my overly strict notion of a clean debug.log file.
    Thanks very much for your help and your kind attention!
    (and sorry for my poor english)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Some Undefined index notices’ is closed to new replies.