<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>Moodle Issues</title>
<link>http://www.earlham.edu/markp/miss/</link>
<description>by Mark Pearson IT@EC</description>
<language>en-us</language>
<copyright>Copyright 2009 MarkPearson</copyright>
<pubDate>Thu, 19 Nov 2009 21:28:40 GMT</pubDate>
<lastBuildDate>Thu, 19 Nov 2009 21:28:40 GMT</lastBuildDate>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>TiddlyWiki 2.1.3</generator>
<item>
<title>Moodle directions : 2010</title>
<description>Talk with Denise &amp;amp; Aaron about:&lt;br&gt;&lt;ul&gt;&lt;li&gt; installing Assignment ZIP into current production (quick process)&lt;/li&gt;&lt;li&gt; Automated course backups &lt;span&gt;—&lt;/span&gt; where to store.&lt;/li&gt;&lt;li&gt; File storage space on Moodle production server. Any issues here &lt;span&gt;—&lt;/span&gt; do we need to expand local storage?&lt;/li&gt;&lt;li&gt; Transitioning to 1.9.6 &lt;span&gt;—&lt;/span&gt; &lt;a tiddlylink=&quot;Security Alerts&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Security Alerts&quot; href=&quot;#Security%20Alerts&quot; class=&quot;externalLink&quot;&gt;security issues&lt;/a&gt; with 1.9.5&lt;/li&gt;&lt;ul&gt;&lt;li&gt; Use CLAMP LAE version? They are going to update v 1.9.5 to 1.9.6&lt;/li&gt;&lt;li&gt; Apply EC addins &lt;span&gt;—&lt;/span&gt; Attendance, Sharing Cart, (Quickmail), &lt;a tiddlylink=&quot;MyMoodle&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MyMoodle&quot; href=&quot;#MyMoodle&quot; class=&quot;externalLink&quot;&gt;MyMoodle&lt;/a&gt;, YUIMenu, Course Menu&lt;/li&gt;&lt;/ul&gt;&lt;li&gt; &lt;a tiddlylink=&quot;Fileresponse quiz question type&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Fileresponse quiz question type&quot; href=&quot;#Fileresponse%20quiz%20question%20type&quot; class=&quot;externalLink&quot;&gt;Fileresponse quiz question type&lt;/a&gt; for Annie Bandy&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;</description>
<category>denise</category>
<category>directions</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BMoodle%20directions%20%3A%202010%5D%5D</link>
<pubDate>Thu, 19 Nov 2009 21:28:39 GMT</pubDate>
</item>
<item>
<title>Another security alert</title>
<description>I got this email from Martin D on 19th-Nov-09:&lt;br&gt;&lt;br&gt;Hi Moodle admins,&lt;br&gt;&lt;br&gt;You're getting this email because you chose to receive important news by email when you registered your Moodle site with moodle.org.&lt;br&gt;&lt;br&gt;I'm writing to tell you about an exploit that was recently published on the internet (intentionally bypassing our official security policy of responsible disclosure published at &lt;a target=&quot;_blank&quot; title=&quot;External link to http://moodle.org/security&quot; href=&quot;http://moodle.org/security&quot; class=&quot;externalLink&quot;&gt;http://moodle.org/security&lt;/a&gt; and so increasing the vulnerability of many Moodle sites).  The exploit demonstrates how a Moodle teacher could potentially gain administrator access to their own site.&lt;br&gt;&lt;br&gt;In Moodle 1.9.6 and earlier, backups saved with the option of &quot;user data&quot; would contain accounts of all the users enrolled in that course, to promote data consistency if the backup was restored on another&lt;br&gt;Moodle system. &lt;br&gt;&lt;br&gt;This included the md5 one-way hash calculated from the user's password (eg  4d909c290d0fb1ca068ffaddf22cbd0). These can't be directly decrypted to reveal the password, so they used to be seen as reasonably safe to distribute.  However, with the advent in recent times of large databases of md5 reverse lookups on the internet, many simpler passwords can now be determined quite quickly by searching for their md5 hash (reverse mapping).&lt;br&gt;&lt;br&gt;The demonstrated exploit basically involved a trusted teacher account enrolling an administrator into their own course, then making a backup of the course including user data, extracting the md5 hash of the password from the backup file and then reverse mapping the hash to discover the password.&lt;br&gt;&lt;br&gt;Note that the exploit requires that (a) the user is a trusted teacher on the site, and (b) that the admin is using a fairly weak password. &lt;br&gt;&lt;br&gt;Moodle development policy has always generally been &quot;we trust teachers&quot;.  However, we know that YOU may not trust them all and will want to lock down your sites as much as possible.&lt;br&gt;&lt;br&gt;NEW RELEASES ARE COMING SOON&lt;br&gt;&lt;br&gt;The core dev team is working hard on Moodle 1.9.7 and Moodle 1.8.11 right now.  Among other things, there are fixes to 11 known issues that are related to backups and user data.  We will let you know when&lt;br&gt;these releases are ready, via this mailing list.  It should be within a week.&lt;br&gt;&lt;br&gt;WHAT YOU CAN DO RIGHT NOW&lt;br&gt;&lt;br&gt;Your site may be vulnerable if you have any users with full backup rights on your site that might have a reason to try and crack your admin account, if they saw the published exploit.  Here are some things you can do to improve security on your site right now: &lt;br&gt;&lt;br&gt;&lt;ol&gt;&lt;li&gt; Disable backup functionality for teacher roles.  You can re-enable backups later with the new Moodle releases, because the permissions for saving user data will be separate from the permission to create backups.&lt;/li&gt;&lt;ul&gt;&lt;li&gt; HOW:  Admin &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles:  Edit the teacher roles and change the capability for moodle/&lt;a target=&quot;_blank&quot; title=&quot;External link to site:backup&quot; href=&quot;site:backup&quot; class=&quot;externalLink&quot;&gt;site:backup&lt;/a&gt; to &quot;PROHIBIT&quot;.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt; Turn on site-wide password salting (in all versions of Moodle since 1.6), this adds information to the md5 strings to make them practically impossible to reverse (next time they log in or change their password).  Note that this will affect your ability to restore backups containing user data on foreign Moodle sites - the admin of the destination site needs to include your salt in their config.php for user creation to work.&lt;/li&gt;&lt;ul&gt;&lt;li&gt; HOW:  Add a line like this to your config.php (for the best security, there is intentionally no way to set this in the Moodle interface) &lt;code&gt;$CFG-&amp;gt;passwordsaltmain = 'some long random string here with lots of characters';&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;  Turn on Password Policy for your site, this forces people to use stronger passwords.&lt;/li&gt;&lt;ul&gt;&lt;li&gt; HOW:  Admin &amp;gt; Security &amp;gt; Site policies &amp;gt; passwordpolicy&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;  Change passwords for all admins.  Now that you turned Password Policy on you'll be forced to choose a stronger one.   It also makes any old backups useless for the purposes of the exploit.&lt;/li&gt;&lt;ul&gt;&lt;li&gt; HOW:  Edit your user profile directly, for other admins you can edit their profile and check this box:  &quot;Force password change&quot;.  They'll be forced to change it when they next log in.&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;br&gt;Good luck, thanks for using Moodle and I'll talk to you again soon.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Martin (Moodle Lead Developer)&lt;br&gt;&lt;br&gt;&lt;span&gt;—&lt;/span&gt;&lt;br&gt;You are receiving this email because you registered a Moodle site with Moodle.org and chose to be added to this low-volume list of security notifications and other important Moodle-related announcements for Moodle administrators.&lt;br&gt;&lt;br&gt;To unsubscribe you can re-register your site (as above) and make sure you turn the email option OFF in the registration form.  You can also send a blank email to sympa@lists.moodle.org with &quot;unsubscribe securityalerts&quot; as the subject (from the email address that is subscribed).&lt;br&gt;&lt;br&gt;See &lt;a target=&quot;_blank&quot; title=&quot;External link to http://lists.moodle.org/info/securityalerts&quot; href=&quot;http://lists.moodle.org/info/securityalerts&quot; class=&quot;externalLink&quot;&gt;http://lists.moodle.org/info/securityalerts&lt;/a&gt; for more.&lt;br&gt;&lt;hr&gt;See also &lt;a tiddlylink=&quot;Security Alerts&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Security Alerts&quot; href=&quot;#Security%20Alerts&quot; class=&quot;externalLink&quot;&gt;Security Alerts&lt;/a&gt;</description>
<category>security</category>
<category>1.9.5</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BAnother%20security%20alert%5D%5D</link>
<pubDate>Thu, 19 Nov 2009 21:27:23 GMT</pubDate>
</item>
<item>
<title>Fileresponse quiz question type</title>
<description>I need this for an Annie Bandy French quiz so that students can upload their audio files in response to a quiz question.&lt;br&gt;Problems is that according to the README the default location of uploaded files is &lt;code&gt;$CFG-&amp;gt;dirroot/questionattempt/attempt#/question#
&lt;/code&gt; and since the dirrot is in the web area this is clearly not acceptable.&lt;br&gt;&lt;br&gt;Need to change this. But where?&lt;br&gt;&lt;pre&gt;[markp@rublev /usr/home/markp/moo-plugins/fileresponse]$ grep dirroot *.php
locallib.php:    require_once($CFG-&amp;gt;dirroot.'/lib/uploadlib.php');
questiontype.php: * $CFG-&amp;gt;dirroot/questionattempt/attempt#/question#
questiontype.php:        include(&quot;$CFG-&amp;gt;dirroot/question/type/fileresponse/display.html&quot;);
&lt;/pre&gt;So, change &lt;em&gt;dirroot&lt;/em&gt; to &lt;em&gt;dataroot&lt;/em&gt;. This should be set to owner www and permissions 775 so directories and subdirectories should be created OK.&lt;br&gt;Copy into place with:&lt;br&gt;&lt;pre&gt;~/public_html/moo-195/question/type]$ cp -R ~/moo-plugins/fileresponse .
&lt;/pre&gt;Open the moodle/admin page in the browser to create the database tables (the readme file does not say to do this)&lt;br&gt;&lt;a class=&quot;button&quot; title=&quot;show Problems&quot; href=&quot;javascript:;&quot;&gt;Problems&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;When I used the File Response in a Quiz I got the following errors:&lt;br&gt;&lt;pre&gt;Warning: include(/usr/home/moodle/data/moodledata192+/question/type/fileresponse/display.html)
[function.include]: failed to open stream: 
No such file or directory in /usr/home/markp/public_html/moo-195/question/type/fileresponse/questiontype.php on line 242

