Exception - Call to a member function "has_subparts()" on false

Exception - Call to a member function "has_subparts()" on false

by mik dodge -
Number of replies: 4

i got this error:

Exception - Call to a member function "has_subparts()" on false 

on Moodle 4.3.2 with IIS WinServer2019

 

any hints plz

Average of ratings: -
In reply to mik dodge

Re: Exception - Call to a member function "has_subparts()" on false

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers
Enable debugging to show more details with the error.
In reply to Leon Stringer

Re: Exception - Call to a member function "has_subparts()" on false

by Zoran Jančić -
Picture of Particularly helpful Moodlers

Same problem here. Moodle 4.4.1. It happened on quiz question statistics page /mod/quiz/report.php?id=432&mode=statistics&slot=6 after I changed the text of answers, although I didn't add or delete any answers.

Exception - Call to a member function has_subparts() on false

Debug info:
Error code: generalexceptionmessage


Stack trace:
line 79 of /mod/quiz/report/statistics/statistics_question_table.php: Error thrown
line 431 of /mod/quiz/report/statistics/report.php: call to quiz_statistics_question_table->question_setup()
line 246 of /mod/quiz/report/statistics/report.php: call to quiz_statistics_report->output_individual_question_response_analysis()
line 83 of /mod/quiz/report.php: call to quiz_statistics_report->display()

In reply to Zoran Jančić

Re: Exception - Call to a member function "has_subparts()" on false

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
So, this is MDL-79587 - which I keep not getting time to work on.
In reply to Tim Hunt

Re: Exception - Call to a member function "has_subparts()" on false

by Adrian Sarmas -
Picture of Plugin developers
Do you have any news here, or maybe a workaround to fix this issue? I'm having the same issue on Moodle 4.5