Archive for category eLearning

Moodle “Error enrolling into (course name) as a student”

If you utilize the upload feature in Moodle 1.9.3 to enroll students into a course then you may have come across an error message which states something similar to “Error enrolling into (course name) as a student.” Although not a serious error it will cause a variety of issues for your Moodle system. After troubleshooting the issue I’ve found that it comes from trying to enroll a student/teacher/admin, etc into a course which has an enrollment length of “unlimited”.

There are a two ways I know of to handle this. First you could set all of your courses in Moodle to have an enrollment period of 365 days or less. This could however pose problems for larger systems with many users. You wouldn’t want to have to re-enroll, and track a large set of users.

The better solution is to make a code change to the upload code on your Moodle system. In the uploaduser.php file in the /admin/ directory of your Moodle installation. Somewhere around lines #660 you’ll want to make these code changes:

if ($courseit->enrolperiod) {
$timestart = time();
$timeend = ($oldtimeend-$timestart) + $courseit->enrolperiod + $timestart;
}

if($timestart == “”){
$timestart = time();
}

if($timeend == “”){
$timeend = (time()+630720000);
}

You can’t have no unenroll time for Moodle uploads, so what this code change will do is set the un-enroll period to be 10 years from the date of upload. Please contact me if you have any questions about the code.

Please remember that if you do choose to upgrade your Moodle release that this change may be overwritten. So I generally note files which I’ve changed code on, and be sure to either copy those over after an upgrade, or make similar changes to the new Moodle release files.

, , , ,

No Comments

Moodle error – “Could not find a scorm course here”

While working on transfering some of our eLearning courses onto our new Moodle deployment, I came across an error which took me a little while to figure out. After posting a new course I received this error message on the course launch page where the course SCORM menu should have been, “Could not find a scorm course here”.

You will receive this error message if you have the course visibility set to Hide in the SCORM/AICC settings of the course.

To fix the issue:

  • Log into your Moodle site as the administrator.
  • Navigate to the administrator section.
  • Select Courses->Add/edit courses, then click on the course you want to edit.
  • Once at the course page, click the Turn editing on button.
  • Click the small Update icon at the end of the course name.
  • When the Editing SCORM/AICC page loads, scroll to the bottom of the page and change the Visible drop-down from Hide to Show, in the Common module settings section.couldnotfindscorm
  • Click the Save and return to course button.

You should no longer receive the error.

, , ,

No Comments