Title: Error message in admin menu
Last modified: December 19, 2022

---

# Error message in admin menu

 *  Resolved [Michael Finkenberger](https://wordpress.org/support/users/mitfi/)
 * (@mitfi)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/error-message-in-admin-menu/)
 * Dear support team,
 * I downloaded your plugin today (latest WP-V6.1.1, PHP-V7.4.33).
 * I am getting the following error (plugin seems to work correctly, anyway):
   **
   Warning**: in_array() expects parameter 2 to be array, bool given in …**/wp-content/
   plugins/remove-admin-menus-by-role/remove-admin-menus-by-role.php** on line **
   74**.
 * I hope you can help here.
 * Kind regards
 * Michael

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

 *  Plugin Author [manu225](https://wordpress.org/support/users/manu225/)
 * (@manu225)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-in-admin-menu/#post-16341267)
 * Hi Michael,
 * Thanks for your message.
   It’s only a warning not really an error, so the plugin
   will work correctly.If you want to hide this warning, you can change your configuration:
   [https://aristath.github.io/blog/wp-hide-php-errors](https://aristath.github.io/blog/wp-hide-php-errors)
 * Best regards.
    -  This reply was modified 3 years, 4 months ago by [manu225](https://wordpress.org/support/users/manu225/).
    -  This reply was modified 3 years, 4 months ago by [manu225](https://wordpress.org/support/users/manu225/).
 *  Thread Starter [Michael Finkenberger](https://wordpress.org/support/users/mitfi/)
 * (@mitfi)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-in-admin-menu/#post-16341327)
 * Hi [@manu225](https://wordpress.org/support/users/manu225/),
 * thanks a lot for looking after my support request.
   Of course, I am aware that
   I should have used “warning” instead of “error”.
 * As a plugin author, I typically try everything to avoid warnings unless they 
   are not to be avoided for some reason, since warnings of today may appear to 
   be errors of tomorrow. So far, I was always able to avoid.
 * For the time being, probably due to having a saved configuration, the warning
   has disappeared anyway.
   You moved the status of this request to “resolved”, which
   is still brave.
 * However, I am going to leave it there, as I am only using the free version of
   your plugin, which works fine and indeed I honestly want to thank you for your
   contribution to the WordPress community!
 * Thanks
   Michael
    -  This reply was modified 3 years, 4 months ago by [Michael Finkenberger](https://wordpress.org/support/users/mitfi/).

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

The topic ‘Error message in admin menu’ is closed to new replies.

 * ![](https://ps.w.org/remove-admin-menus-by-role/assets/icon-128x128.png?rev=1351557)
 * [Remove admin menus by role](https://wordpress.org/plugins/remove-admin-menus-by-role/)
 * [Support Threads](https://wordpress.org/support/plugin/remove-admin-menus-by-role/)
 * [Active Topics](https://wordpress.org/support/plugin/remove-admin-menus-by-role/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/remove-admin-menus-by-role/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/remove-admin-menus-by-role/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Michael Finkenberger](https://wordpress.org/support/users/mitfi/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/error-message-in-admin-menu/#post-16341327)
 * Status: resolved