Alert Cannot open the PDF. The file may be corrupt, or in an unsupported format. (Moodle 3.8)

Alert Cannot open the PDF. The file may be corrupt, or in an unsupported format. (Moodle 3.8)

by PaDuan Sirih -
Number of replies: 3

Hello, our moodle 3.8 run on debian server. All run correctly after months then the assignment show error:

Alert

Cannot open the PDF. The file may be corrupt, or in an unsupported format.

Any solutions for this error?

note: 

Ghostscript installed: 

ghostscript is already the newest version (9.27~dfsg-2+deb10u3).

ghostscript set to manually installed.

on path moodle:


additional note:

/var/www/html/moodle/admin/cli# php cfg.php |grep path

PHP Notice:  Undefined index: HTTP_HOST in /var/www/html/moodle/config.php on line 21

line 21 config.php is:

$CFG->wwwroot   = 'http://'.$_SERVER['HTTP_HOST'];





Average of ratings: -
In reply to PaDuan Sirih

Re: Alert Cannot open the PDF. The file may be corrupt, or in an unsupported format. (Moodle 3.8)

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hello,

Is it a group assignment? If so, perhaps it is MDL-47475 which was fixed in Moodle 3.8.2.

If not, how about checking the issues linked to MDL-47475 to see if any apply to you.

In reply to Helen Foster

Re: Alert Cannot open the PDF. The file may be corrupt, or in an unsupported format. (Moodle 3.8)

by PaDuan Sirih -
no, its individual assginment
In reply to PaDuan Sirih

Re: Alert Cannot open the PDF. The file may be corrupt, or in an unsupported format. (Moodle 3.8)

by Clay Hess -
We are experiencing this same issue. Did you discover a solution?