Warning: include() [function.include]: 
Failed opening '/usr/home/moodle/data/moodledata192+/question/type/fileresponse/display.html' for inclusion (include_path='/usr/home/markp/public_html/moo-195/lib/pear:.:/usr/local/share/pear')
 in /usr/home/markp/public_html/moo-195/question/type/fileresponse/questiontype.php on line 242
&lt;/pre&gt;From this I can see that on line 242 I should have &lt;code&gt;dirroot}} rather than {{{dataroot&lt;/code&gt;&lt;br&gt;So:&lt;br&gt;&lt;pre&gt; 242         include(&quot;$CFG-&amp;gt;dirroot/question/type/fileresponse/display.html&quot;);
&lt;/pre&gt;This I fixed and copied the modified file into place&lt;/div&gt; &lt;br&gt;</description>
<category>quiz</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BFileresponse%20quiz%20question%20type%5D%5D</link>
<pubDate>Wed, 18 Nov 2009 22:15:00 GMT</pubDate>
</item>
<item>
<title>18 November 2009 more moo-195 problems</title>
<description>Following from &lt;a tiddlylink=&quot;moo-195 problems&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #moo-195 problems&quot; href=&quot;#moo-195%20problems&quot; class=&quot;externalLink&quot;&gt;moo-195 problems&lt;/a&gt; I get this error opening any course:&lt;br&gt;&lt;pre&gt;Warning: Invalid argument supplied for foreach() in /usr/home/markp/public_html/moo-195/blocks/yui_menu/plugin/mods.php on line 31
&lt;/pre&gt;Having updated the database for &lt;a tiddlylink=&quot;Fileresponse quiz question type&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Fileresponse quiz question type&quot; href=&quot;#Fileresponse%20quiz%20question%20type&quot; class=&quot;externalLink&quot;&gt;Fileresponse quiz question type&lt;/a&gt; I get the following error message:&lt;br&gt;&lt;pre&gt;Warning: Call-time pass-by-reference has been deprecated in /usr/home/markp/public_html/moo-195/blocks/yui_menu/block_yui_menu.php on line 63
&lt;/pre&gt;Although this is just a Warning, it's till spooky.</description>
<category>problem</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5B18%20November%202009%20more%20moo-195%20problems%5D%5D</link>
<pubDate>Wed, 18 Nov 2009 21:48:00 GMT</pubDate>
</item>
<item>
<title>Quiz Question type</title>
<description>At Modules and Plugins : &lt;a target=&quot;_blank&quot; title=&quot;External link to http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=975&amp;amp;filter=1&quot; href=&quot;http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=975&amp;amp;filter=1&quot; class=&quot;externalLink&quot;&gt;Drag-and-drop matching question type&lt;/a&gt;&lt;br&gt;&lt;blockquote&gt;Question Type: Drag-and-drop matching question type&lt;br&gt;Type: Question Type&lt;br&gt;Requires: Moodle 1.9 or later&lt;br&gt;Status:&lt;br&gt;Maintainer(s): Adriane Boyd&lt;br&gt;&lt;br&gt;A drag-and-drop version of the core match question type with a non-javascript fallback identical to the match question type.&lt;br&gt;&lt;/blockquote&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to http://download.moodle.org/download.php/plugins/question/type/ddmatch.zip&quot; href=&quot;http://download.moodle.org/download.php/plugins/question/type/ddmatch.zip&quot; class=&quot;externalLink&quot;&gt;Download&lt;/a&gt;&lt;br&gt;&lt;h2&gt;Hack to fix:&lt;/h2&gt;&lt;blockquote&gt;Correction: this &lt;a tiddlylink=&quot;Drag-and-Drop&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Drag-and-Drop&quot; href=&quot;#Drag-and-Drop&quot; class=&quot;externalLink&quot;&gt;Drag-and-Drop&lt;/a&gt; Matching question type *does* show correct/incorrect answers in certain browsers,In Safari and IE. In Firefox for Mac 3.0.8 it does not, thus my previous report of a problem. , it works. To correct this bug, our programmer changed the following code:&lt;br&gt;&lt;br&gt;there was:&lt;br&gt;[363] if ($options-&amp;gt;readonly and $options-&amp;gt;correct_responses) {&lt;br&gt;&lt;br&gt;But i needs to be like this:&lt;br&gt;if ($options-&amp;gt;readonly) { / and $options-&amp;gt;correct_responses&lt;br&gt;&lt;/blockquote&gt;</description>
<category>quiz</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BQuiz%20Question%20type%5D%5D</link>
<pubDate>Mon, 02 Nov 2009 16:09:00 GMT</pubDate>
</item>
<item>
<title>Security Alerts</title>
<description>Got this message from Moodle Central yesterday:&lt;br&gt;&lt;blockquote&gt;I'm writing to give you some advance notice of two minor new releases - Moodle 1.9.6 and Moodle 1.8.10 - which will be announced publically at the end of this week. Since there are some security fixes we recommend that you upgrade your Moodle site as soon as you can to keep your sites safe.&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to http://docs.moodle.org/en/Moodle_1.9.6_release_notes&quot; href=&quot;http://docs.moodle.org/en/Moodle_1.9.6_release_notes&quot; class=&quot;externalLink&quot;&gt;Release notes&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a class=&quot;button&quot; title=&quot;show Security fixes&quot; href=&quot;javascript:;&quot;&gt;Security fixes&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;&lt;a tiddlylink=&quot;MSA-09-0019&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MSA-09-0019&quot; href=&quot;#MSA-09-0019&quot; class=&quot;externalLink&quot;&gt;MSA-09-0019&lt;/a&gt;: SQL injection in update_record&lt;br&gt;&lt;br&gt;Topic: SQL injection in update_record&lt;br&gt;Severity: Critical&lt;br&gt;Versions affected: &amp;lt;1.9.6, &amp;lt;1.8.10, 1.7.x&lt;br&gt;Reported by: &lt;a tiddlylink=&quot;Georg-Christian&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Georg-Christian&quot; href=&quot;#Georg-Christian&quot; class=&quot;externalLink&quot;&gt;Georg-Christian&lt;/a&gt; Pranschke&lt;br&gt;Issue no.: &lt;a tiddlylink=&quot;MDL-20309&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MDL-20309&quot; href=&quot;#MDL-20309&quot; class=&quot;externalLink&quot;&gt;MDL-20309&lt;/a&gt;&lt;br&gt;Solution: upgrade to latest weekly builds or 1.8.10 or 1.9.6&lt;br&gt;Workaround: none&lt;br&gt;&lt;br&gt;Description: &lt;a tiddlylink=&quot;Georg-Christian&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Georg-Christian&quot; href=&quot;#Georg-Christian&quot; class=&quot;externalLink&quot;&gt;Georg-Christian&lt;/a&gt; Pranschke discovered a serious problem in the&lt;br&gt;update_record function. This problem may allow any registered user to exploit&lt;br&gt;several different scripts.&lt;br&gt;&lt;br&gt;&lt;hr&gt;&lt;br&gt;&lt;a tiddlylink=&quot;MSA-09-0015&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MSA-09-0015&quot; href=&quot;#MSA-09-0015&quot; class=&quot;externalLink&quot;&gt;MSA-09-0015&lt;/a&gt;: Customised &lt;a tiddlylink=&quot;PhpMyAdmin&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #PhpMyAdmin&quot; href=&quot;#PhpMyAdmin&quot; class=&quot;externalLink&quot;&gt;PhpMyAdmin&lt;/a&gt; upgraded to 2.11.9.6&lt;br&gt;&lt;br&gt;Topic: Customised &lt;a tiddlylink=&quot;PhpMyAdmin&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #PhpMyAdmin&quot; href=&quot;#PhpMyAdmin&quot; class=&quot;externalLink&quot;&gt;PhpMyAdmin&lt;/a&gt; upgraded to 2.11.9.6&lt;br&gt;Severity: Major&lt;br&gt;Versions affected: all&lt;br&gt;Reported by: upstream - &lt;a tiddlylink=&quot;PMASA-2009-6&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #PMASA-2009-6&quot; href=&quot;#PMASA-2009-6&quot; class=&quot;externalLink&quot;&gt;PMASA-2009-6&lt;/a&gt;; &lt;a tiddlylink=&quot;CVE-2009-3696&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #CVE-2009-3696&quot; href=&quot;#CVE-2009-3696&quot; class=&quot;externalLink&quot;&gt;CVE-2009-3696&lt;/a&gt; and &lt;a tiddlylink=&quot;CVE-2009-3697&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #CVE-2009-3697&quot; href=&quot;#CVE-2009-3697&quot; class=&quot;externalLink&quot;&gt;CVE-2009-3697&lt;/a&gt;&lt;br&gt;Issue no.: &lt;a tiddlylink=&quot;MDL-20553&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MDL-20553&quot; href=&quot;#MDL-20553&quot; class=&quot;externalLink&quot;&gt;MDL-20553&lt;/a&gt;&lt;br&gt;Solution: Install latest package from&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&quot; href=&quot;http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&quot; class=&quot;externalLink&quot;&gt;http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=448&lt;/a&gt; or cvs&lt;br&gt;Workaround: delete admin/mysql/*&lt;br&gt;&lt;br&gt;See details at &lt;a target=&quot;_blank&quot; title=&quot;External link to http://www.phpmyadmin.net/home_page/security/PMASA-2009-6.php&quot; href=&quot;http://www.phpmyadmin.net/home_page/security/PMASA-2009-6.php&quot; class=&quot;externalLink&quot;&gt;http://www.phpmyadmin.net/home_page/security/PMASA-2009-6.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;hr&gt;&lt;br&gt;&lt;a tiddlylink=&quot;MSA-09-0016&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MSA-09-0016&quot; href=&quot;#MSA-09-0016&quot; class=&quot;externalLink&quot;&gt;MSA-09-0016&lt;/a&gt;: Email not properly escaped on user edit page&lt;br&gt;&lt;br&gt;Topic: Email not properly escaped on user edit page&lt;br&gt;Severity: Minor&lt;br&gt;Versions affected: &amp;lt;1.9.6&lt;br&gt;Reported by: Alan Trick&lt;br&gt;Issue no.: &lt;a tiddlylink=&quot;MDL-20295&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MDL-20295&quot; href=&quot;#MDL-20295&quot; class=&quot;externalLink&quot;&gt;MDL-20295&lt;/a&gt;&lt;br&gt;Solution: upgrade to latest weekly build or 1.8.10 or 1.9.6&lt;br&gt;Workaround: disable email change confirmation (not recommended)&lt;br&gt;&lt;br&gt;Description: Alan Trick discovered that the email change confirmation code does&lt;br&gt;not escape the email addresses properly. This problem is marked as minor&lt;br&gt;because the email address is validated and can not contain an arbitrary text.&lt;br&gt;&lt;br&gt;&lt;hr&gt;&lt;br&gt;&lt;a tiddlylink=&quot;MSA-09-0017&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MSA-09-0017&quot; href=&quot;#MSA-09-0017&quot; class=&quot;externalLink&quot;&gt;MSA-09-0017&lt;/a&gt;: Upgrade code 1.9 does not escape tags properly&lt;br&gt;&lt;br&gt;Topic: Upgrade to 1.9 from earlier versions does not escape tags properly&lt;br&gt;Severity: Minor&lt;br&gt;Versions affected: &amp;lt;1.9.6&lt;br&gt;Reported by: Matt Oquist&lt;br&gt;Issue no.: &lt;a tiddlylink=&quot;MDL-19709&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MDL-19709&quot; href=&quot;#MDL-19709&quot; class=&quot;externalLink&quot;&gt;MDL-19709&lt;/a&gt;&lt;br&gt;Solution: do not use 1.9.0-1.9.5 when upgrading from any previous version&lt;br&gt;&lt;br&gt;Description: The upgrade code does not properly escape tags properly when&lt;br&gt;upgrading from any version before 1.9.0.&lt;br&gt;&lt;br&gt;&lt;hr&gt;&lt;br&gt;&lt;a tiddlylink=&quot;MSA-09-0018&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MSA-09-0018&quot; href=&quot;#MSA-09-0018&quot; class=&quot;externalLink&quot;&gt;MSA-09-0018&lt;/a&gt;: Incorrect escaping when updating first post in a single simple&lt;br&gt;discussion forum type&lt;br&gt;&lt;br&gt;Topic: Incorrect escaping when updating first post in a single simple&lt;br&gt;discussion forum type&lt;br&gt;Severity: Minor&lt;br&gt;Versions affected: &amp;lt;1.9.6, &amp;lt;1.8.10&lt;br&gt;Reported by: Nicola Vitacolonna&lt;br&gt;Issue no.: &lt;a tiddlylink=&quot;MDL-20555&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MDL-20555&quot; href=&quot;#MDL-20555&quot; class=&quot;externalLink&quot;&gt;MDL-20555&lt;/a&gt;&lt;br&gt;Solution: upgrade to latest weekly builds or 1.8.10 or 1.9.6&lt;br&gt;Workaround: none&lt;br&gt;&lt;br&gt;Description: Nicola Vitacolonna discovered forum introduction is incorrectly&lt;br&gt;escaped when editing the first post of a single simple discussion forum. This&lt;br&gt;can potentially lead to SQL injection attacks by teachers. Students can not&lt;br&gt;exploit this problem.&lt;br&gt;&lt;br&gt;&lt;hr&gt;&lt;br&gt;&lt;a tiddlylink=&quot;MSA-09-0020&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MSA-09-0020&quot; href=&quot;#MSA-09-0020&quot; class=&quot;externalLink&quot;&gt;MSA-09-0020&lt;/a&gt;: Teachers can view students' grades in all courses in the overview&lt;br&gt;report&lt;br&gt;&lt;br&gt;Topic: Teachers can view students' grades in all courses in the overview report&lt;br&gt;Severity: Minor&lt;br&gt;Versions affected: &amp;lt;1.9.6&lt;br&gt;Reported by: Ratana Lim&lt;br&gt;Issue no.: &lt;a tiddlylink=&quot;MDL-20355&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MDL-20355&quot; href=&quot;#MDL-20355&quot; class=&quot;externalLink&quot;&gt;MDL-20355&lt;/a&gt;&lt;br&gt;Solution: upgrade to latest weekly builds or 1.9.6&lt;br&gt;Workaround: remove the overview report link - see&lt;br&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to http://docs.moodle.org/en/Simplifying_the_gradebook&quot; href=&quot;http://docs.moodle.org/en/Simplifying_the_gradebook&quot; class=&quot;externalLink&quot;&gt;http://docs.moodle.org/en/Simplifying_the_gradebook&lt;/a&gt;&lt;br&gt;&lt;br&gt;Description: Teachers could view students' grades in all courses, including&lt;br&gt;courses for which they do not have teacher rights, in the overview report.&lt;/div&gt;</description>
<category>security</category>
<category>update</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BSecurity%20Alerts%5D%5D</link>
<pubDate>Tue, 27 Oct 2009 19:15:00 GMT</pubDate>
</item>
<item>
<title>moo-195 problems</title>
<description>&lt;h1&gt;Issues with the Moodle 1.9.5 codebase&lt;/h1&gt;On &lt;em&gt;rublev.lly.earlham.edu/~markp/moo-195&lt;/em&gt;&lt;br&gt;I have &lt;span class=&quot;marked&quot;&gt;Server : Debugging : ALL:Show all reasonable PHP debug messages&lt;/span&gt;&lt;br&gt;&lt;hr&gt;Just installed &lt;a tiddlylink=&quot;LAE Assignment Zip&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #LAE Assignment Zip&quot; href=&quot;#LAE%20Assignment%20Zip&quot; class=&quot;externalLink&quot;&gt;LAE Assignment Zip&lt;/a&gt; into &lt;a target=&quot;_blank&quot; title=&quot;External link to http://rublev.lly.earlham.edu/~markp/moo-195&quot; href=&quot;http://rublev.lly.earlham.edu/%7Emarkp/moo-195&quot; class=&quot;externalLink&quot;&gt;http://rublev.lly.earlham.edu/~markp/moo-195&lt;/a&gt; and got this error:&lt;br&gt;&lt;blockquote&gt;Warning: Call-time pass-by-reference has been deprecated in /usr/home/markp/public_html/moo-195/blocks/yui_menu/block_yui_menu.php on line 63&lt;br&gt;&lt;/blockquote&gt;&lt;hr&gt;Logged in as administrator&lt;br&gt;Also, uploading to &lt;em&gt;Front page/Site files/backupdata&lt;/em&gt;:&lt;br&gt;&lt;blockquote&gt;Warning: chmod() [function.chmod]: Operation not permitted in /usr/home/markp/public_html/moo-195/lib/uploadlib.php on line 234&lt;br&gt;&lt;/blockquote&gt;Did :&lt;br&gt;&lt;pre&gt;markp/public_html]$ ls -lh
drwxr-xr-x  36 markp  www   1.0K Oct 20 19:44 moo-195
markp/public_html]$ chmod -R 775 moo-195/
&lt;/pre&gt;This shows that the apache process &lt;span class=&quot;marked&quot;&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to group:www&quot; href=&quot;group:www&quot; class=&quot;externalLink&quot;&gt;group:www&lt;/a&gt;&lt;/span&gt; has &lt;a target=&quot;_blank&quot; title=&quot;External link to read:execute&quot; href=&quot;read:execute&quot; class=&quot;externalLink&quot;&gt;read:execute&lt;/a&gt; access. I did the chmod recursively which changed the permissions to &lt;a target=&quot;_blank&quot; title=&quot;External link to read:write:execute&quot; href=&quot;read:write:execute&quot; class=&quot;externalLink&quot;&gt;read:write:execute&lt;/a&gt;. But Apache shouldn't be writing to this dir anyway.&lt;br&gt;Same error when doing course restore:&lt;br&gt;&lt;blockquote&gt;&lt;ul&gt;&lt;li&gt; Creating temporary structures&lt;/li&gt;&lt;li&gt; Deleting old data&lt;/li&gt;&lt;li&gt; Copying zip file&lt;/li&gt;&lt;/ul&gt;Warning: chmod() [function.chmod]: Operation not permitted in /usr/home/markp/public_html/moo-195/backup/lib.php on line 289&lt;br&gt;&lt;/blockquote&gt;Not sure why &lt;em&gt;chmod&lt;/em&gt; is being used never mind why it doesn't work. It does not seem to affect the operation though.&lt;br&gt;This is an error to check for in the LAE version which I may use next.&lt;br&gt;I checked the data dir at &lt;em&gt;/usr/home/moodle/data/moodledata192+&lt;/em&gt; :&lt;br&gt;&lt;pre&gt;[markp@rublev /usr/home/moodle/data]$ ls -lh
drwxrwxr-x  342 www  admins   4.5K Oct 22 14:39 moodledata192+
&lt;/pre&gt;So this has write access for www and admins groups. Ditto for the &lt;em&gt;moodle/data&lt;/em&gt; dir itself.&lt;br&gt;Course Restore gives the same error in the same place:&lt;br&gt;&lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;Copying user files&lt;/li&gt;&lt;/ul&gt;Warning: chmod() [function.chmod]: Operation not permitted in /usr/home/markp/public_html/moo-195/backup/lib.php on line 289 (6 times)&lt;br&gt;&lt;blockquote&gt; 3 user zones &lt;span&gt;—&lt;/span&gt; 6 errors&lt;br&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt; Copying course files&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt; 18 files/folders &lt;span&gt;—&lt;/span&gt; 18 errors&lt;br&gt;&lt;/blockquote&gt;Assignments and resources had similar errors.&lt;br&gt;&lt;/blockquote&gt;&lt;strong&gt;BUT&lt;/strong&gt; Restore completed successfully.&lt;br&gt;</description>
<category>problem</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5Bmoo-195%20problems%5D%5D</link>
<pubDate>Tue, 20 Oct 2009 20:15:00 GMT</pubDate>
</item>
<item>
<title>LAE Assignment Zip</title>
<description>Download from &lt;a target=&quot;_blank&quot; title=&quot;External link to http://www.clamp-it.org/code/moodle-liberal-arts-edition-v10/&quot; href=&quot;http://www.clamp-it.org/code/moodle-liberal-arts-edition-v10/&quot; class=&quot;externalLink&quot;&gt;LAE on Clamp-IT&lt;/a&gt;&lt;br&gt;No installation destructions. I got the tar and will copy that over.&lt;br&gt;&lt;h1&gt;Installation&lt;/h1&gt;&lt;ol&gt;&lt;li&gt; Download and unpack the &lt;a target=&quot;_blank&quot; title=&quot;External link to http://www.clamp-it.org/wp-content/uploads/2009/08/AssignmentZip.tar&quot; href=&quot;http://www.clamp-it.org/wp-content/uploads/2009/08/AssignmentZip.tar&quot; class=&quot;externalLink&quot;&gt;Assignment zip tar file&lt;/a&gt; somewhere safe (I'm assuming ssh access to the server). &lt;code&gt;$ tar -xvf AssignmentZip.tar&lt;/code&gt; &lt;/li&gt;&lt;li&gt; Copy into relevant places (after renaming the original mod/assignment/lib.php to be on the safe side:&lt;/li&gt;&lt;/ol&gt;&lt;pre&gt;AssignmentZip]$ ls
LAE     lib     mod
AssignmentZip]$ cp -R LAE ~/public_html/moo-195
AssignmentZip]$ cp -r lib/* ~/public_html/moo-195/lib
AssignmentZip]$ mv ~/public_html/moo-195/mod/assignment/lib.php ~/public_html/moo-195/mod/assignment/lib.php.org
AssignmentZip]$ cp -r mod/* ~/public_html/moo-195/mod
&lt;/pre&gt;</description>
<category>assignment_zip</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BLAE%20Assignment%20Zip%5D%5D</link>
<pubDate>Tue, 20 Oct 2009 19:18:00 GMT</pubDate>
</item>
<item>
<title>Moodle versions</title>
<description>I have no fewer than four instances of Moodle running. Let's figure out what's what.&lt;br&gt;&lt;h2&gt;moo-195&lt;/h2&gt;&lt;ul&gt;&lt;li&gt; Started on 8-July &lt;a tiddlylink=&quot;Way forward&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Way forward&quot; href=&quot;#Way%20forward&quot; class=&quot;externalLink&quot;&gt;Way forward&lt;/a&gt;. Uses same database as moo-clamp.&lt;/li&gt;&lt;li&gt; Has the current production code running&lt;/li&gt;&lt;li&gt; with new &lt;a tiddlylink=&quot;MyMoodle&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MyMoodle&quot; href=&quot;#MyMoodle&quot; class=&quot;externalLink&quot;&gt;MyMoodle&lt;/a&gt;&lt;/li&gt;&lt;li&gt; production data dir from 0809&lt;/li&gt;&lt;li&gt; But last year's theme&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;moo-clamp&lt;/h2&gt;&lt;ul&gt;&lt;li&gt; Superseded by moo-195 on July-8.&lt;/li&gt;&lt;li&gt; can probably delete this one&lt;/li&gt;&lt;li&gt; deleted 20-Oct-09&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;moo-t95&lt;/h2&gt;&lt;ul&gt;&lt;li&gt; Testing for &lt;a tiddlylink=&quot;MyMoodle&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MyMoodle&quot; href=&quot;#MyMoodle&quot; class=&quot;externalLink&quot;&gt;MyMoodle&lt;/a&gt;. Can remove this one too.&lt;/li&gt;&lt;li&gt; test for parchment theme&lt;/li&gt;&lt;li&gt; assignment zip patch screw up (version was for 2.0)&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;moo-late&lt;/h2&gt;&lt;ul&gt;&lt;li&gt; &lt;code&gt;$release = '1.9.5+ (Build: 20090805)'&lt;/code&gt;&lt;/li&gt;&lt;li&gt; no &lt;em&gt;config.php&lt;/em&gt;&lt;/li&gt;&lt;li&gt; I think I installed this one to get an up to date copy.&lt;/li&gt;&lt;li&gt; deleted 20-Oct-09&lt;/li&gt;&lt;/ul&gt;&lt;h1&gt;Next Steps for Moodle&lt;/h1&gt;&lt;ol&gt;&lt;li&gt; implement &lt;a tiddlylink=&quot;LAE Assignment Zip&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #LAE Assignment Zip&quot; href=&quot;#LAE%20Assignment%20Zip&quot; class=&quot;externalLink&quot;&gt;assignment zip&lt;/a&gt; before the end of the semester.&lt;/li&gt;&lt;ul&gt;&lt;li&gt; test out in moo-195&lt;/li&gt;&lt;li&gt; try out on Moodle testing server&lt;/li&gt;&lt;li&gt; Roll out over Thanksgiving&lt;/li&gt;&lt;/ul&gt;&lt;li&gt; download and install &lt;a target=&quot;_blank&quot; title=&quot;External link to http://www.clamp-it.org/code/moodle-liberal-arts-edition-v10/&quot; href=&quot;http://www.clamp-it.org/code/moodle-liberal-arts-edition-v10/&quot; class=&quot;externalLink&quot;&gt;Moodle Liberal Arts Edition&lt;/a&gt; and add my goodies to it.&lt;/li&gt;&lt;ul&gt;&lt;li&gt; over Christmas break&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;</description>
<link>http://www.earlham.edu/markp/miss/#%5B%5BMoodle%20versions%5D%5D</link>
<pubDate>Tue, 20 Oct 2009 14:36:00 GMT</pubDate>
</item>
<item>
<title>Moodlerooms modules</title>
<description>&lt;a target=&quot;_blank&quot; title=&quot;External link to http://development.moodlerooms.com/index.php&quot; href=&quot;http://development.moodlerooms.com/index.php&quot; class=&quot;externalLink&quot;&gt;Moodlerooms custom stuff&lt;/a&gt;&lt;br&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr class=&quot;evenRow&quot;&gt;&lt;td align=&quot;center&quot;&gt;Assessment_Module_for_1.9&lt;/td&gt;&lt;td&gt;	 	93.7KB&lt;/td&gt;&lt;td&gt;	 20 October 2008, 07:07 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;oddRow&quot;&gt;&lt;td align=&quot;center&quot;&gt;Course_Management_Block_for_1.9&lt;/td&gt;&lt;td&gt;	 	46.5KB&lt;/td&gt;&lt;td&gt;	10 October 2008, 01:00 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;evenRow&quot;&gt;&lt;td align=&quot;center&quot;&gt;Flex_Page_for_1.9&lt;/td&gt;&lt;td&gt;	 	101.4KB&lt;/td&gt;&lt;td&gt;	20 October 2008, 05:04 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;oddRow&quot;&gt;&lt;td align=&quot;center&quot;&gt;Google_1.0_for_Moodle_1.9&lt;/td&gt;&lt;td&gt;	 	1MB&lt;/td&gt;&lt;td&gt;	19 February 2009, 07:39 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;evenRow&quot;&gt;&lt;td align=&quot;center&quot;&gt;Themed_Resource_for_1.9&lt;/td&gt;&lt;td&gt;	 	19.2KB&lt;/td&gt;&lt;td&gt;	3 October 2008, 04:46 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;oddRow&quot;&gt;&lt;td align=&quot;center&quot;&gt;Trouble_Ticket_Block_for_1.9&lt;/td&gt;&lt;td&gt;	 	49.6KB&lt;/td&gt;&lt;td&gt;	2 December 2008, 05:01 PM&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</description>
<link>http://www.earlham.edu/markp/miss/#%5B%5BMoodlerooms%20modules%5D%5D</link>
<pubDate>Mon, 21 Sep 2009 15:43:00 GMT</pubDate>
</item>
<item>
<title>Git on Martin's machine</title>
<description>I don't know how useful this might be, but here it is: &lt;a target=&quot;_blank&quot; title=&quot;External link to http://dev.laptop.org/git/users/martin/moodle.git/?h=mdl19-xs&quot; href=&quot;http://dev.laptop.org/git/users/martin/moodle.git/?h=mdl19-xs&quot; class=&quot;externalLink&quot;&gt;index : users/martin/moodle.git&lt;/a&gt;&lt;br&gt;</description>
<link>http://www.earlham.edu/markp/miss/#%5B%5BGit%20on%20Martin's%20machine%5D%5D</link>
<pubDate>Mon, 21 Sep 2009 15:40:00 GMT</pubDate>
</item>
<item>
<title>Errors in new theme</title>
<description>Got new Parchment theme. Generates error:&lt;br&gt;&lt;blockquote&gt;Notice: Undefined property: stdClass::$parent in /usr/home/markp/public_html/moo-t95/lib/weblib.php on line 2496&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;When I go to the Notifications page I get an unrelated error:&lt;br&gt;&lt;blockquote&gt;&quot;Warning: Call-time pass-by-reference has been deprecated in /usr/home/markp/public_html/moo-t95/blocks/yui_menu/block_yui_menu.php on line 63&quot;&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;I removed all the list code from menu.php but adding back a list item does not make a difference. &lt;br&gt;The Anomaly theme does not generate this error.&lt;br&gt;</description>
<link>http://www.earlham.edu/markp/miss/#%5B%5BErrors%20in%20new%20theme%5D%5D</link>
<pubDate>Wed, 26 Aug 2009 20:20:00 GMT</pubDate>
</item>
<item>
<title>MyMoodle new version</title>
<description>On 17th Aug &lt;a tiddlylink=&quot;Minh-Tam&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Minh-Tam&quot; href=&quot;#Minh-Tam&quot; class=&quot;externalLink&quot;&gt;Minh-Tam&lt;/a&gt; Nguyen &lt;a target=&quot;_blank&quot; title=&quot;External link to http://tracker.moodle.org/browse/MDL-19430&quot; href=&quot;http://tracker.moodle.org/browse/MDL-19430&quot; class=&quot;externalLink&quot;&gt;uploaded an update&lt;/a&gt; to the &lt;a tiddlylink=&quot;MyMoodle for 1.9.5&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MyMoodle for 1.9.5&quot; href=&quot;#MyMoodle%20for%201.9.5&quot; class=&quot;externalLink&quot;&gt;MyMoodle for 1.9.5&lt;/a&gt; package:&lt;br&gt;&lt;blockquote&gt;I uploaded a new package of files: &lt;a tiddlylink=&quot;MDL-19430&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MDL-19430&quot; href=&quot;#MDL-19430&quot; class=&quot;externalLink&quot;&gt;MDL-19430&lt;/a&gt; (20090818).zip&lt;br&gt;I have made a number of changes to improve security, maintainability and performance, as suggested by Ashley Holman.&lt;br&gt;I have also made changes to the install.txt to hopefully avoid the confusion Mark went through.&lt;br&gt;This package is straight from of my installation of 1.9.5, and Penny's patch also works fine on 1.9.5, once you create the 'local' folder. &lt;br&gt;&lt;/blockquote&gt;I unpacked this and found that there were three files different:&lt;br&gt;&lt;pre&gt;MDL-19430-0818]$ diff -qr local/ ~/public_html/moo-195/local/
Only in local/: install.txt
Files local/lib.php and /home/markp/public_html/moo-195/local/lib.php differ
Files local/move.php and /home/markp/public_html/moo-195/local/move.php differ
Only in local/: num.php
&lt;/pre&gt;Suggest copying over these files and then remaking the tar/zip archive.&lt;br&gt;&lt;pre&gt;MDL-19430-0818/local]$ cp *.php ~/public_html/moo-195/local
moo-plugins/mymoodle/MDL-19430-0818/local]$ cp *.php ~/public_html/moo-t95/local
&lt;/pre&gt;&lt;hr&gt;&lt;br&gt;In moo-t95 the php debugging is switched on. Get the following errors:&lt;br&gt;&lt;pre&gt;Notice: Undefined variable: site in /usr/home/markp/public_html/moo-t95/local/lib.php on line 169
Notice: Trying to get property of non-object in /usr/home/markp/public_html/moo-t95/local/lib.php on line 169
&lt;/pre&gt;When I switch back to the previous versions of local/lib.php and local/move.php the errors go away.&lt;br&gt;&lt;br&gt;&lt;hr&gt;&lt;br&gt;Posted the problem to the Tracker: &lt;a class=&quot;button&quot; title=&quot;show problem&quot; href=&quot;javascript:;&quot;&gt;problem&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;&lt;blockquote&gt;Mark Pearson added a comment - 18/Aug/09 05:25 AM&lt;br&gt;I downloaded the &lt;a tiddlylink=&quot;MDL-19430&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MDL-19430&quot; href=&quot;#MDL-19430&quot; class=&quot;externalLink&quot;&gt;MDL-19430&lt;/a&gt; (20090818).zip and substituted it into a working 1.9.5 system where the previous version had worked fine. I found two errors:&lt;br&gt;1) The pulldown menu for number of courses always has &quot;10&quot; at the bottom (not there before)&lt;br&gt;2) Switch on debug in administration and get the following notices:&lt;br&gt;&lt;br&gt;Notice: Undefined variable: site in /usr/home/markp/public_html/moo-195/local/lib.php on line 169&lt;br&gt;Notice: Trying to get property of non-object in /usr/home/markp/public_html/moo-195/local/lib.php on line 169&lt;br&gt;&lt;br&gt;I thought you should know.&lt;/blockquote&gt;&lt;/div&gt; &lt;br&gt;And got &lt;a class=&quot;button&quot; title=&quot;show this reply&quot; href=&quot;javascript:;&quot;&gt;this reply&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;&lt;blockquote&gt;&lt;a tiddlylink=&quot;Minh-Tam&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Minh-Tam&quot; href=&quot;#Minh-Tam&quot; class=&quot;externalLink&quot;&gt;Minh-Tam&lt;/a&gt; Nguyen added a comment - 18/Aug/09 02:19 PM&lt;br&gt;Thank you Mark for those two points.&lt;br&gt;The extra 10 (if the user has access to less than 10 courses) was mainly to allow people to set a higher number than they currently have, in anticipation of soon getting more.&lt;br&gt;However your comment made me realise that this wasn't the right solution. Instead, I have now changed it to be &quot;Always show all&quot;, 1, 2, 3, etc. up to the number of courses. &lt;a tiddlylink=&quot;THis&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #THis&quot; href=&quot;#THis&quot; class=&quot;externalLink&quot;&gt;THis&lt;/a&gt; shoudl allow users to set it to 'Always all' and know that new courses will show.&lt;br&gt;I have also changed the code to avoid that error message. I guess I was a little too keen in removing unused variables.&lt;br&gt;&lt;a tiddlylink=&quot;CHeers&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #CHeers&quot; href=&quot;#CHeers&quot; class=&quot;externalLink&quot;&gt;CHeers&lt;/a&gt;,&lt;br&gt;&lt;a tiddlylink=&quot;Minh-Tam&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Minh-Tam&quot; href=&quot;#Minh-Tam&quot; class=&quot;externalLink&quot;&gt;Minh-Tam&lt;/a&gt;&lt;/blockquote&gt;&lt;/div&gt; &lt;br&gt;I downloaded his new version. Overwrote the &lt;em&gt;local&lt;/em&gt; folder in moo-195. It worked with no errors. Copied over the stuff and that works too. &lt;br&gt;&lt;a class=&quot;button&quot; title=&quot;show code&quot; href=&quot;javascript:;&quot;&gt;code&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;Check that code versions are in fact different:&lt;br&gt;&lt;pre&gt;moo-plugins/mymoodle/MDL-19430-new]$ diff -qr local/ ~/public_html/moo-t95/local/
Only in local/: install.txt
Files local/lang/de/local.php and /home/markp/public_html/moo-t95/local/lang/de/local.php differ
Files local/lang/en_utf8/local.php and /home/markp/public_html/moo-t95/local/lang/en_utf8/local.php differ
Files local/lib.php and /home/markp/public_html/moo-t95/local/lib.php differ
Files local/move.php and /home/markp/public_html/moo-t95/local/move.php differ
Only in local/: num.php
&lt;/pre&gt;Copy files:&lt;br&gt;&lt;pre&gt;moo-plugins/mymoodle/MDL-19430-new]$ cp -R local/* ~/public_html/moo-t95/local/
&lt;/pre&gt;That does it:&lt;br&gt;&lt;pre&gt;/moo-plugins/mymoodle/MDL-19430-new]$ diff -qr local/ ~/public_html/moo-t95/local/
&lt;/pre&gt;&lt;/div&gt; &lt;br&gt;&lt;h2&gt;&lt;a tiddlylink=&quot;ToDo&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #ToDo&quot; href=&quot;#ToDo&quot; class=&quot;externalLink&quot;&gt;ToDo&lt;/a&gt;&lt;/h2&gt;Pack this version into TGZ and copy to paz for Aaron.&lt;br&gt;&lt;pre&gt;moo-patch/mymoodle_archive]$ tar -cvzf ../mymoodle_gui_new.tgz *
&lt;/pre&gt;</description>
<category>myMoodle</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BMyMoodle%20new%20version%5D%5D</link>
<pubDate>Mon, 17 Aug 2009 20:19:00 GMT</pubDate>
</item>
<item>
<title>MyMoodle for 1.9.5</title>
<description>Having sussed out the &lt;a tiddlylink=&quot;More on MyMoodle&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #More on MyMoodle&quot; href=&quot;#More%20on%20MyMoodle&quot; class=&quot;externalLink&quot;&gt;local_mymoodle_patch&lt;/a&gt; I went ahead with installation of &lt;em&gt;&lt;a tiddlylink=&quot;MDL-19430&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MDL-19430&quot; href=&quot;#MDL-19430&quot; class=&quot;externalLink&quot;&gt;MDL-19430&lt;/a&gt;+(20090721).zip&lt;/em&gt;:&lt;br&gt;&lt;h3&gt;INSTALLATION STEPS:&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;Log in to your Moodle admin and go to '/moodle/user/profile/index.php'. Create two new user profile fields of type 'Text input':&lt;/li&gt;&lt;ul&gt;&lt;li&gt; shortname: 'myorder'&lt;/li&gt;&lt;ul&gt;&lt;li&gt;    max length: 2048&lt;/li&gt;&lt;li&gt;    all other settings are up to you&lt;/li&gt;&lt;/ul&gt;&lt;li&gt; shortname: 'mynumber'&lt;/li&gt;&lt;ul&gt;&lt;li&gt;    max length: 3&lt;/li&gt;&lt;li&gt;    all other settings are up to you&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;Copy the 'local' folder to '/moodle/local'&lt;/li&gt;&lt;li&gt; Append below CSS to '/moodle/theme/standard/styles_layout.css'&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;Results&lt;/h3&gt;Great success &lt;br&gt;&lt;ul&gt;&lt;li&gt; &lt;a target=&quot;_blank&quot; title=&quot;External link to graphics/mymoodle_ui-improvement.png&quot; href=&quot;graphics/mymoodle_ui-improvement.png&quot; class=&quot;externalLink&quot;&gt;screenshot&lt;/a&gt;&lt;/li&gt;&lt;li&gt; &lt;a target=&quot;_blank&quot; title=&quot;External link to graphics/mymoodle_ui_editmode.png&quot; href=&quot;graphics/mymoodle_ui_editmode.png&quot; class=&quot;externalLink&quot;&gt;edit MyMoodle display&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt; Create tar archive&lt;/h3&gt;&lt;a class=&quot;button&quot; title=&quot;show code&quot; href=&quot;javascript:;&quot;&gt;code&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;&lt;pre&gt;[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive]$ mkdir my
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive]$ cd my
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive/my]$ cp ~/public_html/moo-t95/my/* .
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive/my]$ ls
hook-for-a-local-my-moodle-195.patch    index.php.bak
index.php                               pagelib.php
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive/my]$ rm pagelib.php
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive/my]$ cd ..
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive]$ cp -r ~/public_html/moo-t95/local .
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive]$ sudo chown -R www:www local
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive]$ sudo chown -R www:www my
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive]$ mkdir theme
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive]$ mkdir theme/standard
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive]$ cp ~/public_html/moo-t95/theme/standard/styles_layout.css theme/standard/styles_layout.css
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive]$ sudo chown -R www:www theme/
[markp@rublev /usr/home/markp/moo-patch/mymoodle_archive]$ tar -cvzf ../mymoodle_gui.tgz *
a local
a local/images
a local/lang
a local/lib.php
a local/move.php
a local/lang/de
a local/lang/en_utf8
a local/lang/en_utf8/local.php
a local/lang/de/local.php
a local/images/Bottom.gif
a local/images/Down.gif
a local/images/MyMinus.jpg
a local/images/MyPlus.jpg
a local/images/Top.gif
a local/images/Up.gif
a my
a my/index.php.bak
a my/index.php
a my/hook-for-a-local-my-moodle-195.patch
a theme
a theme/standard
a theme/standard/styles_layout.css
&lt;/pre&gt;&lt;/div&gt; &lt;br&gt;&lt;hr&gt;&lt;h2&gt;Try out on &lt;em&gt;moo-195&lt;/em&gt; installation:&lt;/h2&gt;&lt;ul&gt;&lt;li&gt; Copy over &lt;em&gt;mymoodle_gui.tgz&lt;/em&gt; to moodle root&lt;/li&gt;&lt;li&gt; unpack with &lt;code&gt;tar -xvf mymoodle_gui.tgz&lt;/code&gt;&lt;/li&gt;&lt;li&gt; don't forget to set up new Profile fields with Administration : Users : Accounts : User profile fields&lt;/li&gt;&lt;/ul&gt;&lt;a target=&quot;_blank&quot; title=&quot;External link to graphics/new_mymoodle_ui.png&quot; href=&quot;graphics/new_mymoodle_ui.png&quot; class=&quot;externalLink&quot;&gt;works great&lt;/a&gt;&lt;br&gt;&lt;hr&gt;Check out &lt;a tiddlylink=&quot;MyMoodle new version&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MyMoodle new version&quot; href=&quot;#MyMoodle%20new%20version&quot; class=&quot;externalLink&quot;&gt;MyMoodle new version&lt;/a&gt;</description>
<category>myMoodle</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BMyMoodle%20for%201.9.5%5D%5D</link>
<pubDate>Thu, 13 Aug 2009 15:27:00 GMT</pubDate>
</item>
<item>
<title>More on MyMoodle</title>
<description>I want to test out the &lt;a target=&quot;_blank&quot; title=&quot;External link to http://tracker.moodle.org/browse/MDL-19430&quot; href=&quot;http://tracker.moodle.org/browse/MDL-19430&quot; class=&quot;externalLink&quot;&gt;user-determined order and number of courses on myMoodle&lt;/a&gt; (and discussion : &lt;a target=&quot;_blank&quot; title=&quot;External link to http://moodle.org/mod/forum/discuss.php?d=122236&quot; href=&quot;http://moodle.org/mod/forum/discuss.php?d=122236&quot; class=&quot;externalLink&quot;&gt;user-determined order of courses on myMoodle&lt;/a&gt;) to see whether this hides courses in hidden categories. &lt;br&gt;I'm using the &lt;em&gt;public_html/moo-t95&lt;/em&gt; test version so that if it screws up I'm not sunk.&lt;br&gt;&lt;ol&gt;&lt;li&gt; Revert the files that we patched here : &lt;a tiddlylink=&quot;Hide courses in MyMoodle&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Hide courses in MyMoodle&quot; href=&quot;#Hide%20courses%20in%20MyMoodle&quot; class=&quot;externalLink&quot;&gt;Hide courses in MyMoodle&lt;/a&gt; , ie &lt;em&gt;course/lib.php&lt;/em&gt; and &lt;em&gt;lib/datalib.php&lt;/em&gt;&lt;/li&gt;&lt;li&gt; Apply &lt;em&gt;0001-hook-for-a-local-my-moodle.patch&lt;/em&gt; (in moo-plugins/mymoodle&lt;/li&gt;&lt;li&gt; Install the code &lt;a class=&quot;button&quot; title=&quot;show installation steps&quot; href=&quot;javascript:;&quot;&gt;installation steps&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;&lt;blockquote&gt;INSTALLATION STEPS:&lt;br&gt;1. Log in to your Moodle admin and go to '/moodle/user/profile/index.php'. Create two new user profile&lt;br&gt; fields of type 'Text input':&lt;br&gt;  * shortname: 'myorder'&lt;br&gt;    max length: 2048&lt;br&gt;    all other settings are up to you&lt;br&gt;  * shortname: 'mynumber'&lt;br&gt;    max length: 3&lt;br&gt;    all other settings are up to you&lt;br&gt;&lt;br&gt;2. Copy the 'local' folder to '/moodle/local'&lt;br&gt;&lt;br&gt;3. Append below CSS to '/moodle/theme/standard/styles_layout.css'&lt;br&gt;&lt;br&gt;Users may need to log out for changes to take effect.&lt;/blockquote&gt;&lt;/div&gt; &lt;/li&gt;&lt;/ol&gt;I had some funnies with the small set of courses there so I rejigged the config.php so that it used the 'moomy' database and data dir.&lt;br&gt;&lt;pre&gt;$CFG-&amp;gt;wwwroot   = 'http://rublev.lly.earlham.edu/~markp/moo-t95';
$CFG-&amp;gt;dirroot   = '/usr/home/markp/public_html/moo-t95';
&lt;/pre&gt;Now I'm ready to apply the patch. &lt;strong&gt;But&lt;/strong&gt; when I examine the patch file it refers to a directory that does not exist:&lt;br&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr class=&quot;evenRow&quot;&gt;&lt;td align=&quot;left&quot;&gt;local/lib.php&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;7&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;oddRow&quot;&gt;&lt;td align=&quot;left&quot;&gt;my/index.php&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;58&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;The dir &lt;em&gt;local&lt;/em&gt; does not exist in any of my installs. Should I check to see whether it exists in the latest Moodle download?&lt;br&gt;&lt;hr&gt;First attempt at patch &lt;code&gt;public_html/moo-t95]$ patch &amp;lt;0001-hook-for-a-local-my-moodle.patch&lt;/code&gt; &lt;a class=&quot;button&quot; title=&quot;show output&quot; href=&quot;javascript:;&quot;&gt;output&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;&lt;pre&gt;[markp@rublev /usr/home/markp/public_html/moo-t95]$ patch &amp;lt;0001-hook-for-a-local-my-moodle.patch                Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From ec94245e7ebf9ef64b41af2fe109941fb5d1fe14 Mon Sep 17 00:00:00 2001
|From: David Drummond &amp;lt;david@catalyst.net.nz&amp;gt;
|Date: Tue, 21 Oct 2008 13:18:10 +0100
|Subject: [PATCH] hook for a local my moodle
|
|---
| local/lib.php |    7 +++++-
| my/index.php  |   58 ++++++++++++++++++++++++++++++++++++--------------------
| 2 files changed, 43 insertions(+), 22 deletions(-)
|
|diff --git a/my/index.php b/my/index.php
|index 449a954..0a0f7e9 100644
|--- a/my/index.php
|+++ b/my/index.php
--------------------------
Patching file index.php using Plan A...
Hunk #1 failed at 63.
1 out of 1 hunks failed--saving rejects to index.php.rej
Hmm...  Ignoring the trailing garbage.
done
&lt;/pre&gt;&lt;/div&gt; &lt;br&gt;Here's what I now think is going on. &lt;br&gt;&lt;ol&gt;&lt;li&gt; Use the Penny Leach file to patch the moodle/my/index.php and then &lt;/li&gt;&lt;li&gt; Install the &lt;a tiddlylink=&quot;Minh-Tam&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Minh-Tam&quot; href=&quot;#Minh-Tam&quot; class=&quot;externalLink&quot;&gt;Minh-Tam&lt;/a&gt; Nguyen stuff.&lt;/li&gt;&lt;/ol&gt;&lt;br&gt;Move file to the &lt;em&gt;my&lt;/em&gt; directory,and then &lt;code&gt; &lt;/code&gt; &lt;strong&gt;but&lt;/strong&gt; &lt;a class=&quot;button&quot; title=&quot;show still failed:&quot; href=&quot;javascript:;&quot;&gt;still failed:&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;&lt;pre&gt;Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From ec94245e7ebf9ef64b41af2fe109941fb5d1fe14 Mon Sep 17 00:00:00 2001
|From: David Drummond &amp;lt;david@catalyst.net.nz&amp;gt;
|Date: Tue, 21 Oct 2008 13:18:10 +0100
|Subject: [PATCH] hook for a local my moodle
|
|---
| local/lib.php |    7 +++++-
| my/index.php  |   58 ++++++++++++++++++++++++++++++++++++--------------------
| 2 files changed, 43 insertions(+), 22 deletions(-)
|
|diff --git a/my/index.php b/my/index.php
|index 449a954..0a0f7e9 100644
|--- a/my/index.php
|+++ b/my/index.php
--------------------------
Patching file index.php using Plan A...
Hunk #1 failed at 63.
1 out of 1 hunks failed--saving rejects to index.php.rej
Hmm...  Ignoring the trailing garbage.
done
&lt;/pre&gt;&lt;/div&gt; &lt;br&gt;So let's apply the code that's new by hand:&lt;br&gt;At line 63:&lt;br&gt;&lt;pre&gt;--- 63,111 ----
      print_container_start(TRUE);

  /// The main overview in the middle of the page

+     // look for a custom handler
+
+     $locallib = $CFG-&amp;gt;dirroot . '/local/lib.php';
+
+     if (file_exists($locallib)) {
+          require_once($locallib);
      }

+     if (function_exists('local_my_moodle') ) {
+
+         local_my_moodle();
+
+     } else {
+
+         // limits the number of courses showing up
&lt;/pre&gt;And at 111 we terminate the &lt;em&gt;else&lt;/em&gt; clause :&lt;br&gt;&lt;pre&gt;
+
      }

      print_container_end();
&lt;/pre&gt;&lt;hr&gt;Having fixed the index.php now let's make a diff file so that we can reapply the patch:&lt;br&gt;&lt;pre&gt;$ diff -iwBu index.php.bak index.php &amp;gt;hook-for-a-local-my-moodle-195.patch
&lt;/pre&gt;And upload this back to &lt;a tiddlylink=&quot;MDL-19430&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MDL-19430&quot; href=&quot;#MDL-19430&quot; class=&quot;externalLink&quot;&gt;MDL-19430&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a tiddlylink=&quot;MyMoodle for 1.9.5&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #MyMoodle for 1.9.5&quot; href=&quot;#MyMoodle%20for%201.9.5&quot; class=&quot;externalLink&quot;&gt;MyMoodle for 1.9.5&lt;/a&gt;</description>
<category>myMoodle</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BMore%20on%20MyMoodle%5D%5D</link>
<pubDate>Thu, 13 Aug 2009 14:01:00 GMT</pubDate>
</item>
<item>
<title>Assignment ZIP patch</title>
<description>Apply the Assignment ZIP patch (from &lt;a target=&quot;_blank&quot; title=&quot;External link to http://tracker.moodle.org/browse/MDL-7206&quot; href=&quot;http://tracker.moodle.org/browse/MDL-7206&quot; class=&quot;externalLink&quot;&gt;here&lt;/a&gt;) called &lt;em&gt;download_all_assignments_HEAD.patch&lt;/em&gt; &lt;a class=&quot;button&quot; title=&quot;show results&quot; href=&quot;javascript:;&quot;&gt;results&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;&lt;pre&gt;[markp@rublev /usr/home/markp/public_html/moo-t95]$ patch &amp;lt;download_all_assignments_HEAD.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|### Eclipse Workspace Patch 1.0
|#P CVS
|Index: mod/assignment/submissions.php
|===================================================================
|RCS file: /cvsroot/moodle/moodle/mod/assignment/submissions.php,v
|retrieving revision 1.46
|diff -u -r1.46 submissions.php
|--- mod/assignment/submissions.php     5 Jun 2008 10:31:38 -0000       1.46
|+++ mod/assignment/submissions.php     13 Jan 2009 03:26:00 -0000
--------------------------
Patching file mod/assignment/submissions.php using Plan A...
Hunk #1 succeeded at 6.
Hunk #2 succeeded at 41.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: mod/assignment/lib.php
|===================================================================
|RCS file: /cvsroot/moodle/moodle/mod/assignment/lib.php,v
|retrieving revision 1.373
|diff -u -r1.373 lib.php
|--- mod/assignment/lib.php     3 Jan 2009 13:16:59 -0000       1.373
|+++ mod/assignment/lib.php     13 Jan 2009 03:26:00 -0000
--------------------------
Patching file mod/assignment/lib.php using Plan A...
Hunk #1 succeeded at 1137 (offset -3 lines).
Hunk #2 succeeded at 3045 with fuzz 1 (offset -194 lines).
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: mod/assignment/type/online/assignment.class.php
|===================================================================
|RCS file: /cvsroot/moodle/moodle/mod/assignment/type/online/assignment.class.php,v
|retrieving revision 1.67
|diff -u -r1.67 assignment.class.php
|--- mod/assignment/type/online/assignment.class.php    11 Oct 2008 17:33:21 -0000      1.67
|+++ mod/assignment/type/online/assignment.class.php    13 Jan 2009 03:26:00 -0000
--------------------------
Patching file mod/assignment/type/online/assignment.class.php using Plan A...
Hunk #1 succeeded at 283 with fuzz 2 (offset 2 lines).
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: mod/assignment/type/upload/assignment.class.php
|===================================================================
|RCS file: /cvsroot/moodle/moodle/mod/assignment/type/upload/assignment.class.php,v
|retrieving revision 1.66
|diff -u -r1.66 assignment.class.php
|--- mod/assignment/type/upload/assignment.class.php    13 Nov 2008 08:41:02 -0000      1.66
|+++ mod/assignment/type/upload/assignment.class.php    13 Jan 2009 03:26:00 -0000
--------------------------
Patching file mod/assignment/type/upload/assignment.class.php using Plan A...
Hunk #1 succeeded at 1053 with fuzz 2 (offset 12 lines).
Hunk #2 failed at 1143.
1 out of 2 hunks failed--saving rejects to mod/assignment/type/upload/assignment.class.php.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: mod/assignment/type/uploadsingle/assignment.class.php
|===================================================================
|RCS file: /cvsroot/moodle/moodle/mod/assignment/type/uploadsingle/assignment.class.php,v
|retrieving revision 1.43
|diff -u -r1.43 assignment.class.php
|--- mod/assignment/type/uploadsingle/assignment.class.php      16 Aug 2008 18:13:38 -0000      1.43
|+++ mod/assignment/type/uploadsingle/assignment.class.php      13 Jan 2009 03:26:00 -0000
--------------------------
Patching file mod/assignment/type/uploadsingle/assignment.class.php using Plan A...
Hunk #1 succeeded at 180 with fuzz 1 (offset 2 lines).
done
&lt;/pre&gt;&lt;/div&gt; &lt;br&gt;Although there was one part that apparently failed, all is hunky dory since the &lt;em&gt;rej&lt;/em&gt; file shows &lt;a class=&quot;button&quot; title=&quot;show nothing important&quot; href=&quot;javascript:;&quot;&gt;nothing important&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;&lt;pre&gt;less *.rej
***************
*** 1103,1108 ****
      }
  }

-
-
- ?&amp;gt;
--- 1143,1146 ----
      }
  }

+ ?&amp;gt;
&lt;/pre&gt;&lt;/div&gt; &lt;br&gt;&lt;dl&gt;&lt;dt&gt;apply patch with : &lt;/dt&gt;&lt;dd&gt; &lt;code&gt;/markp/public_html/moo-t95]$ patch &amp;lt;download_all_assignments_HEAD.patch&lt;/code&gt;&lt;/dd&gt;&lt;/dl&gt;Actually, there was a rather severe problem &lt;a target=&quot;_blank&quot; title=&quot;External link to graphics/problems_assignzip_patch.png&quot; href=&quot;graphics/problems_assignzip_patch.png&quot; class=&quot;externalLink&quot;&gt;screenshot&lt;/a&gt;&lt;br&gt;I traced it to this code:&lt;br&gt;&lt;pre&gt;   3083     return $path;
   3084 }
   3085 ?&amp;gt;/**
   3086  * This function is used by the reset_course_userdata function in moodlelib.
   3087  * This function will remove all posts from the specified assignment
   3088  * and clean up any related data.
   3089  * @param $data the data submitted from the reset course.
   3090  * @return array status array
   3091  */
