Title: fnmatch parameter 3 problem
Last modified: August 31, 2016

---

# fnmatch parameter 3 problem

 *  Resolved [ditad](https://wordpress.org/support/users/ditad/)
 * (@ditad)
 * [10 years ago](https://wordpress.org/support/topic/fnmatch-parameter-3-problem/)
 * My website is slow. I have a lot of PHP warnings in the error logs:
 * fnmatch() expects parameter 3 to be long, string given in ../plugins/wordfence/
   lib/wfUtils.php on line 1037
 * What does this mean?
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [WFMattR](https://wordpress.org/support/users/wfmattr/)
 * (@wfmattr)
 * [10 years ago](https://wordpress.org/support/topic/fnmatch-parameter-3-problem/#post-7287060)
 * Hi,
 * Do you know what version of PHP the site uses? This might be caused by using 
   an older version of PHP — “parameter 3” mentioned in the message is a PHP constant,
   but I’m not sure which version was the first to use it, and if it’s not defined,
   it could cause that message.
 * If you’re not able to update PHP (ideally to 5.5 or 5.6), you should be able 
   to prevent this message by removing any browser blocking on the Advanced Blocking
   page on the Wordfence menu. (Browser blocking and hostname blocking can cause
   slower response, depending on your server.)
 * -Matt R
 *  Thread Starter [ditad](https://wordpress.org/support/users/ditad/)
 * (@ditad)
 * [10 years ago](https://wordpress.org/support/topic/fnmatch-parameter-3-problem/#post-7287234)
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘fnmatch parameter 3 problem’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ditad](https://wordpress.org/support/users/ditad/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/fnmatch-parameter-3-problem/#post-7287234)
 * Status: resolved