WordPress.org

Ready to get started?Download WordPress

Forums

BBQ: Block Bad Queries
[resolved] Some Undefined index notices (3 posts)

  1. falopiuss
    Member
    Posted 1 year ago #

    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!

    http://wordpress.org/extend/plugins/block-bad-queries/

  2. Jeff Starr
    Member
    Plugin Author

    Posted 1 year ago #

    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.

    Cheers!

  3. falopiuss
    Member
    Posted 1 year ago #

    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)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic