Title: [Plugin: Adminimize] Warning in array
Last modified: August 19, 2016

---

# [Plugin: Adminimize] Warning in array

 *  [Naz](https://wordpress.org/support/users/naz/)
 * (@naz)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-adminimize-warning-in-array/)
 * Adminimize seems to work fine in 3.0.4 but when I log in to a different user 
   role this is the error that appears on the top of the screen:
 * > Warning: in_array() [function.in-array]: Wrong datatype for second argument
   > in /home/monthofg/public_html/wp-content/plugins/adminimize/adminimize.php 
   > on line 801

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

 *  [Björn](https://wordpress.org/support/users/bjornsennbrink/)
 * (@bjornsennbrink)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-adminimize-warning-in-array/#post-1841582)
 * I second that warning when making settings on a WP MS site.
 *  Plugin Contributor [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-adminimize-warning-in-array/#post-1841603)
 * Thanks, fix the next version.
 *  [jamesjara](https://wordpress.org/support/users/jamesjara/)
 * (@jamesjara)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-adminimize-warning-in-array/#post-1841622)
 * yeah i have that warning too
 * steps:
    i select a site in multisite mode then i desactive all the plugins then
   i active all the plugins warning
 *  [illpixel](https://wordpress.org/support/users/illpixel/)
 * (@illpixel)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-adminimize-warning-in-array/#post-1841662)
 * Hej There,
    I also have the exact same Problem:
 * Warning: in_array() [function.in-array]: Wrong datatype for second argument in/
   var/www/wp-content/plugins/adminimize/adminimize.php on line 801
 * And I want to use the plugin in a productive environment, means a system sold
   to a client, so I need to remove the error somehow or chacnge the plugin.
 * Are there any solutions that I could apply instantly? Somewhere else in the forum(
   [http://wordpress.org/support/topic/adminimize-died-invalid-argument-supplied-for-foreach?replies=2](http://wordpress.org/support/topic/adminimize-died-invalid-argument-supplied-for-foreach?replies=2))
   I read downgrading works. Is this a recommended solution? When can we expect 
   a fix?
 * Regards and thanks in advance for a quick reply.

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

The topic ‘[Plugin: Adminimize] Warning in array’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/adminimize_000000.svg)
 * [Adminimize](https://wordpress.org/plugins/adminimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adminimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adminimize/)
 * [Active Topics](https://wordpress.org/support/plugin/adminimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adminimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adminimize/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [illpixel](https://wordpress.org/support/users/illpixel/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-adminimize-warning-in-array/#post-1841662)
 * Status: not resolved