Support » Plugin: Cerber Security & Antispam » PHP Notice: Undefined index: REQUEST_METHOD in v5.1

  • Resolved dspaete

    (@dspaete)


    Running wp-cron.php as a CronJob produces the following notices which is really, really annoying:

    PHP Notice: Undefined index: REQUEST_METHOD in …/wp-content/plugins/wp-cerber/wp-cerber.php on line 1247
    PHP Notice: Undefined index: REQUEST_METHOD in …/wp-content/plugins/wp-cerber/wp-cerber.php on line 1256

    This is since version 5.1, PHP 7.1.9. I have now fixed it by checking the existence with isset(). But I would be glad to see it fixed in an upcoming version as well 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gioni

    (@gioni)

    Do you mean running cron from a command line? OK, I will fix it in the next release soon. Thanks for telling me!

    dspaete

    (@dspaete)

    Yes, that’s what I meant. Thank you very much!

    Hi hi,

    this is still an issue in version 5.2

    PHP Notice: Undefined index: REQUEST_METHOD in ./wp-content/plugins/wp-cerber/wp-cerber.php on line 1249
    PHP Notice: Undefined index: REQUEST_METHOD in ./wp-content/plugins/wp-cerber/wp-cerber.php on line 1258

    Plugin Author Gioni

    (@gioni)

    Hi!

    I’m sorry about that. I’ve fixed that in the development version: http://wpcerber.com/development-version/

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.