Welcome to: Moodle @ St Vincents

http://localhost/ -> moodle.php

Moodle is a VLE: Virtual Learning Environment, which has been developed with a "social constructionist" framework for education.

This page will be looking at Moodle 2.0, as the stable version was released in November 2010, and I had be playing with Moodle 2.0 since its βeta release in Summer 2010.

Moodle Docs

Docs for managing a moodle 2 site

Moodle Upgrades

We are currently running Moodle version: No longer available

Moodle 2.1 had an issue with Custom menu's not rendering correctly: MDL-28521

The upgrade to Moodle 2.0.1 due to an issue with adding permissions to course categories:

Fatal error: Call to undefined function can_edit_in_category() in moodle/lib/navigationlib.php on line 3501
This bug was reported as MDL-25397 in the bug tracker.

Also added graphviz to allow moodle to use dot to create graphs.

Moodle 2.0 Upload Users

There is a bug in the upload users code: I reported this MDL-26474, but this was closed without fixing the issue so I reopened it as: MDL-29219.

The following diff fixes this:

diff -ui /export/1/cis/vle/moodle/admin/uploaduser.php Downloads/uploaduser.php 
--- /export/1/cis/vle/moodle/admin/uploaduser.php	2011-09-02 13:05:07.523400025 +0100 
+++ Downloads/uploaduser.php	2011-09-02 12:11:31.893825964 +0100 
@@ -95,7 +95,7 @@ 
 if ($prof_fields = $DB->get_records('user_info_field')) { 
     foreach ($prof_fields as $prof_field) { 
- $PRF_FIELDS[] = $prof_field->shortname; 
+ $PRF_FIELDS[] = 'profile_field_'.$prof_field->shortname; 

The allowed list of standard fields that are accepted are listed in uploaduser.php and from the list you can see that emailstop is not included!

74 // array of all valid fields for validation
75 $STD_FIELDS = array('id', 'firstname', 'lastname', 'username', 'email',
76         'city', 'country', 'lang', 'auth', 'timezone', 'mailformat',
77         'maildisplay', 'maildigest', 'htmleditor', 'ajax', 'autosubscribe',
78         'mnethostid', 'institution', 'department', 'idnumber', 'skype',
79         'msn', 'aim', 'yahoo', 'icq', 'phone1', 'phone2', 'address',
80         'url', 'description', 'descriptionformat', 'oldusername', 'deleted',
81         'password');

My problems was due to a misspelled field name but - the code does not return the errors to the calling part of the script - so it wasn't until I added an echo that I was able to work out my problem was PEBKAC!

Moodle 2.0 Statistics

Even though statistics was enabled they were not running, this was partly due to cron not running, but even from the command line they were failing. The following Moodle Forums post Statistics not working, gave me the clues I needed.

As a result of looking for the issue I added

to the php.ini file.

Moodle User Profiles

To lock the user profile fields:

Settings -> Site administration -> Plugins -> Authentication
and then choose the authentication method for locking the fields.

Moodle & Unit-e

Once details of how we are linking to the two systems have been fixed I will put details here.

Moodle & Google Apps

Once details of how we are linking to the two systems have been fixed I will put details here.