Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80728

"Return value of mod_bigbluebuttonbn\local\helpers\roles::get_role() must be an instance of stdClass, none returned" while adding new BBB instance.

    XMLWordPrintable

Details

    • MOODLE_401_STABLE

    Description

      Hello!

      If you try to create an instance of BBB when its parameter "Moderator" (bigbluebuttonbn_participant_moderator_default) is empty you do not get a new instance but you get an error:

      Exception - Return value of mod_bigbluebuttonbn\local\helpers\roles::get_role() must be an instance of stdClass, none returned

      More information about this error

      Debug info:
      Error code: generalexceptionmessage×Dismiss this notification

      Stack trace:

      • line 199 of /mod/bigbluebuttonbn/classes/local/helpers/roles.php: TypeError thrown
      • line 298 of /mod/bigbluebuttonbn/classes/local/helpers/roles.php: call to mod_bigbluebuttonbn\local\helpers\roles::get_role()
      • line 238 of /mod/bigbluebuttonbn/classes/local/helpers/roles.php: call to mod_bigbluebuttonbn\local\helpers\roles::get_participant_rules_encoded()
      • line 72 of /mod/bigbluebuttonbn/mod_form.php: call to mod_bigbluebuttonbn\local\helpers\roles::get_participant_list()
      • line 214 of /lib/formslib.php: call to mod_bigbluebuttonbn_mod_form->definition()
      • line 131 of /course/moodleform_mod.php: call to moodleform->__construct()
      • line 152 of /course/modedit.php: call to moodleform_mod->__construct()

      Steps:

      1. Deselect all options in "Moderator" (bigbluebuttonbn_participant_moderator_default) parameter in /admin/settings.php?section=mod_bigbluebuttonbn_participant. Save changes.
      2. Try to create a new instance of BBB in a course.

      The plugin should probably use default value when its parameter is empty.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              андрейусков Андрей Усков
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.