Title: Error on 404 pages
Last modified: August 21, 2016

---

# Error on 404 pages

 *  Resolved [WordMonkey25](https://wordpress.org/support/users/wordmonkey25/)
 * (@wordmonkey25)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-on-404-pages/)
 * I’m getting the error below displayed on my site anytime a 404 error is triggered.
 * Warning: in_array() expects parameter 2 to be array, string given in /site/wp-
   content/plugins/better-wp-security/modules/free/four-oh-four/class-itsec-fou-
   oh-four.php on line 32
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

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

 *  Thread Starter [WordMonkey25](https://wordpress.org/support/users/wordmonkey25/)
 * (@wordmonkey25)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-on-404-pages/#post-4793276)
 * Any idea what is causing this?
 *  Thread Starter [WordMonkey25](https://wordpress.org/support/users/wordmonkey25/)
 * (@wordmonkey25)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-on-404-pages/#post-4793300)
 * bump
 *  Thread Starter [WordMonkey25](https://wordpress.org/support/users/wordmonkey25/)
 * (@wordmonkey25)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-on-404-pages/#post-4793322)
 * No one has any thoughts on how to fix this permanently? Don’t want to just edit
   the code and have it come back on every update…
 *  Thread Starter [WordMonkey25](https://wordpress.org/support/users/wordmonkey25/)
 * (@wordmonkey25)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-on-404-pages/#post-4793331)
 * The problem is defiantly with the plugin. If I deactivate it the error message
   on 404 pages goes away.
 *  Thread Starter [WordMonkey25](https://wordpress.org/support/users/wordmonkey25/)
 * (@wordmonkey25)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-on-404-pages/#post-4793337)
 * This is still not fixed in the update 4.0.23 released today.
 *  Thread Starter [WordMonkey25](https://wordpress.org/support/users/wordmonkey25/)
 * (@wordmonkey25)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-on-404-pages/#post-4793342)
 * Here is the line in question
 * `if ( in_array( $uri[0], $this->settings['white_list'] ) === false ) {`
 * What can be changed in this line to fix the error?
 *  [iThemes Support](https://wordpress.org/support/users/ithemes-support/)
 * (@ithemes-support)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-on-404-pages/#post-4793347)
 * The issue has been fixed in 4.0.25. Please update and let us know if you have
   further issues. Could you also post what you had as the value for your whitelist
   to [http://ithemes.com/security/bugs/](http://ithemes.com/security/bugs/). We
   would be curious to find out just what setting there was leading to the issue.
 *  Thread Starter [WordMonkey25](https://wordpress.org/support/users/wordmonkey25/)
 * (@wordmonkey25)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/error-on-404-pages/#post-4793350)
 * I apologize but unfortunately I’ve already downgraded and will be waiting for
   a bit to install the latest version.
 * However, I checked a backup and the whitelist was blank.

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

The topic ‘Error on 404 pages’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [WordMonkey25](https://wordpress.org/support/users/wordmonkey25/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/error-on-404-pages/#post-4793350)
 * Status: resolved