Quantcast
Channel: Assignment
Viewing all 9679 articles
Browse latest View live

Re: Error message "Cannot open the PDF. The file may be corrupt, or in an unsupported format."

$
0
0
by Ken Task.  

Hosting providers don't normally go into Moodle to configure anything (enable/activate).   Moodle will use if path is entered and moodle code can see it/find it.  

If you have nothing to install software, you could ask your hosting provider to install ghostscript, but if on *shared* hosting, provider might tell you they cannot/will not.

Provider will probably suggest upgrading from *shared hosting*.

You've not shared with what provider not what plan you've leased so no other way of which am aware.

'SoS', Ken



Re: Changing groups and assessment records

$
0
0
by Emma Richardson.  

I don't think so but why would you?  Students can be in more than one group - create a grouping with the new groups and then apply that grouping to the new assignment...

Re: Assignments and H5P content not showing up when I have added them

$
0
0
by Jude Mortimer.  

Thanks for reply. 🙂

1. Yes I'm an editing teacher

2. I tried both

3. Just nothing there - no blank space, just as if there is nothing else there. It's invisible!

4. Yeah they are where I put them

🤪 Any more ideas?

Re: Assignments and H5P content not showing up when I have added them

$
0
0
by ben reynolds.  

Maybe it's time to take a look at your course. If you're comfortable, can you send a link to the course and a student login?
ben.reynolds@jhu.edu
Be careful of emails with my name on them. I've been out there since 1994, and I get used as a spoof name all the time for spam/phishing.

Atbilde: Unoconv not converting jpeg to PDF

Re: Atbilde: Unoconv not converting jpeg to PDF

$
0
0
by Ken Task.  

unoconv doesn't support .jpeg ... but does support .jpg

.jpeg files are not .jpg's.

So ... you could try the following ...

Use the following mysql query to find where these .jpeg files are located in
the sea of files in moodledata/filedir/

mysql> select contenthash,filename from mdl_files where filename like '%.jpeg';

The contenthash value can be used to find the file in moodledata/filedir/
from command line.

cd /path/to/moodledata/filedir/
find ./ -name [contenthash]

That will take some time to run but one will see something like:
/xx/yy/contenthash

To make sure it's the right mime type:

file -b /xx/yy/contenthash

Ok, now the tricky parts ....

