Title: Undefined array key “HTTP_USER_AGENT”
Last modified: April 8, 2024

---

# Undefined array key “HTTP_USER_AGENT”

 *  Resolved [mattf10](https://wordpress.org/support/users/mattf10/)
 * (@mattf10)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-key-http_user_agent-4/)
 * I raised a ticket months ago: [https://wordpress.org/support/topic/undefined-array-key-http_user_agent-3/](https://wordpress.org/support/topic/undefined-array-key-http_user_agent-3/).
 * The problem still exists and is filling my logs with warnings. It should only
   take seconds to fix. Please do so asap.
 * Thanks

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

 *  [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * (@barsha04)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-key-http_user_agent-4/#post-17562164)
 * Hi
 * Thanks for reaching us,
 * While testing the Himalayas theme with the PHP 8, the errors you mentioned above
   didn’t replicated. Could you please deactivate the third-party activated on your
   end and check if it helps you or not!
 * Also, please provide us with the site url so that it would be easier from our
   end to check and provide you with an appropriate solutions.
 * Regards
 *  Thread Starter [mattf10](https://wordpress.org/support/users/mattf10/)
 * (@mattf10)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-key-http_user_agent-4/#post-17562182)
 * Hi – the problem can be replicated on any NGINX web server. You are trying to
   access a non-standard variable: $_SERVER[‘HTTP_USER_AGENT’]. If you check the
   PHP document: [https://www.php.net/manual/en/reserved.variables.server.php](https://www.php.net/manual/en/reserved.variables.server.php),
   you’ll see that the key you’re calling (HTTP_USER_AGENT) isn’t listed.
 * I use this theme on many sites / many servers that all run NGINX and it’s a problem
   on every site.
 * Adding the ‘isset’ check I mentioned is quick and won’t cause any problems so
   please do so.
 * Thanks
 *  [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * (@shresthauzwal)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/undefined-array-key-http_user_agent-4/#post-17704481)
 * Hi there,
   Sorry for the delay in response,We will test the theme on the NGINX
   server and get back to you accordingly.Regards!
 *  Thread Starter [mattf10](https://wordpress.org/support/users/mattf10/)
 * (@mattf10)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/undefined-array-key-http_user_agent-4/#post-17735110)
 * It appears this was fixed in the latest release (1.3.2). Many thanks.
 *  [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * (@shresthauzwal)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/undefined-array-key-http_user_agent-4/#post-17735241)
 * Yes, we have released the update to fix the issue mentioned. I hope you’ve been
   enjoying our product/service! We value your opinion and would appreciate it if
   you could take a few minutes to leave a review of your experience on Trustpilot.
   Please click this link: [https://www.trustpilot.com/review/themegrill.com](https://www.trustpilot.com/review/themegrill.com),
   and share your thoughts about our support and the Theme.
 * Your feedback helps us improve our product/service and lets others know what 
   to expect when they choose us. I am looking forward to hearing your thoughts!

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

The topic ‘Undefined array key “HTTP_USER_AGENT”’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/himalayas/1.3.5/screenshot.jpg)
 * Himalayas
 * [Support Threads](https://wordpress.org/support/theme/himalayas/)
 * [Active Topics](https://wordpress.org/support/theme/himalayas/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/himalayas/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/himalayas/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/undefined-array-key-http_user_agent-4/#post-17735241)
 * Status: resolved