Assignment attempts disappearing

Assignment attempts disappearing

by Wendi Dunlap -
Number of replies: 54
Hello,

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?
Average of ratings: -
In reply to Wendi Dunlap

Re: Assignment attempts disappearing

by Wendi Dunlap -
Follow-up: it appears that every single assignment attempt for the whole course has disappeared. Since the majority of the assignments are Online Text, that means we've lost nearly everything.

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.
In reply to Wendi Dunlap

Re: Assignment attempts disappearing

by Wendi Dunlap -
We have fixed the problem, and as no one was able to help here, I am posting the results in order to help someone in the future.

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.
In reply to Wendi Dunlap

Re: Assignment attempts disappearing

by Brandon Horn -

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

In reply to Brandon Horn

Re: Assignment attempts disappearing

by Koro Gabiola Colina -

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

In reply to Koro Gabiola Colina

Re: Assignment attempts disappearing- solved

by Claudia Palazzi -

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.

Average of ratings: Useful (1)
In reply to Claudia Palazzi

Re: Assignment attempts disappearing- solved

by Koro Gabiola Colina -

Thank youuuuuuuuuuuuuuuuuuuuuuuuuuu!!! ;)

Solved with that! I'll put the answer in another post that I opened!

Thanks

In reply to Claudia Palazzi

Re: Assignment attempts disappearing- solved

by Linda Harrison -

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.

In reply to Linda Harrison

Re: Assignment attempts disappearing- solved

by Elena Ivanova -

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.

In reply to Elena Ivanova

Re: Assignment attempts disappearing- solved

by Linda Harrison -

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!

In reply to Linda Harrison

Re: Assignment attempts disappearing- solved

by Elena Ivanova -

Hi Linda,
What is your Moodle version?

I will add that to the ticket: MDL-25315
Please vote smile

In reply to Elena Ivanova

Re: Assignment attempts disappearing- solved

by Linda Harrison -

1.9.7 - I can find the ticket you refer to - how do I 'vote'?

In reply to Linda Harrison

Re: Assignment attempts disappearing- solved

by Elena Ivanova -

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 smile

In reply to Elena Ivanova

Re: Assignment attempts disappearing- solved

by Linda Harrison -

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!

In reply to Claudia Palazzi

Re: Assignment attempts disappearing- solved

by Aklil Zenebe -

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.

In reply to Claudia Palazzi

Svar: Re: Assignment attempts disappearing- solved

by Broddi Hansen -

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

Attachment file4.jpg
In reply to Broddi Hansen

Re: Svar: Re: Assignment attempts disappearing- solved

by Linda Harrison -

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.

In reply to Linda Harrison

Assignment attempts disappearing

by Broddi Hansen -
When I click "View 1 submitted assignment link" (red arrow) next screen appears indicated by a hand-drawn big black arrow. Here I should see all students and their files in a table, but nothing comes up and Moodle says "Nothing to Display". If I now click on "See all course grades" (you call this "grade link" if I understand you correctly) next screen comes up, see below picture. Its the "Grader report" page, and I have tried many options related to grader report and I cant get the system to show me the files from the student (even if I select the user "profun-brh" directly, I go into "User report" and no link to files there it seems).
Attachment file5.jpg
In reply to Broddi Hansen

Re: Assignment attempts disappearing

by Pino Calambrogio -

Hello to all

after reviewing line by line all libraries of submissions, i found the problem smile

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 ;)

Average of ratings: Useful (8)
In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Stuart Cox -

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 blush) and it now works perfectly. Suspect its a MySQL version issue?

Moodle 1.9.10+ (20110125)
MySQL 5.5.8
PHO 5.3.5

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Derek Lawrie -

Thanks Pino, that was driving me nuts, worked like a charm

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Claudia Fattor -

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!!!!!!!!!!!!

Attachment nada que mostrar.JPG
In reply to Claudia Fattor

Re: Assignment attempts disappearing

by Adam Barbary -

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

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Omar FALL -

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!

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Unitaria Wida -
It works!!!!! Whoaaaaa_____ u're really my prince charming, Pino!!! XD Hohoho -- just overreacted, after falling down from coconut trees --
In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Greg Padberg -

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?

In reply to Greg Padberg

Re: Assignment attempts disappearing

by Greg Padberg -

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.

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by irfan şimşek -

I was a problem like that.

I solved it thanks to you.

Thank you very much.

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by enrique fanjul -

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....

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by paula williams -

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.

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Luz Rosario -

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.

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Luz Rosario -

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

In reply to Luz Rosario

Re: Assignment attempts disappearing

by Salifou DENE -

Hello, I have give the solution in french forum.

Look the link:

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Pedro Xavier Camacho Pazmiño -

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..:!!!

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Russ Williams -

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

Average of ratings: Useful (1)
In reply to Russ Williams

Re: Assignment attempts disappearing

by Eduardo Rodrigues -

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. wink)

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Narayan Solanke -

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

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Pedro M -

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. smile

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! smile .... a dormir se ha dicho, ya debe estar listo jeje

Thank you very much Pino Calambrogio for your help smile .... let´s sleep zzzz

Average of ratings: Useful (1)
In reply to Pedro M

Re: Assignment attempts disappearing

by Javier Rodriguez -

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.

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by David Casas -

Thank you, Pino!  The Moodle community is awesome!

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Nelson Ramon Lagos Rubio -

Gracias 

 

Eres lo mas grande. estimado.

 

gracias por compartir esta solución.

 

+1000000

 

 

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Orlando Acevedo -

Thank you very much Pino. Muchas gracias Pino. You are wonderful! It is working. I am smiling again.

In reply to Pino Calambrogio

Re: Assignment attempts disappearing

by Marcelo Castro -

Jesus!!!

Thanks a lot, this was my problem and your answer help me.

In reply to Broddi Hansen

Re: Svar: Re: Assignment attempts disappearing- solved

by taryn apollo -

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!

In reply to Claudia Palazzi

Re: Assignment attempts disappearing- solved

by Aindril De -

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

In reply to Aindril De

Re: Assignment attempts disappearing- solved

by Graeme Frear -

Pino, thanks very much! Angry students are happy again smile

In reply to Graeme Frear

Re: Assignment attempts disappearing- solved

by Salifou DENE -

Thanks I have resolv my problème and moodle work well.


Good