*copy* the /xx/yy/contenthash out of moodledata/filedir/ and put that copy
out to a web accessible directory (in this example, /var/www/html/img2convert/

cp /xx/yy/contenthash /var/www/html/img2convert/[filename].jpeg

Download and use local app to convert to .jpg

Or if you have imagemagick installed could try:

convert filename.jpeg filename.jpg

Upload the converted [filename].jpg to /var/www/html/imgconverted/

Or if imagemagick worked, cp the converted .jpg using below

From /var/www/html/imgconverted/ directory copy and replace the old contenthash name file:

cp [filename].jpg /path/to/moodledata/filedir//xx/yy/contenthash

From /var/www/html/imgconverted/ directory copy and replace the old contenthash name file:

cp [filename].jpg /path/to/moodledata/filedir//xx/yy/contenthash

In the DB mdl_files change filename from .jpeg to .jpg

now go to whatever to see if assignment can convert the file to pdf.

Fingers crossed!

'SoS', Ken

Atbilde: Re: Atbilde: Unoconv not converting jpeg to PDF

$
0
0
by Kristaps M.  

Hey!

Thanks for reply. This seems long way but must be tried.

So the only way to deal with jpegs is to restrict uploads by restricting students to upload non jpeg pictures? I have seen that there was some trick in old version of Moodle by changing file extension in the core files.

Re: Atbilde: Re: Atbilde: Unoconv not converting jpeg to PDF

$
0
0
by Ken Task.  

If you'll check assigment set up there is a mimetype (filestype) restriction one can set.   Students can only upload those.   No .jpeg for obvious reasons.

'some trick' that was then, cause just changing a file name extension doesn't change internals of a file ... any file ... any operating system ... any application.

'SoS', Ken


Moodle 3.8 Annotate PDF not working

$
0
0
by Anand Govender.  

Hi All, When a student using Word converts their assignment to PDF, the teacher is not able to grade it. See screen shots below. Says cannot open the PDF. File maybe corrupt...



Groups and restrict access

$
0
0
by Sulaiman Rabbaa.  

I have two questions relating assignment submission of different forms: 

(1) Using groups: how can I sent assignment to a certain group, such that each member in the group deals independently (do not know member of his group and send his own assignment answer). When click on "Group submission settings" , the option "Require all group member submit" is not active (we can not turn it to Yes instead of  No).

(2) Using restrict access: I want to send assignment for students whose first names begin with A or C. I choose "user profile field" then "First" name then "start with". Can I write in the restriction field A, C or it needs certain format?

Or if I want to send assignment for students whose first names begin with letter A to E, can I  write in the restriction field A-C?  (means A to C).

Download All - skipping some submissions with ?

$
0
0
by Mary Beth McKee.  

We are using Moodle 3.6.7+ (Build: 20191122)

Recently, one of our faculty members created a Moodle assignment, and when she clicked to download all the submissions, it skipped a few. The pattern I saw was that it skipped over the files with question marks as part of the file name, when working on a PC.

Assignment Name:"Why Social Work/Human Services?" Paper Assignment.  Due uploaded by 11:55 pm, Th. April 2.  UPLOAD HERE.

Sample file that failed to download on a PC: S W2010-102 Why Social Work_Human Services?__2

I found the download all submissions failed in Chrome and Firefox on a PC, but worked just fine on a Mac.

Two Questions

  1. Beyond switching to a Mac, is there another fix to the question mark issue?
  2. Is there a character limit for the download? The assignment name itself is rather lengthy,
Thanks in advance for any leads.

Mary Beth


PDF annotation plugin questions

$
0
0
by Oleg Sychev.  

I'm trying to master pdf annotation plugin because of COVID, and has encountered a couple of problems.

Our University is currently using Moodle 3.2, please let me know if some of them were fixed later (even though physically moving to the university to upgrade Moodle installation right now is problematic).

1. Is there an easy way for the teacher to save annotated PDFs? I was only able it by switching to the particular student's user, and then I have to re-login as a teacher.

The scenario is like this: a student uploads a PDF, I annotated it with errors and give the student another attempt to improve their work. Now, a week later, grading the new PDF I want to see my annotations to the previous versions to quickly remember what these errors were.

2. Is there a way to use Unicode characters in annotations?  Unicode characters look well in comments while I'm doing them on Moodle site, but in the annotated PDF the students get they get changed to question marks. Is this some Ghostscript problem on the server - I guess some fonts are missing (and how to fix and test it?) or principal problem of Moodle PDF annotation plugin?

Marking assignment error - no grade

$
0
0
by barbara nance.  

Hi

Moodle 3.8.1 Adaptable 2.2.2

Have suddenly got an error when trying to Grade assignments; There is no grade option available in the edit drop-down alongside the student's name. They have not previously been graded. This has occurred in all courses. Please see below. Many thanks. Regards Barbara

Assignment gradingme.

Assignment Final submission not working

$
0
0
by Nisha Nisha.  

Hi All,

I have created a assignment functionality . As a student i am trying to upload the assignment in the File submission and click on the save changes . File is submitted perfectly ..After save changes , when i click on the Submit Assignment button and click on the checkbox which stated the statement

This assignment is my own work, except where I have acknowledged the use of the works of other people. 

After clicking the checkbox , when i click on the Continue button . Than the site keep scrolling and i cant do anything .

I have to close the window and start again  and the website works fine .

As a teacher i login and the files is in submitted for grading status .

Need urgent help 

Moodle version = 3.4

Amazon server 


Nisha

Re: Annotate PDF - Some filters do not work?

$
0
0
by Acqua Alta.  

Trying to get some more audience for my message above... Am I the only one that encounter this issue? smile

0 byte assignment

$
0
0
by Asko Pesola.  

We are using Moodle 3.8.2 for our teachers to teach online during this coronavirus pandemic. They have given some assignments for students to write but now we have encountered problem with this. When students return their assignments, Moodle shows that document is 0 bytes in size, sometimes 4 kb or something in between. So of course teacher cannot open this kind of assignment to mark it because it's empty. And this happens with most of the students no matter in which format they send their assignments, pdf, doc, odt etc. However there is few students whose pdf documents are sent just fine and when we tested this with our own pdf document, that one also worked without any problems.

Why this happens and how can we fix this?

Re: 0 byte assignment

$
0
0
by Howard Miller.  

When you click the link for the assignment file and download it, what do you get? Is it *really* an empty file?

Vs: Re: 0 byte assignment

$
0
0
by Asko Pesola.  

I did a little bit deeper research for this problem and found out that actually most of the submitted assignments are fine. Actually "only" about 25% of submitted assignments has failed.
So far students have submitted 40 assignments and of those assignments:
24 are pdf files, 1 odt file, 1 doc, 8 docx, 2 rtf and 2 without any suffix.
I downloaded all of them into my computer and result was following:
18 pdf files, odt file, doc file, 6 docx files and 1 rtf file was submitted fine without any problems.
This left 6 pdf files, 2 docx, 1 rtf file and 2 without suffix that have failed. From these 11 files, both 2 docx files are saying file size is zero bytes when rest of the 9 files are saying file size is 4 bytes (not 4 kb or anything in between like I said in the first message).
So yes, they are really empty files.

And btw, we have tried to download these assignments both from Windows and Mac and using Mozilla, Chrome and Safari. So the problem doesn't happen when downloading files but already on the stage when students are submitting their assignments.

Re: Vs: Re: 0 byte assignment

$
0
0
by Ken Task.  

Interesting stats, but what do they actually do to find the problem?

Assignments in 3.8.x have settings now for restricting what students can turn in/upload.  Have you checked those settings?

New file system (since 2.0) is really a combo of meta data in DB that point to moodledata/filedir ... filenames are actually contenthash values ... no humanly recognizable names contained in moodedata/filedir/

This to suggest using some DB queries - for example ... to find all references to a .docx

mysql> select filename,filesize,contenthash from mdl_files where filename like '%.docx';

which will display something like:

| conversion_test.docx |    11065 | 6faee9e044dcb1d3629e270a5f34e77b1ed620f9 |
| file-sample_1MB.docx |  1026736 | 688c74675f84ecae08b1f73c19875af264e34f74 |
| exportTemplate.docx  |    76761 | 7bb12d92cdb1abafae32c4363bba3965078b0f0c |
| file-sample_1MB.docx |  1026736 | 688c74675f84ecae08b1f73c19875af264e34f74 |

Then from ssh/terminal logged on and in moodledata/filedir/ do a find for the contenthash ...

example using the last .docx above:

[root@server filedir]# find ./ -name 688c74675f84ecae08b1f73c19875af264e34f74

Results show:

./68/8c/688c74675f84ecae08b1f73c19875af264e34f74

now a quick check of file size:

ls -l ./68/8c/688c74675f84ecae08b1f73c19875af264e34f74

as per example shows byte size of 1026736  ... that's correct!

Now quick check as to file type:

file -b ./68/8c/688c74675f84ecae08b1f73c19875af264e34f74

Remember the file is a .docx

Above responds with:

file -b ./68/8c/688c74675f84ecae08b1f73c19875af264e34f74
Zip archive data, at least v2.0 to extract

which looks wrong, but it's not .... a docx really is a zipped file.

A 0 byte file entry???? Never heard of it before.

You will see a bunch with this query:

mysql> select filename,filesize,contenthash from mdl_files where filesize like '0';

but notice filename is a 'dot' ... looks like:

| filename | filesize | contenthash                              |
+----------+----------+------------------------------------------+
| .        |        0 | da39a3ee5e6b4b0d3255bfef95601890afd80709 |

notice the 'dot';

[root@sos filedir]# find ./ -name da39a3ee5e6b4b0d3255bfef95601890afd80709
./da/39/da39a3ee5e6b4b0d3255bfef95601890afd80709
[root@sos filedir]# file -b ./da/39/da39a3ee5e6b4b0d3255bfef95601890afd80709
empty

True ... should be empty as a 'dot' is part of operating system file system ...

Do we have anything running on server for anti-virus?  ClamAV?

Then there is also what devices students were using to upload. ????

Browser or Moodle app?

So .... ????

'SoS', Ken

Re: Cannot open PDF error in grading

$
0
0
by Go Click On.  

Hi Everyone,

I getting below error under the assignment grade module

I tested ghostscript but its return error like below


Error generating image with ghostscript, debugging info:

Command:
'/usr/bin/ghostscript' -q -sDEVICE=png16m -dSAFER -dBATCH -dNOPAUSE -r'100' -dFirstPage='1' -dLastPage='1' -dDOINTERPOLATE -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sOutputFile='/home/dolphedu/moodledata/temp/assignfeedback_editpdf_test/image_page0.png' '/home/dolphedu/public_html/moodle/mod/assign/feedback/editpdf/tests/fixtures/testgs.pdf'

Result:


Output:
any one can help for how to resolve this error?

Regards

Alpesh

Viewing all 9679 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>