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

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

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

དཔྱ་སྙོམས་ཀྱི་སྐུགས་ཚུ།: -
In reply to mik dodge

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

Leon Stringer གིས-
Core developers གི་པར 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

Zoran Jančić གིས-
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

Tim Hunt གིས-
Core developers གི་པར Documentation writers གི་པར Particularly helpful Moodlers གི་པར Peer reviewers གི་པར Plugin developers གི་པར
So, this is MDL-79587 - which I keep not getting time to work on.