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

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

mik dodge -
回帖数: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

回复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.
回复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()

回复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.
回复Tim Hunt

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

Adrian Sarmas -
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