Support » Plugin: Jetpack - WP Security, Backup, Speed, & Growth » Undefined index: REQUEST_METHOD

  • Resolved IMMAGIT


    Please validate the variable’s index to fix this error:

    PHP Notice: Undefined index: REQUEST_METHOD in /…./plugins/jetpack/modules/widget-visibility/widget-conditions.php on line 87

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Bruce (a11n)


    Happiness Engineer

    Hi @immagitoficial

    Could you please post your site URL here so that we can have a look?

    If you want it to remain private, you can also contact us via this contact form. If you choose to reach out directly, please include a link to this thread.


    Thread Starter IMMAGIT


    Hi @bruceallen, we already solved it by placing this line of code:

    if ( !isset($_SERVER[‘REQUEST_METHOD’]) ) $_SERVER[‘REQUEST_METHOD’] = “”;

    We only report the incident for continuous improvement of the plugin and we find ourselves in the need to manually modify it again.

    Kind regards.

    Plugin Support Daniel (a11n)


    Hi there,

    Thanks for catching that and sharing your workaround. Note that this is the sort of thing that would be great to post on the public GitHub repository while referencing the relevant line/file:

    I’m marking this thread as resolved in any case.

    Kind regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined index: REQUEST_METHOD’ is closed to new replies.