Title: Error on install in_array()
Last modified: September 18, 2019

---

# Error on install in_array()

 *  Resolved [Patrick Thagaard](https://wordpress.org/support/users/patrickthagaard/)
 * (@patrickthagaard)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-install-in_array/)
 * Errors:
    Warning: in_array() expects parameter 2 to be array, null given in /
   home/goodtalk/public_html/wp-content/plugins/sensei-lms/includes/class-sensei-
   modules.php on line 2111
 * Warning: in_array() expects parameter 2 to be array, null given in /home/goodtalk/
   public_html/wp-content/plugins/sensei-lms/includes/class-sensei-modules.php on
   line 2224
 * Just installed it – havent done anything yet.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-on-install-in_array%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Dan (a11n)](https://wordpress.org/support/users/drawmyface/)
 * (@drawmyface)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-install-in_array/#post-11963221)
 * Hi there
 * Can you tell me where you’re seeing those warnings? Can you also confirm your
   PHP version, and what version of Sensei LMS you have installed?
 * Thanks
 *  Thread Starter [Patrick Thagaard](https://wordpress.org/support/users/patrickthagaard/)
 * (@patrickthagaard)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-install-in_array/#post-11981888)
 * Im seeing the PHP warnings at the top of every wordpress page. (had to turn off
   php warnings)
 * PHP version: 7.1.30
    Sensei version: 2.2.0
 * Sorry for the late reply, forgot to turn on email notifications.
 *  Plugin Support [Dan (a11n)](https://wordpress.org/support/users/drawmyface/)
 * (@drawmyface)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-install-in_array/#post-12002359)
 * Ok, the error would suggest some kind of issue with the taxonomies or user roles
   on your site. Have you modified the default user roles at all?
 * It’s also possible that there might be a conflict with one of your current plugins
   or your theme.
 * Try disabling all of your plugins except Sensei LMS. Then try testing again to
   see if the issue persists. If that resolves your issue, you can find what was
   causing it by enabling each plugin one by one while continuing to test.
 * Thanks
 *  Thread Starter [Patrick Thagaard](https://wordpress.org/support/users/patrickthagaard/)
 * (@patrickthagaard)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-install-in_array/#post-12002363)
 * We run Ultimate Member with 2 custom user groups.
 * Currently can’t do staging, so unable to test. But on the last staging I have,
   running only sensei+WC didn’t have any errors.
 * Is there any fix for this? I’d assume ppl running LMS have different user groups.
 *  Plugin Support [Dan (a11n)](https://wordpress.org/support/users/drawmyface/)
 * (@drawmyface)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-on-install-in_array/#post-12002369)
 * It depends what exactly is causing it. If you can provide the exact steps we 
   can take to reproduce the issue on a test site, then we can see if the issue 
   lies in Sensei LMS or elsewhere.
 * Thanks
 *  Plugin Author [Donna Peplinskie (a11n)](https://wordpress.org/support/users/donnapep/)
 * (@donnapep)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-on-install-in_array/#post-12055715)
 * Closing as no response from OP in over 2 weeks.

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

The topic ‘Error on install in_array()’ is closed to new replies.

 * ![](https://ps.w.org/sensei-lms/assets/icon-128x128.gif?rev=2914239)
 * [Sensei LMS - Online Courses, Quizzes, & Learning](https://wordpress.org/plugins/sensei-lms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sensei-lms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sensei-lms/)
 * [Active Topics](https://wordpress.org/support/plugin/sensei-lms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sensei-lms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sensei-lms/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Donna Peplinskie (a11n)](https://wordpress.org/support/users/donnapep/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/error-on-install-in_array/#post-12055715)
 * Status: resolved