• Resolved mwsat

    (@mwsat)


    We get tons of this PHP Notice in our log:

    PHP Notice: Undefined index: HTTP_USER_AGENT in {web server root directory}/wp-content/plugins/file-away/lib/cls/class.fileaway_definitions.php on line 110

    … apparently tons of requests are not providing a user agent in the header – but this could be sorted out the the File Away code I hope.

    Thanks,
    Michael

    https://www.ads-software.com/plugins/file-away/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author thomstark

    (@thomstark)

    Yeah, change line 110 of /wp-content/plugins/file-away/lib/cls/class.fileaway_definitions.php

    from this:

    $agent = $_SERVER['HTTP_USER_AGENT'];

    to this:

    $agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';

    Thread Starter mwsat

    (@mwsat)

    Ok that works, the log entries are gone.

    Will this be added to a next version of the plugin?

    Plugin Author thomstark

    (@thomstark)

    Yes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined index: HTTP_USER_AGENT’ is closed to new replies.