• Several times a day, I get that php error in my php log file:

    [07-Nov-2016 20:02:44 UTC] PHP Warning: fnmatch(): Filename exceeds the maximum allowed length of 260 characters in D:\[….]\wp-content\plugins\wordfence\lib\wfUtils.php on line 1105

    I found that, when I get that error line, I have a robot with a very long invalid useragent (sample below)

    The error message is not the good one I think as there is no issue with any filename, but with a too long useragent string.

    UserAgent Sample:
    (Yes, that part [;+Microsoft+Outlook+15.0.4867] is duplicated multiple times!!)

    Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+10.0;+WOW64;+Trident/7.0;+.NET4.0C;+.NET4.0E;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729;+.NET+CLR+3.5.30729;+Tablet+PC+2.0;+MDDCJS;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+Microsoft+Outlook+15.0.4867;+ms-office;+MSOffice+15)

Viewing 1 replies (of 1 total)
  • Hi foxontherock,
    This seems to be related to “Maximum Path Length” limitation issue on Windows, using Wordfence on Windows/IIS isn’t officially supported, please check the plugin operating system requirements.

    However, I didn’t see this duplicated user agents issue before, it would be nice if you can share a screenshot showing some of these entries in “Live Traffic” log.

    Thanks.

    • This reply was modified 8 years, 3 months ago by wfalaa.
Viewing 1 replies (of 1 total)
  • The topic ‘Bug with very long useragent’ is closed to new replies.