Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter joshcummingsdesign

    (@joshcummingsdesign)

    It has been a month and we’re still seeing this issue. Is this plugin still being maintained?

    BigEd

    (@bigeddev)

    We are seeing this same error:

    PHP Warning: Undefined array key "HTTP_USER_AGENT" in wp-content/plugins/zapier/zapier.php on line 176

    We could do with getting a resolution for this even though its a warning it’s filling up the logs.

    Many thanks.

    • This reply was modified 2 years ago by BigEd.
    luxman

    (@luxman)

    I’m seeing the same error every time a page loads… Filling up the log.

    Anyone have any suggestions on this ?

    Its still filling up the logs and could do with getting a resolution.

    The solution to fix the error is to change the line 176 in plugins/zapier/zapier.php FROM:

    $is_zapier_request = $_SERVER['HTTP_USER_AGENT'] === 'Zapier' && isset($_SERVER['HTTP_X_ZAPIER_AUTH']);

    TO:

    $is_zapier_request = isset($_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_USER_AGENT'] === 'Zapier' && isset($_SERVER['HTTP_X_ZAPIER_AUTH']);

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