Support » Theme: Astra » 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)
  • Hi @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.

    I am sure this would help.


Viewing 1 replies (of 1 total)
  • The topic ‘HTTP_USER_AGENT Notice’ is closed to new replies.