• I turned on my debug log today right away it filled up with thousands upon thousands of the following :

    PHP Notice: Undefined index: HTTP_USER_AGENT in /home/lancast/public_html/wp-content/plugins/twitter-facebook-google-plusone-share/tf_display.php on line 432

    And again on lines 434, 436, 438, 440, 442, 444, 446 and 448

    I’m guessing something is crawling my site that does not have it’s user agent set.

    It is a VERY easy fix, all you have to do is put

    if(empty($_SERVER['HTTP_USER_AGENT']))
         return false;

    Above line 432.

    I have completed this update on my server, but it would be nice if it didn’t break again when I updated! Thank you!

    https://www.ads-software.com/plugins/twitter-facebook-google-plusone-share/

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