Quantcast
Channel: Assignment
Viewing all 9650 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 aqua devida.  

sorry sir, i mean is video tutorial for this :

As root user, use package manager for your OS ... which should be yum (CentOS 7):

yum -y install ghostscript.x86_64

Should install in /usr/bin/

which ghostscript will show path

Use that path in Moodle settings for paths.

No need to restart services.

You can check all paths set in moodle via admin/cli/php.cfg like so from moodle code directory:

php admin/cli/cfg.php |grep path

thanks a lot

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

$
0
0
by Ken Task.  

Those are commands issued from an ssh shell session on server.   They are not anything used in URL line of a browser.

If you have CentOS 7, can ssh into your server and su to root, then one can simply copy and paste the commands.  Video of such things would be exceptions.

Must be a reason you are asking ... please explain why you'd need a video of such?

'SoS', Ken


Re: Assignment notifications in Moodle 3.5

$
0
0
by James O70.  

Thanks very much Ken, I'll take a look.

James

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

$
0
0
by aqua devida.  

sorry mr ken, I don't understand the part, You can check all paths set in moodle via admin / cli / php.cfg 

like so from moodle code directory: 

php admin / cli / cfg.php | grep path 

I have successfully installed ghostscript, and the path is correct, it's just that I don't understand how after that

what's the next step after this? thanks 

root

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

$
0
0
by Ken Task.  

Am gonna guess you are using Putty on Windows for copy and paste into a ssh shell on a Linux server.   That right?

