Fixing ‘Choices’ activity in Moodle 1.9
Posted by michael.stahlman on 29 May 2008 at 09:34 pm | Tagged as: Website
I recently had to fix an installation of Moodle 1.9. The Choices activity provides a question and a set of answers to select from for the students. Unfortunately, version 1.9 was available in Fantastico and the options were not showing in any of the Choices activities. There is a new version of Moodle available, which it may be fixed, but for this version, the file mod/choice/lib.php must be modified to get it working. There is a line like this:
if (isset($text) && isset($allresponses[$optionid])) {
This line must be changed to this:
if (isset($text)) {
I’m sure this is probably fixed in the new versions, but for people who use Fantastico through Bluehost, this must be done for Choices to work.