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 1437Line 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)
Viewing 1 replies (of 1 total)
The topic ‘HTTP_USER_AGENT Notice’ is closed to new replies.
