Title: HTTP_USER_AGENT Notice
Last modified: June 1, 2019

---

# HTTP_USER_AGENT Notice

 *  [laymonk](https://wordpress.org/support/users/laymonk/)
 * (@laymonk)
 * [7 years ago](https://wordpress.org/support/topic/http_user_agent-notice/)
 * Hi,
 * I was trying to download my site via httrack, and I get the following error in
   multiple pages:
 * `Notice: Undefined index: HTTP_USER_AGENT in /path/to/docroot/wp-content/themes/
   astra/inc/extras.php on line 1437`
 * Line 1437 is:
 * `$ua = htmlentities( $_SERVER['HTTP_USER_AGENT'], ENT_QUOTES, 'UTF-8' );`
 * It seems like just a simple case of trying to user HTTP_USER_AGENT without testing
   for it. In my httrack, I do specify a user agent, and I am not sure why astra
   doesn’t see it. But in any case, this is a simple fix that is right to apply.

Viewing 1 replies (of 1 total)

 *  [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [7 years ago](https://wordpress.org/support/topic/http_user_agent-notice/#post-11598438)
 * Hi [@laymonk](https://wordpress.org/support/users/laymonk/) ,
 * Thanks for reporting this issue. We have fixed the problem on our side and would
   release the fix in the upcoming update of our theme.
 * But, if you wish to check out the patched version then you can download our development
   version of our theme from [here](https://github.com/brainstormforce/astra/tree/undefined-index-http_user_agent-fix).
 * I am sure this would help.
 * Regards,
    Deepak

Viewing 1 replies (of 1 total)

The topic ‘HTTP_USER_AGENT Notice’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/http_user_agent-notice/#post-11598438)
 * Status: not resolved