&lt;/pre&gt;Somehow a php terminator got inserted before the end of the file &lt;em&gt;mod/assignment/lib.php&lt;/em&gt;. I can edit this out, but the question is, how can I edit the patch file to remove this?&lt;br&gt;Taking another look at the patch file we find that the first section gets applied properly &lt;a class=&quot;button&quot; title=&quot;show code&quot; href=&quot;javascript:;&quot;&gt;code&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;&lt;pre&gt;RCS file: /cvsroot/moodle/moodle/mod/assignment/lib.php,v
retrieving revision 1.373
diff -u -r1.373 lib.php
--- mod/assignment/lib.php      3 Jan 2009 13:16:59 -0000       1.373
+++ mod/assignment/lib.php      13 Jan 2009 03:26:00 -0000
@@ -1140,7 +1140,9 @@
             print_heading(get_string('nosubmitusers','assignment'));
             return true;
         }
-
+        if ($this-&amp;gt;assignment-&amp;gt;assignmenttype=='upload' || $this-&amp;gt;assignment-&amp;gt;assignmenttype=='onlin
e' || $this-&amp;gt;assignment-&amp;gt;assignmenttype=='uploadsingle') {
+            echo '&amp;lt;div style=&quot;text-align:right&quot;&amp;gt;&amp;lt;a href=&quot;submissions.php?id='.$this-&amp;gt;cm-&amp;gt;id.'&amp;amp;amp;do
wnload=zip&quot;&amp;gt;'.get_string('downloadall', 'assignment').'&amp;lt;/div&amp;gt;';
+        }
     /// Construct the SQL

         if ($where = $table-&amp;gt;get_sql_where()) {
&lt;/pre&gt;&lt;/div&gt; But this part significantly does not:&lt;br&gt;&lt;pre&gt;@@ -3237,4 +3239,44 @@
         default: return null;
     }
 }
