Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.4
-
Fix Version/s: 1.9.5
-
Component/s: Block: AJAX Marking
-
Labels:None
-
Environment:clean install 1.9.4 of moodle and the feb 2009 version of ajax marking
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
i have assigned a teacher role to the course, (teacher) added a student to the course, and added assignments to course.. got student to submitt assignment, one single file and advanced uploads.. logged in as teacher, tells me recent activity, student submitted work, ajax marking says hooray n othing to mark, when there is at least 4 assignments that require marking..
If this is a clean install you are likely experiencing the same problem I did. It did not create the config entries so it does not know which activities to check for work.
After you copy the directory to block and run notification it creates the block_ajax_marking table. However, it does not run the second half of the update script (detailed in db/upgrade.php) to populate the config entry.
After installing I had to manually increment the version number to make it run the upgrade script and re-detect the modules to add an entry to config_plugin table. After this it worked fine.
To increment the version just open block_ajax_marking.php and change $this->version = 2009051802;
Then go to the notification page and it will create the config entries.
You can check if this is the problem by enabling Debug mode and Display Debug. If you then go to a screen with the plugin it gives a warning about the foreach statement having an invalid argument (i.e. an empty array)