Updates – Moodle 2.0, Fixes and New Module Setting
Version 1.2.4, for Moodle 2.0, has completed testing and is now available on the download screen. There are a number of the bug fixes so it is well worth updating. It also includes a module setting to restrict the number of records a user can create in a DataPlus instance.
Moodle 2.0 conversion is still ongoing and I am still hoping to have a beta for Christmas, however other work is beckoning so it maybe delayed to the end of January.
December 17th, 2010 at 7:55 pm
What’s the latest version that will work with 1.9, please ?
December 20th, 2010 at 11:28 am
All the currently available versions will work with 1.9.
December 20th, 2010 at 10:26 pm
I see the issue: 1.2.5 install on 1.9.10 fails with this error
(mysql): ALTER TABLE mdl_dataplus ADD maxentriesperuser INT(8) unsigned NOT NULL DEFAULT 15 after maxentriesperuser
1054: Unknown column ‘maxentriesperuser’ in ‘mdl_dataplus’
ADOConnection._Execute(ALTER TABLE mdl_dataplus ADD maxentriesperuser INT(8) unsigned NOT NULL DEFAULT 15 after maxentriesperuser, false) % line 891, file: adodb.inc.php
ADOConnection.Execute(ALTER TABLE mdl_dataplus ADD maxentriesperuser INT(8) unsigned NOT NULL DEFAULT 15 after maxentriesperuser) % line 89, file: dmllib.php
execute_sql(ALTER TABLE mdl_dataplus ADD maxentriesperuser INT(8) unsigned NOT NULL DEFAULT 15 after maxentriesperuser, true) % line 2302, file: dmllib.php
execute_sql_arr(Array[1], true, true) % line 1060, file: ddllib.php
add_field(Object:XMLDBTable, Object:XMLDBField) % line 116, file: upgrade.php
It looks like the file upgrade. need these setAttribute() calls fixed:
if ($result && $oldversion setAttributes(XMLDB_TYPE_INTEGER, ‘8’, XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, ’15’, ‘maxentriesperuser’);
$result = $result && add_field($table, $field);
}
if ($result && $oldversion setAttributes(XMLDB_TYPE_INTEGER, ‘1’, XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, ‘1’, ‘allowcomments’);
$result = $result && add_field($table, $field);
}
The last parameter of each setAttributes() call should be the previous field, i.e. maxentries and teachereditingother respectively
December 21st, 2010 at 11:18 am
Thanks for that Mark. For some odd reason the upgrade doesn’t fail on my dev version, so I missed it. This bug is now fixed in the version available on the download page.