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'];