Skip to content

Catch Warning when creating PNG #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rillke
Copy link
Contributor

@Rillke Rillke commented Jun 27, 2023

https://redmine.itz.uni-halle.de/issues/10510

Bei dem Tablet-Zeichenfragen-Prüfungstest wurde einen Hintergrundgrafik bei allen Fragen verwendet, die folgende Fehlermeldung hervorruft, wenn man sich die Antworten der TN anschauen möchte:

2 imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /XXXXX/Customizing/global/plugins/Modules/TestQuestionPool/Questions/assPaintQuestion/classes/class.assPaintQuestionGUI.php:500
#0 /var/www/ilias/Services/Init/classes/class.ilErrorHandling.php(526): Whoops\Run->handleError(2, 'imagecreatefrom...', '/var/www/ilias/...', 500)

Statistik > TN/detaillierte statsitik > Antwortenübersicht > error (z.B fehlercode 6c29c_5636 | 22.6. 11.07Uhr).
Export > Export inkl TN-ERgebnisse > ohne Antworten


[4560e] [2023-06-27 18:31:56.071505] eassessment_root.ERROR: ilErrorHandling::{closure}:50 2 imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /var/www/ilias/Customizing/global/
plugins/Modules/TestQuestionPool/Questions/assPaintQuestion/classes/class.assPaintQuestionGUI.php:500#0 /var/www/ilias/Services/Init/classes/class.ilErrorHandling.php(526): Whoops\Run->handleError(2, 'imagecreat
efrom...', '/var/www/ilias/...', 500)
#1 [internal function]: ilErrorHandling->handlePreWhoops(2, 'imagecreatefrom...', '/var/www/ilias/...', 500, Array)
#2 /var/www/ilias/Customizing/global/plugins/Modules/TestQuestionPool/Questions/assPaintQuestion/classes/class.assPaintQuestionGUI.php(500): imagecreatefrompng('/var/www/ilias/...')
#3 /var/www/ilias/Modules/Test/classes/class.ilTestServiceGUI.php(425): assPaintQuestionGUI->getSolutionOutput(42979, 0, true, false, false, false)
#4 /var/www/ilias/Modules/Test/classes/class.ilTestEvaluationGUI.php(1006): ilTestServiceGUI->getPassListOfAnswers(Array, 42979, 0, false, false, false, false, true, NULL, Object(ilTestResultHeaderLabelBuilder))
#5 /var/www/ilias/Modules/Test/classes/class.ilTestEvaluationGUI.php(97): ilTestEvaluationGUI->outParticipantsPassDetails()
#6 /var/www/ilias/Services/UICore/classes/class.ilCtrl.php(217): ilTestEvaluationGUI->executeCommand()
#7 /var/www/ilias/Modules/Test/classes/class.ilObjTestGUI.php(1080): ilCtrl->forwardCommand(Object(ilTestEvaluationGUI))
#8 /var/www/ilias/Modules/Test/classes/class.ilObjTestGUI.php(356): ilObjTestGUI->forwardToEvaluationGUI()
#9 /var/www/ilias/Services/UICore/classes/class.ilCtrl.php(217): ilObjTestGUI->executeCommand()
#10 /var/www/ilias/Services/UICore/classes/class.ilCtrl.php(178): ilCtrl->forwardCommand(Object(ilObjTestGUI))
#11 /var/www/ilias/ilias.php(23): ilCtrl->callBaseClass()
#12 {main}  

Maybe the ILIAS "Whoops" error handler can be configured, but that is beyond my knowledge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant