Support » Plugin: Sensei LMS » Error on install in_array()

  • Resolved Patrick Thagaard

    (@patrickthagaard)


    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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Dan

    (@drawmyface)

    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

    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 Contributor Dan

    (@drawmyface)

    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

    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 Contributor Dan

    (@drawmyface)

    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

    (@donnapep)

    Closing as no response from OP in over 2 weeks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.