My students are uploading assignments which seem to be disappearing, at least from obvious view.
If I go to the assignment page, it says "No attempts have been made on this assignment". But I received emails when several of the students uploaded the assignment already. I just went into the course and looked in the moddata folder, and all of the turned-in work does exist there, but Moodle doesn't seem to realize it.
Please help -- does anyone know why this happened?
I see this thread may be a similar problem, but I cannot tell if it is exactly the same, and no solid answer was posted: http://moodle.org/mod/forum/discuss.php?d=137073
I don't admin this server, so I will have someone look into the potential disk space issue -- but are there any other solutions?
The grades still exist and I have backed them up.
I will try to restore an earlier backup to a new course to see if the problem exists in the backup, but I have been unable to do that yet because I am running into an XML error when I try to restore the course. I have had that happen before and I will try to fix it, just haven't been able to do it yet.
Our admin says:
"As it turns out the MySQL engine crashed and corrupted some database tables. I have repaired everything and it seems to be back to normal. Also, the disk space was low. That too has been fixed."
So one or both of those things may have been issues here.
Hey. I just experienced the exact same problem with the latest weekly build. Could you ask your admin which database tables were corrupted and what had to be done to repair them?
Thanks,
Brandon
So do we.. we still dont see the assignments, and it's been since an update.
Maybe the last weekly update repairs the problem? Thanks in advance
I updated yesterday to the weekly update 1.9.10 and had the same problem. Logging in as student I could see the file, but not as teacher.
Only teachers were appearing in the list of uploads. Looking at the graded roles, in Site Administration, Grades, general Settings, only administrators and teachers were checked. I have unchecked those, and checked Students, and everything is appearing now.
Thank youuuuuuuuuuuuuuuuuuuuuuuuuuu!!! ;)
Solved with that! I'll put the answer in another post that I opened!
Thanks
I have been watching this with interest - we have the same situation, but only for one student and only in one assignment! Does anyone have any ideas in that situation? 151 assignments submitted in one of 8 assignments in the course - and this one with no upload showing to Teacher (or Admin) in the assignment submissions (mark book page with quick grading option - but doesn't show with quick grading off either!) . . . but does show to student . . . and does show to Teacher/Admin when Grade is clicked to open up individual mark page for that student in that assignment.
I believe you are also suffering from this one: http://moodle.org/mod/forum/discuss.php?d=159586
Try resorting assignment submissions page by Last Modified, and you as a teacher will magically see student submission.
You are absolutely right . . . as if by magic clicking on Last Modified rearranged the order . . . brought Holly's files up . . . and changed Grade to Update!!!! Thank you - the world is now a far happier place!
Hi Linda,
What is your Moodle version?
I will add that to the ticket: MDL-25315
Please vote
1.9.7 - I can find the ticket you refer to - how do I 'vote'?
http://tracker.moodle.org/browse/MDL-25315
One needs to create an account in the tracker, and then click on the Vote link on the left of the ticket page
Thank you - strange that the login to Moodle.org doesn't also give login to the tracker . . . but I have now created an account and voted!
Thank you very much!
I had the same problem and this solved it for me.
This would have saved me a lot of time had I found it a little bit earlier.
Thanks for the tip, but it did not work for us. We updated Moodle to 1.9.9 few days ago and we have the same problem, files from students dont show up on teacher side, teacher can find them in files/modddata/assignment/123/file.txt
The file is there and the teacher can see and open the file (using the "files" option), when the teacher uses Assignment module, it shows that file has been submitted, saying: "View 1 submitted assignment" see picture (file4.jpg), and also its says also: "No files submitted yet" (lower), but when the teacher clicks on it (red arrow) Moodle open a new screen and says: "Nothing to display" (see lower panel in file4.jpg).
We tried to upgrade Moodle to 1.9.10+ (Build 2010117) without any sucess.
Any ideas?
Cheers Broddi

Re: Svar: Re: Assignment attempts disappearing- solved
When you click on the View 1 submitted assignment link (what I think of as the marking page), what are you seeing? This is the point at which it appeared we had no submission from the student, but the Grade link on the right of that screen, which opens the individual page relating to that one student, showed the uploaded files. On the marking page, I then clicked the Last modified link at the top of the column, which rearranged the column and the uploaded files for the one student were displayed as with all other students. We are using 1.9.7.

Hello to all
after reviewing line by line all libraries of submissions, i found the problem
in \mod\assignment\lib.php
line 1151 (or near), we have the sql query, only change it:
COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status ';
COALESCE(SIGN(CAST(s.timemarked as SIGNED) + SIGN(CAST(s.timemarked as SIGNED) - CAST(s.timemodified as SIGNED))), 0) AS status ';
i'm using mysql 5.5.8
when the clause try order this send a error because, timemarked sometimes is null and no have sign (is UNSIGNED in the DB)
regards ;)
For what its worth....
Pino's modification worked for me. Students submitted work, and teachers saw "view 2 submitted assignments". When the clicked on it they saw "Nothing to display".
I made the mods shown above (although I typed it wrong the first time ) and it now works perfectly. Suspect its a MySQL version issue?
Moodle 1.9.10+ (20110125)
MySQL 5.5.8
PHO 5.3.5
Pino, thank you very much
Thanks Pino, that was driving me nuts, worked like a charm
Hello to all:
I experienced the same problem, i'm using moodle 1.9.5
I tried what you suggested, but it didn't work for me.
Any other ideas?
This is driving me crazy!!!!!
I'll thank any help!!!!!!!!!!!!
We had a similar problem with 1.9.12+ (PostgreSQL 8.1.22) where clicking the status sort broke in a similar way. Only logging in and out remedied the problem.
One of our inhouse devs patched /mod/assignment/lib.php with the following attached file which appears to have fixed the problem.
Note this is compatible with postgreSQL, our Oracle team say this will not work on an Oracle database. All others, I don't actually know.
Cheers,
Adam
Great Pino!!!, a lot of problems solved!!!
Works, Pico, you are a genius. Thanks
Thank you Pino! You're a genious ...
As far as I am concerned I just followed your fix and it worked. This really shows how great this Moodle community is.
Thanks!
Thanks Pino for sharing.
thanks a lot
I seem to witness the same symptoms of viewing submitted assignments with result "Nothing to display". This has been happening for the last few versions of Moodle (v1.9 branch) and the teacher claimed that it started happening this school year (last 2 months). Moodle version 1.9.14, mysql 4.1.22, php 4.3.9, debug info is as follows:
Unknown column 'status' in 'order clause'
SELECT u.id, u.firstname, u.lastname, u.picture, u.imagealt, s.id AS submissionid, s.grade, s.submissioncomment, s.timemodified, s.timemarked FROM mdl_user u LEFT JOIN mdl_assignment_submissions s ON u.id = s.userid AND s.assignment = 8308 WHERE u.id IN (2202,2102,2096,2121,2112,2196,2109,2110,2111,2097,2095,2106,1962,2094,2103,2099,2101,2104,2108,2098,2105,2100,2113,2107) ORDER BY status ASC
- line 687 of lib/dmllib.php: call to debugging()
- line 967 of lib/dmllib.php: call to get_recordset_sql()
- line 1184 of mod/assignment/lib.php: call to get_records_sql()
- line 524 of mod/assignment/lib.php: call to assignment_upload->display_submissions()
- line 43 of mod/assignment/submissions.php: call to assignment_upload->submissions()
After some searching the initial error seems similar to MDL-29529 although that bug corresponds to Moodle version 2.1.1 (same error however). Any suggestions?
The latest release of Moodle (1.9.15 for me) is supposed to have a fix for bug MDL-29529. I expect to upgrade within a few days.
Pino you are an absolute legend!
I was a problem like that.
I solved it thanks to you.
Thank you very much.
I had started to have this problem, with new assignments (old still appeared). I solved it with the "Pino solution".
Thank you Pino, you're really great....
Hi Pino,
It looks like you came up with a good solution to this problem which I am currently experiencing (version 1.9.4). I'm a newbie with fixing bugs though and I don't know how to implement your fix. Any guidance would be greatly appreciated.
Hi, my name is luz, where did i find the lib.php or mod\ assigment, i have the same problem i could not see the my students list to apply the calification.
Hi, Pinooooo
Please help me, i dont know nothing about postgres or php or sql, how did i find that or how could i fix the assigment dissaper problem.
Please help me
Hello, I have give the solution in french forum.
Look the link:
Pino... You are the best...!!!!
Thanks a lot... my problem was causing by the MySQL upgrade... but... now, with the line changed in lib.php all work's fine...
Thanks again..:!!!
Perfecto, ahota todo va fino. Gracias
Thank you, Pino.
I actually had to modify two lines of code in the referenced directory. One line at 842, and the other line at 1171.
R. Russell Williams
Like Russ Williams, I had also to change 2 occurrences of the bug fix pointed out by Pino.
Thanks Pino!
Also, Thanks Russ (because otherwise I wouldn't catch this need. )
Dear Pino,
Thanks a lot for perfect solution.
I tried doing all, finally went to cpanel of my website and edited lib.php as per your instructions and .... wow.. it works!!!
I suggest all to adopt this simple solution.
Thanks n Regards,
Narayan Solanke
INDIA
Me habia vuelto un poco loco, si eres de los que les pasa lo mismo. Lo que debes hacer es:
1)Primero antes que nada, generate una copia de respaldo del lib.php, si algo sale mal, el que va pagar los paltos rotos serás tu con desveladas arreglando el problema.
2)Borrar la siguiente linea que muestro en rojo (ojo: búscala dos veces, pues aparaece en dos ocasiones en ese archivo) en la siguiente ruta /mod/assignment/lib.php
COALESCE(SIGN(SIGN(s.timemarked) + SIGN(s.timemarked - s.timemodified)), 0) AS status ';
Y reemplázalas por esta:
COALESCE(SIGN(CAST(s.timemarked as SIGNED) + SIGN(CAST(s.timemarked as SIGNED) - CAST(s.timemodified as SIGNED))), 0) AS status ';
BINGO! .... a dormir se ha dicho, ya debe estar listo jeje
Thank you very much Pino Calambrogio for your help .... let´s sleep zzzz
Excelente, gracias a todos por sus aportes. En especial a PINO.
Pedro gracias por tu traducción, me sirvio para saber que habia que reemplazar dos veces.
Funciona muy bien.
Saludos.
Celso.
Thank you, Pino! The Moodle community is awesome!
Gracias
Eres lo mas grande. estimado.
gracias por compartir esta solución.
+1000000
Thank you very much Pino. Muchas gracias Pino. You are wonderful! It is working. I am smiling again.
Jesus!!!
Thanks a lot, this was my problem and your answer help me.
Can someone help me! I am having the same issue. Assignments are not showing it says "Nothing to Display".
I have unchecked things and rechecked things and nothign worked. I did not up grade or change anything. On Friday 11/16/12 when I logged in to grade assignments this was happening. I clicked last modified and still nothing. I don't know what my MYSQL or version is.
I have asked my ECS (technology experts) at my school and they do not know anythign about this. They have no idea about MYSQL or teh database. No one else is having this issue on my campus with Moodle, at least to our knowledge.
Please help!
I had a similar issue. We upgraded from Moodle 1.9.8+ to Moodle 1.9.11.
The assignments went missing. Followed Claudia Palazzi 's solution and The issue was resolved.
Thank You,
Cheers,
Aindril
Pino, thanks very much! Angry students are happy again
Thanks I have resolv my problème and moodle work well.
Good