Skip to content
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

Whoops\Exception\ErrorException thrown with message "Undefined variable $value1" #12

Closed
mhilbert opened this issue Jan 24, 2024 · 2 comments

Comments

@mhilbert
Copy link

Class class.assAudioGUI.php, function getSolutionOutput:

$solutiontemplate->setVariable("RESULT_OUTPUT", $value1);
runs into a problem if $value1 is not set because
if (isset($user_solution["value1"]))
fails.

Environment: ILIAS 8.8, PHP 8.0.30, assAudio 8.0.0

Whoops\Exception\ErrorException thrown with message "Undefined variable $value1"

Stacktrace:
#11 Whoops\Exception\ErrorException in /data_nfs/htdocs/devel8x/Customizing/global/plugins/Modules/TestQuestionPool/Questions/assAudio/classes/class.assAudioGUI.php:278
#10 ilErrorHandling:handlePreWhoops in /data_nfs/htdocs/devel8x/Customizing/global/plugins/Modules/TestQuestionPool/Questions/assAudio/classes/class.assAudioGUI.php:278
#9 assAudioGUI:getSolutionOutput in /data_nfs/htdocs/devel8x/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/TstManualScoringQuestion/src/TstManualScoringQuestion.php:795
#8 ILIAS\Plugin\TstManualScoringQuestion\TstManualScoringQuestion:getAnswerDetail in /data_nfs/htdocs/devel8x/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/TstManualScoringQuestion/src/TstManualScoringQuestion.php:303
#7 ILIAS\Plugin\TstManualScoringQuestion\TstManualScoringQuestion:modify in /data_nfs/htdocs/devel8x/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/TstManualScoringQuestion/src/TstManualScoringQuestion.php:459
#6 ILIAS\Plugin\TstManualScoringQuestion\TstManualScoringQuestion:showTmsqManualScoring in /data_nfs/htdocs/devel8x/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/TstManualScoringQuestion/src/TstManualScoringQuestion.php:210
#5 ILIAS\Plugin\TstManualScoringQuestion\TstManualScoringQuestion:performCommand in /data_nfs/htdocs/devel8x/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/TstManualScoringQuestion/classes/class.ilTstManualScoringQuestionUIHookGUI.php:115
#4 ilTstManualScoringQuestionUIHookGUI:executeCommand in /data_nfs/htdocs/devel8x/Services/UICore/classes/class.ilCtrl.php:199
#3 ilCtrl:forwardCommand in /data_nfs/htdocs/devel8x/Services/UIComponent/classes/class.ilUIPluginRouterGUI.php:48
#2 ilUIPluginRouterGUI:executeCommand in /data_nfs/htdocs/devel8x/Services/UICore/classes/class.ilCtrl.php:199
#1 ilCtrl:forwardCommand in /data_nfs/htdocs/devel8x/Services/UICore/classes/class.ilCtrl.php:174
#0 ilCtrl:callBaseClass in /data_nfs/htdocs/devel8x/ilias.php:24

@kyro46 kyro46 closed this as completed in e105688 Jan 25, 2024
@kyro46
Copy link
Owner

kyro46 commented Jan 25, 2024

Danke für das Feedback. Die Möglichkeit unbeantwortete Fragen in der manuellen Bewertung anzuzeigen fehlte, ließ sich aber beheben, indem die Lösung ab jetzt als Leer initialisiert wird. Ich hoffe das passt so. Ich sehe, dass ein weiteres Plugin zur Bewertung eingesetzt wird. Das probiere ich aus.

@mhilbert
Copy link
Author

mhilbert commented Jan 25, 2024 via email

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

No branches or pull requests

2 participants