• Resolved jennyhp

    (@jennyhp)


    Notice: Undefined index: HTTP_USER_AGENT in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/wp-statistics/includes/classes/class-wp-statistics.php on line 948

    I am getting this regularly. Any advise please?
    Jenny

Viewing 1 replies (of 1 total)
  • Hi jennyhp,
    Thank you for saying this issue, we’ll solve this problem in the next version.

    To Solved temporarily it, open the class-wp-statistics.php file and change line 948 to:

    if ( function_exists( 'getallheaders' ) ) {
    			$user_agent = getallheaders();
    		} elseif ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
    			$user_agent = $_SERVER['HTTP_USER_AGENT'];
    		} else {
    			$user_agent = '';
    		}
Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index: HTTP_USER_AGENT’ is closed to new replies.