Anytime one uses copy from something and paste into putty one has to be exacting with the copy end ... no extra lines, no extra characters, no left off characters.   Cause the operation with Putty is simply to 'right click' which sticks whatever is in the clipboard of your PC to the command line ... and Putty also presses enter for ya if I re-call correctly (haven't used Windows and Putty in years).   Nice if you copy accurately.   Not so nice if you don't.

See by your screen shot ... didn't get the ending 't' in first command you used thus an error.   Second is correct.

There is a php script in moodlecode/admin/cli/ called 'cfg.php' and it shows all the settings or ones you grep for.

So cd /path/to/moodlecode/admin/cli/

php cfg.php |grep path

should show settings in moodle for paths.

And, the one you are checking is the path to ghostscript.

That help?

'SoS', Ken


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

$
0
0
by aqua devida.  

right mr ken..hehe , 

thank you for the advice
but still an error after instaling ghostsricpt


koreksian

but if I make a new assignment and upload a pdf file the preview won't appear
jj


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

$
0
0
by Ken Task.  

In your screen shot, looks like Ghostscript it trying to make a PDF from the PDF file submitted Tigas 4.1 psomething.pdf - if that PDF file not compatible or is corrupt, then ghostscript can't render it.

Suggest downloading and opening.

Might also have to do a query of your mdl_files table looking for that pdf file name along with it's contenthash value.

Then use contenthash value to find the actual file in moodledata/filedir/

copy that file (contenthashed named) out to some location where can download it to see that way also.

'SoS', Ken

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

$
0
0
by Ken Task.  

Follow up how 2 ... you change PDF file name to the one shown in your screen shot ...

Finding that pdf file in DB meta data ...

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

Example: cheat_sheet_linux_common_commands.pdf is the name of the uploaded PDF.

| cheat_sheet_linux_common_commands.pdf |   103630 | 9d71038ec1cab47d097b13e468824ea9ad63ac3c |

contenthash for that file is:

9d71038ec1cab47d097b13e468824ea9ad63ac3c

To find that file in moodledata/filedir/
cd moodledata/filedir/

find ./ -name 9d71038ec1cab47d097b13e468824ea9ad63ac3c

will return something like this:

./9d/71/9d71038ec1cab47d097b13e468824ea9ad63ac3c

copy that file out to web root (/var/www/html/) as a test.pdf file:

cp ./9d/71/9d71038ec1cab47d097b13e468824ea9ad63ac3c /var/www/html/test.pdf

Use browser to see if you can open it.

Use the values your query finds.

'SoS', Ken


Re: Participants 0 Drafts 0 Submitted 0

$
0
0
by David Saylor.  

What are your group settings for the course/activity? Is it possible the teacher is in a different group from the students so its not showing the count in the grading summary?

Re: Assignment grading usually requires horizontal scrolling

$
0
0
by Edwin Lynd.  

Hi John, is there any way to integrate the Webslides css into moodle?

I want to use it only in Page Moudule, looking for a way to custom the css for Page module, WHEN copy and paste the css file of Webslides into the custom area of adaptable theme, it seems conflicting.

Any idea is grateful.


Re: Assignment grading usually requires horizontal scrolling

$
0
0
by John Provasnik.  

I haven't used that service or theme however, if you only want it to only apply to page modules, then you'd most likely need to add *something along the lines of* this (#page-mod-page-view) to the start of the css provided in order to only target the page module.

Re: Participants 0 Drafts 0 Submitted 0

$
0
0
by Puucho official.  

Thanks for the support of Moodle Community.
I have asked for the first time and I was benefited.
The problem was not with the group or anything.
I tried almost everything but it was cured when I uninstalled the plugin Assignment 2.0 and the then the system updated automatically the plugin after sometime
and now I can see the previous submission as well.

Thanks a lot everyone

Re: Turnitin - XML Response could not be parsed

$
0
0
by Mohemmed Mustafa.  

The issue is with the php version. When we install php on ubuntu 20.04 lts the version installed was php.7.4.3. I solved the issue by upgrading the php version.

Please try with the following commands

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
apt install php7.4
apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y

php will be upgraded to 7.4.9

After that restart apache

service apache2 restart

Hope this will help to resolve the issue. Thanks.

Disable previous dates ?

$
0
0
by mohamed dhanveer.  

Hello,

Is there any way to stop the teachers from posting the assignment with the previous dates?

They may accidentally post the assignment with the due date with the previous date.

How to disable that ?

More feed back option for images and doc like - Annotate PDF

$
0
0
by Class Revision.  

In Annotate PDF  only PDF can be edited by teacher which is submitted by student.

Is there any possibilities or any other plugin suggested that can take care of other submitted format like .. DOC, DOCX, JPEG, JPG,jpg,PNG, TXT etc etc...

Many many thanks in advance for kind help and suggestions.


More feed back option for images and doc like - Annotate PDF

Forcing students to watch lectures

$
0
0
by jitendra dhakad.  

I upload lectures and quizes based on that lecture on Moodle. Students are directly attempting quiz without watching lecture, how can I force them to watch lecture before attempting quiz?

Re: Forcing students to watch lectures

$
0
0
by Mary Cooch.  

You can't force them to watch a lecture online - they could simply click on it and leave the room and come back when it is finished. However you can use Activity completion and Restrict access to make it so that they at least have to click on the lecture before they are given access to the quiz. Also - you could embed your lecture into a Moodle Lesson activity because one advantage of this is that there is a completion condition by time spent - ie - student have to spend a certain amount of time in the Lesson before it will be marked complete. So if you make your Lesson required time the required time of the lecture then they might think to watch the lecture while they are waiting for time to pass and the quiz is released to them.

Re: Unoconv not converting jpeg to PDF

Re: Unoconv not converting jpeg to PDF

$
0
0
by Ken Task.  

Hopefully, you have command line access to your server.

IF you do, what does the following commands show?

/usr/bin/unoconv --version

/usr/bin/unoconv --show

On the server am using to explore this issue, mine shows a section

The following list of graphics formats are currently available:

  bmp      - Windows Bitmap [.bmp]
  emf      - Enhanced Metafile [.emf]
  eps      - Encapsulated PostScript [.eps]
  fodg     - OpenDocument Drawing (Flat XML) [.fodg]
  gif      - Graphics Interchange Format [.gif]
  html     - HTML Document (OpenOffice.org Draw) [.html]
  jpg      - Joint Photographic Experts Group [.jpg]
  met      - OS/2 Metafile [.met]
  odd      - OpenDocument Drawing [.odd]
  otg      - OpenDocument Drawing Template [.otg]
  pbm      - Portable Bitmap [.pbm]
  pct      - Mac Pict [.pct]
  pdf      - Portable Document Format [.pdf]
  pgm      - Portable Graymap [.pgm]
  png      - Portable Network Graphic [.png]
  ppm      - Portable Pixelmap [.ppm]
  ras      - Sun Raster Image [.ras]
  std      - OpenOffice.org 1.0 Drawing Template [.std]
  svg      - Scalable Vector Graphics [.svg]
  svm      - StarView Metafile [.svm]
  swf      - Macromedia Flash (SWF) [.swf]
  sxd      - OpenOffice.org 1.0 Drawing [.sxd]
  sxd3     - StarDraw 3.0 [.sxd]
  sxd5     - StarDraw 5.0 [.sxd]
  sxw      - StarOffice XML (Draw) [.sxw]
  tiff     - Tagged Image File Format [.tiff]
  vor      - StarDraw 5.0 Template [.vor]
  vor3     - StarDraw 3.0 Template [.vor]
  wmf      - Windows Metafile [.wmf]
  xhtml    - XHTML [.xhtml]
  xpm      - X PixMap [.xpm]

So what if, you renamed a .jpeg file and changed extension to .jpg

[root@server ~]# /usr/bin/soffice --version
LibreOffice 5.3.6.1 30(Build:1)

'SoS', Ken

Viewing all 9650 articles
Browse latest View live


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