-?&amp;gt;
+
+/**
+ * generate zip file from array of given files
+ * @param array $filesforzipping - array of files to pass into archive_to_pathname
&lt;/pre&gt;The patch fails to find &lt;code&gt;         default: return null;&lt;/code&gt; which is presumably right at the end of the file, perhaps because it's no longer there. What should happen is that the &lt;code&gt;?&amp;gt;&lt;/code&gt; gets replaced by two extra functions and finished off with &lt;code&gt;?&amp;gt;&lt;/code&gt;&lt;br&gt;&lt;h2&gt;Next&lt;/h2&gt;&lt;ol&gt;&lt;li&gt; edit the assignment/lib.php and remove the erroneous &lt;code&gt;?&amp;gt;&lt;/code&gt;&lt;/li&gt;&lt;li&gt; redo the diff with &lt;code&gt;markp/public_html/moo-t95]$ diff -iwBu mod/assignment/lib.php.orig mod/assignment/lib.php &amp;gt;assignment_zip-lib.patch&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;&lt;a tiddlylink=&quot;Assignment ZIP patch #2&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #Assignment ZIP patch #2&quot; href=&quot;#Assignment%20ZIP%20patch%20#2&quot; class=&quot;externalLink&quot;&gt;Assignment ZIP patch #2&lt;/a&gt;</description>
<category>assignment_zip</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BAssignment%20ZIP%20patch%5D%5D</link>
<pubDate>Wed, 12 Aug 2009 21:43:00 GMT</pubDate>
</item>
<item>
<title>Assignment ZIP patch #2</title>
<description>All the code looks OK, but when click on &lt;code&gt;[[downloadall]]&lt;/code&gt; we get a blank page.&lt;br&gt;So switch on debuggering (Home page : Administration: Server : Debug -&amp;gt; All : display). Get following message:&lt;br&gt;&lt;blockquote&gt;Fatal error: Call to undefined function get_file_storage() in /usr/home/markp/public_html/moo-t95/mod/assignment/type/uploadsingle/assignment.class.php on line 198&lt;br&gt;&lt;/blockquote&gt;&lt;a class=&quot;button&quot; title=&quot;show Posted to the Tracker:&quot; href=&quot;javascript:;&quot;&gt;Posted to the Tracker:&lt;/a&gt;&lt;div style=&quot;display: none;&quot; class=&quot;sliderPanel&quot;&gt;&lt;blockquote&gt;Mark Pearson added a comment - 13/Aug/09 04:24 AM&lt;br&gt;I tried applying download_all_assignments_HEAD.patch to a bog standard 1.9.5 installation. Several problems emerged:&lt;br&gt;1. in /mod/assignment/lib.php there was inserted a php terminator (?&amp;gt;) on line 3085 preventing the remaining two functions in the library from executing.&lt;br&gt;2. in /mod/assignment/type/upload the patch totally borked assignment.class.php so that all the code ended up in the .rej file and assignment.class.php had 0 bytes. I don't understand what went wrong there.&lt;br&gt;3. Even after I tidied things up by hand and did an experimental trial when I clicked on &lt;a tiddlylink=&quot;downloadall&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #downloadall&quot; href=&quot;#downloadall&quot; class=&quot;externalLink&quot;&gt;downloadall&lt;/a&gt; a blank page ensued. Switching full debugging on from the Admin interface revealed the following error message:&lt;br&gt;&lt;br&gt;Fatal error: Call to undefined function get_file_storage() in /usr/home/markp/public_html/moo-t95/mod/assignment/type/uploadsingle/assignment.class.php on line 198&lt;br&gt;&lt;br&gt;I could not find the function 'get_file_storage' in lib/file_lib.php but it's likely to be somewhere else.&lt;br&gt;&lt;br&gt;In short, the patch as available here does not seem to function with version 1.9.5. I do not have time to suss this out right now but will try to get it sorted in a couple of weeks after feeding the 5,000 multitudes with the Moodle loaves and fishes&lt;br&gt;&lt;br&gt;[ Permalink | « Hide ]&lt;br&gt;Dan Marsden added a comment - 13/Aug/09 05:24 AM&lt;br&gt;not surprisingly as HEAD == 2.0&lt;br&gt;&lt;br&gt;that patch likely won't apply nicely to HEAD either as a lot of structural changes have been made since. - I uploaded it here for future reference - I WILL get this in Moodle 2.0 before release!&lt;/blockquote&gt;&lt;/div&gt; &lt;br&gt;Patch only applies to 2.0. &lt;br&gt;So basically I've wasted a day and a half on this. Bugger!&lt;br&gt;</description>
<category>assignment_zip</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BAssignment%20ZIP%20patch%20%232%5D%5D</link>
<pubDate>Wed, 12 Aug 2009 21:41:00 GMT</pubDate>
</item>
<item>
<title>10 August 2009 changes to System role assignments</title>
<description>&lt;h2&gt;System Roles&lt;/h2&gt;&lt;dl&gt;&lt;dt&gt;Librarian Moodle Support&lt;/dt&gt;&lt;dd&gt; Reference Amy, Neal Reference.&lt;/dd&gt;&lt;dd&gt; unset &lt;em&gt;Initial Subscriptions&lt;/em&gt; so that they do not get email.&lt;/dd&gt;&lt;dd&gt; check 'hidden assignment' box so that no-one sees them&lt;/dd&gt;&lt;dd&gt; system wide role&lt;/dd&gt;&lt;dt&gt;Course Assistant&lt;/dt&gt;&lt;dd&gt; have &lt;strong&gt;removed&lt;/strong&gt; Cheri Gaddis from system-wide role&lt;/dd&gt;&lt;dd&gt; allocate to individual Categories&lt;/dd&gt;&lt;/dl&gt;</description>
<link>http://www.earlham.edu/markp/miss/#%5B%5B10%20August%202009%20changes%20to%20System%20role%20assignments%5D%5D</link>
<pubDate>Mon, 10 Aug 2009 14:04:00 GMT</pubDate>
</item>
<item>
<title>Allow uploading to Commiunity Docs</title>
<description>From Anne Hathaway:&lt;br&gt;&lt;blockquote&gt;The question I have is about limiting the folders people can upload to. I went to Electronic Records Management Committee, Update this Resource, and then to locally assigned roles. There I assigned our participants to be teachers for the Electronic Records Management Committee, not for the whole course, just that committee. However, they were not able to upload files to the committee. I made them teachers for the whole course, and then of course they could upload.&lt;br&gt;&lt;br&gt;My question is what was I doing wrong and can people be limited only to uploading to the committees they are assigned to? If either of you has a few minutes to show me this tomorrow that would be great. I'm hoping to leave a little early tomorrow so in the morning or around 2 would be best.&lt;br&gt;&lt;/blockquote&gt;Follow &lt;a target=&quot;_blank&quot; title=&quot;External link to http://docs.moodle.org/en/Override_permissions&quot; href=&quot;http://docs.moodle.org/en/Override_permissions&quot; class=&quot;externalLink&quot;&gt;these instructions&lt;/a&gt; :&lt;br&gt;&lt;h3&gt; Enabling teachers to override permissions&lt;/h3&gt;By default, only administrators are able to override permissions. Teachers can be enabled to do so as follows:&lt;br&gt;&lt;ol&gt;&lt;li&gt; Access Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles.&lt;/li&gt;&lt;li&gt; Edit the teacher role and change the capability moodle/&lt;a target=&quot;_blank&quot; title=&quot;External link to role:override&quot; href=&quot;role:override&quot; class=&quot;externalLink&quot;&gt;role:override&lt;/a&gt; (or moodle/&lt;a target=&quot;_blank&quot; title=&quot;External link to role:safeoverride&quot; href=&quot;role:safeoverride&quot; class=&quot;externalLink&quot;&gt;role:safeoverride&lt;/a&gt; in Moodle 1.9.3 onwards) to allow.&lt;/li&gt;&lt;li&gt; Click the button &quot;Save changes&quot;. &lt;strong&gt;done&lt;/strong&gt;&lt;/li&gt;&lt;li&gt; Click the tab &quot;Allow role overrides&quot; (in Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles).&lt;/li&gt;&lt;/ol&gt;   5. Check the appropriate box(s) in the teacher row to set which role(s) teachers can override. Most likely it will just be the student role (you don't want teachers to be able to override admins), so check the box where the teacher row intersects with the student column. &lt;strong&gt;applied to students only&lt;/strong&gt;&lt;br&gt;   6. Click the button &quot;Save changes&quot;. &lt;br&gt;If preferred, a new role for overriding permissions may be created and selected teachers assigned to it. &lt;br&gt;</description>
<link>http://www.earlham.edu/markp/miss/#%5B%5BAllow%20uploading%20to%20Commiunity%20Docs%5D%5D</link>
<pubDate>Fri, 07 Aug 2009 18:15:00 GMT</pubDate>
</item>
<item>
<title>Course restore issues</title>
<description>Uploaded Lyn Miller's &lt;a tiddlylink=&quot;REL342&quot; refresh=&quot;link&quot; target=&quot;_blank&quot; title=&quot;External link to #REL342&quot; href=&quot;#REL342&quot; class=&quot;externalLink&quot;&gt;REL342&lt;/a&gt; Historical Christianity from 0708 Moodle. Tried to do a Restore into the exisitng course. Old course weekly outline, fresh course topics outline. Result : most of the resources got stuck into Topic 0.&lt;br&gt;It looks like you need to match the Outlines &lt;strong&gt;exactly&lt;/strong&gt; (# weeks / topics) if you want to restore / import into a current course. Hmmm.&lt;br&gt;&lt;h2&gt;Workaround&lt;/h2&gt;Restore into &lt;strong&gt;new&lt;/strong&gt; course. But this does not help with user importing.&lt;br&gt;&lt;h2&gt;Update&lt;/h2&gt;I tried restoring a Scott Hess course (American Lit &lt;span&gt;—&lt;/span&gt; weekly 16 weeks) &lt;strong&gt;adding&lt;/strong&gt; it to the existing course. I changed the current course to match and then the process was successful and no screw ups.&lt;br&gt;</description>
<category>restore</category>
<category>1.9.5</category>
<link>http://www.earlham.edu/markp/miss/#%5B%5BCourse%20restore%20issues%5D%5D</link>
<pubDate>Fri, 07 Aug 2009 14:19:00 GMT</pubDate>
</item>
</channel>
</rss>