Moodle 3.0.2+ and choice-activity with size-limit -> buggy

Moodle 3.0.2+ and choice-activity with size-limit -> buggy

by Robin Schröder -
Number of replies: 5
Dear community,

we have installed moodle 3.0.2+. Today we wanted to add a choice-activity to a course with a max-limit for every option (group a & group b with a max size of 10 people).

But if a student tries to select an option, he gets the error: the choice could not be saved (error/choice/cannotsubmit).

If we deactivate the max-limit for the options , the choice-activity works fine.

Does anyone knows the issue?

Regards,
Robin



Average of ratings: -
In reply to Robin Schröder

Re: Moodle 3.0.2+ and choice-activity with size-limit -> buggy

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Are a lot of students trying to make the choice at the same time? (meaning perhaps the choice has filled up quickly?) Have you definitely added the number 10 to each of the "limit" fields? I tried on our sandbox site demo.moodle.net and the choice worked correctly, so perhaps you can replicate your activity on there and let us know what you find.

In reply to Mary Cooch

Re: Moodle 3.0.2+ and choice-activity with size-limit -> buggy

by Robin Schröder -

Hi Mary,

thanks for the reply! I can´t reproduce the problem on demo.moodle.net. There is moodle Build  20160111activ, but we use Moodle 3.0.2+ (Build: 20160211).

Maybe there is a difference?


In reply to Mary Cooch

Re: Moodle 3.0.2+ and choice-activity with size-limit -> buggy

by Robin Schröder -

I testet it with one single test-user (role as student) in a test-course. The size-limit was 5. But another limit will cause the error too.

In reply to Robin Schröder

Re: Moodle 3.0.2+ and choice-activity with size-limit -> buggy

by Robin Schröder -

It seems that there is a problem with our MSSQL-CLuster and the lock-API. We have another moodle-instance with a maria-DB and the same code-base and the choice-plugin works fine there.

In reply to Robin Schröder

Re: Moodle 3.0.2+ and choice-activity with size-limit -> buggy

by Robin Schröder -

Solved:

config.php:

$CFG->lock_factory = "auto";

Moodle switches to file_lock_factory here, because MSSQL doesn´t support DB-Locking (?). The apache couldn´t write in the file-systeme because of missing write-permissions.

After we corrected the apache write-permissions the choice-plugin works fine again.

Regards,
Robin