Title: Undefined index: HTTP_USER_AGENT
Last modified: April 20, 2022

---

# Undefined index: HTTP_USER_AGENT

 *  [joshcummingsdesign](https://wordpress.org/support/users/joshcummingsdesign/)
 * (@joshcummingsdesign)
 * [4 years ago](https://wordpress.org/support/topic/undefined-index-http_user_agent-20/)
 * Plugin throws an unhandled exception:
 * Undefined index: HTTP_USER_AGENT
 * Line 176 of zapier.php
 * Please check the index is set before using it.
 * Here is the issue in Sentry:
    [https://sentry.io/share/issue/04d8c490397b40aaaa9d39d98b43cc1d/](https://sentry.io/share/issue/04d8c490397b40aaaa9d39d98b43cc1d/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [joshcummingsdesign](https://wordpress.org/support/users/joshcummingsdesign/)
 * (@joshcummingsdesign)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/undefined-index-http_user_agent-20/#post-15775715)
 * It has been a month and we’re still seeing this issue. Is this plugin still being
   maintained?
 *  [BigEd](https://wordpress.org/support/users/bigeddev/)
 * (@bigeddev)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/undefined-index-http_user_agent-20/#post-16240868)
 * 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 3 years, 5 months ago by [BigEd](https://wordpress.org/support/users/bigeddev/).
 *  [luxman](https://wordpress.org/support/users/luxman/)
 * (@luxman)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/undefined-index-http_user_agent-20/#post-16241581)
 * I’m seeing the same error every time a page loads… Filling up the log.
 *  [BigEd](https://wordpress.org/support/users/bigeddev/)
 * (@bigeddev)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/undefined-index-http_user_agent-20/#post-16744160)
 * Anyone have any suggestions on this ?
 * Its still filling up the logs and could do with getting a resolution.
 *  [Wasilij](https://wordpress.org/support/users/wasilij/)
 * (@wasilij)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-http_user_agent-20/#post-17009445)
 * 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.

 * ![](https://ps.w.org/zapier/assets/icon.svg?rev=3043272)
 * [Zapier for WordPress](https://wordpress.org/plugins/zapier/)
 * [Support Threads](https://wordpress.org/support/plugin/zapier/)
 * [Active Topics](https://wordpress.org/support/plugin/zapier/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zapier/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zapier/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Wasilij](https://wordpress.org/support/users/wasilij/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-http_user_agent-20/#post-17009445)
 * Status: not resolved