Questionnaire: Showing warnings when starting Answer the questions#651
Merged
mchurchward merged 1 commit intoPoetOS:MOODLE_404_STABLEfrom Nov 11, 2025
Merged
Conversation
Contributor
|
Have you determined what situation causes this? It would be good to know why that error has occurred. |
Contributor
Author
|
We got these warnings when you go to a questionnaire and start answering the questions. |
mchurchward
approved these changes
Nov 11, 2025
Contributor
mchurchward
left a comment
There was a problem hiding this comment.
It would be best if we knew what caused this, but for now this fix seems okay.
mchurchward
pushed a commit
that referenced
this pull request
Nov 11, 2025
… 900306 (#651) Co-authored-by: Emanoil Manoylov <em22699@open.ac.uk>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OU Ref: 900306
Fix for intermittent warnings when starting "Answer the questions" as follows:
Warning: Undefined array key 1 in /var/www/html/moodle/mod/questionnaire/questionnaire.class.php on line 889
Warning: foreach() argument must be of type array|object, null given in /var/www/html/moodle/mod/questionnaire/questionnaire.class.php on line 889
Warning: Undefined array key 1 in /var/www/html/moodle/mod/questionnaire/questionnaire.class.php on line 1329
Warning: foreach() argument must be of type array|object, null given in /var/www/html/moodle/mod/questionnaire/questionnaire.class.php on line 1329