• Resolved haidoro

    (@haidoro)


    hello.
    After upgrading from an SENSEI LMS 3.15.2. to version 4.6.1
    I don’t see any tests.
    It will be the same even if you create a new quiz.
    And I’m getting a warning.

    Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array in /home/startlab/startlab-classroom.com/public_html/ml/wp-content/plugins/sensei-lms/includes/class-sensei-lesson.php on line 3618

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Deric (a11n)

    (@dericleeyy)

    Hi @haidoro ,

    We currently have a known bug in Sensei, where -1 is set as the default value for Number of Questions in the quiz. This is being tracked here:
    https://github.com/Automattic/sensei/issues/5453

    A fix has been developed and will be release with 4.6.2. Meanwhile, you can get the quiz working by updating the Number of Questions field, part of the quiz settings.

    Thread Starter haidoro

    (@haidoro)

    I was able to fix it with an update
    Thank you

    Hi @haidoro

    Yes, the update was released yesterday, and it contained a fix for the issue you were bumping into.

    Thanks for letting us know that quizzes are now working correctly.

    Have a nice day!
    Alba

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: array_rand():’ is closed to new replies.