Environment:
php version 7.4.3-4ubuntu2.20
Ubuntu 20.04.6 LTS
We get some problem grade report with jpg file on the version
moodle 4.1.9+ (Build: 20240315)
$version = 2022112809.00;
$release = '4.1.9+ (Build: 20240315)';
from files moodle/mod/assign/feedback/editpdf/version.php
$plugin->version = 2022112801;
$plugin->requires = 2022111800;
$plugin->component = 'assignfeedback_editpdf';
it show same version with moodle 4.1.9, that have
$version = 2022112809.00;
$release = '4.1.9 (Build: 20240212)';
from files moodle/mod/assign/feedback/editpdf/version.php
$plugin->version = 2022112801;
$plugin->requires = 2022111800;
$plugin->component = 'assignfeedback_editpdf';
while checking with moodle 4.1.9 this problem not occurring,
as we have already upgraded the database to 4.1.9+,
while downgrading cannot be done, doing workaround for copying all folder feedback on path
moodle/mod/assign/feedback folder from 4.1.9 to 4.1.9+
but this may cause any compatible issue, any fix for the current build 4.1.9+ ?
what is the difference for the both version for the assignfeedback_editpdf?
Notes:
It shows different result, error log nginx:
2024/03/18 14:37:01 [error] 788#788: *3974868 FastCGI sent in stderr: "PHP message: Default exception handler: Error generating image with ghostscript, debugging info: <pre>Command:
'/usr/bin/gs.sh' -q -sDEVICE=png16m -dSAFER -dBATCH -dNOPAUSE -r'100' -dFirstPage='1' -dLastPage='1' -dDOINTERPOLATE -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sOutputFile='/tmp/requestdir/hQjE/65f7ef1d38ab0/65f7ef1d5254a/image_page0.png' '/tmp/requestdir/hQjE/65f7ef1d38ab0/65f7ef1d5254a/error.pdf'
Result:
Output:
</pre> Debug:
Error code: errorgenerateimage
* line 593 of /mod/assign/feedback/editpdf/classes/pdf.php: moodle_exception thrown
* line 783 of /mod/assign/feedback/editpdf/classes/pdf.php: call to assignfeedback_editpdf\pdf->get_image()
* line 555 of /mod/assign/feedback/editpdf/classes/pdf.php: call to assignfeedback_editpdf\pdf::get_error_image()
* line 441 of /mod/assign/feedback/editpdf/classes/document_services.php: call to assignfeedback_editpdf\pdf->get_images()
* line 603 of /mod/assign/feedback/editpdf/classes/document_services.php: call to assignfeedback_editpdf\docu" while reading response header from upstream, client: 117.102.226.70, server: hostname-petralms, request: "GET /mod/assign/feedback/editpdf/ajax.php?sesskey=ycX0xGdEIc&action=pollconversions&userid=12609&attemptnumber=0&assignmentid=15043&readonly=0 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm-moodle.sock:", host: "hostname-petralms", referrer: "https://hostname-petralms/mod/assign/view.php?id=96456&action=grader&userid=12609"
2024/03/18 14:37:13 [error] 788#788: *3974868 FastCGI sent in stderr: "PHP message: Default exception handler: Error generating image with ghostscript, debugging info: <pre>Command:
'/usr/bin/gs.sh' -q -sDEVICE=png16m -dSAFER -dBATCH -dNOPAUSE -r'100' -dFirstPage='1' -dLastPage='1' -dDOINTERPOLATE -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sOutputFile='/tmp/requestdir/hQjE/65f7ef29205f3/65f7ef293a25b/image_page0.png' '/tmp/requestdir/hQjE/65f7ef29205f3/65f7ef293a25b/error.pdf'
Result:
Output:
</pre> Debug:
Error code: errorgenerateimage
* line 593 of /mod/assign/feedback/editpdf/classes/pdf.php: moodle_exception thrown
* line 783 of /mod/assign/feedback/editpdf/classes/pdf.php: call to assignfeedback_editpdf\pdf->get_image()
* line 555 of /mod/assign/feedback/editpdf/classes/pdf.php: call to assignfeedback_editpdf\pdf::get_error_image()
* line 441 of /mod/assign/feedback/editpdf/classes/document_services.php: call to assignfeedback_editpdf\pdf->get_images()
* line 603 of /mod/assign/feedback/editpdf/classes/document_services.php: call to assignfeedback_editpdf\docu" while reading response header from upstream, client: 117.102.226.70, server: hostname-petralms, request: "GET /mod/assign/feedback/editpdf/ajax.php?sesskey=ycX0xGdEIc&action=pollconversions&userid=12609&attemptnumber=0&assignmentid=15043&readonly=0 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm-moodle.sock:", host: "hostname-petralms", referrer: "https://hostname-petralms/mod/assign/view.php?id=96456&action=grader&userid=12609"
2024/03/18 14:37:24 [error] 788#788: *3974868 FastCGI sent in stderr: "PHP message: Default exception handler: Error generating image with ghostscript, debugging info: <pre>Command:
'/usr/bin/gs.sh' -q -sDEVICE=png16m -dSAFER -dBATCH -dNOPAUSE -r'100' -dFirstPage='1' -dLastPage='1' -dDOINTERPOLATE -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sOutputFile='/tmp/requestdir/hQjE/65f7ef3439bef/65f7ef3452f29/image_page0.png' '/tmp/requestdir/hQjE/65f7ef3439bef/65f7ef3452f29/error.pdf'