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

An error is displayed when accessing a chat as a guest

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-74179-311
    • MDL-74179-master
    • Hide

      Setup

      This test requires a site which allows guest access i.e. the guest login button is set to show and also a course with a chat activity. Also, you have to enable the debug messages for developers.

      • To allow guest access you could go to Site Administration > Plugins > Authentication > Manage authentication and set the Gest login button(guestloginbutton) to Show.
      • To enable the debug message for developers you could go to Site Administration > Development and set Debug messages(debug) to DEVELOPER: extra Moodle debug messages for developers and set Display debug messages(debugdisplay) to yes.

      Test

      1. Login as a Guest and go to the course in boost theme.
      2. Go to chat activity.
      3. Confirm you don't see any warning.
      4. Repeat steps 1 and 2 in the classic theme.
      5. Confirm you don't see any warning.
      Show
      Setup This test requires a site which allows guest access i.e. the guest login button is set to show and also a course with a chat activity. Also, you have to enable the debug messages for developers. To allow guest access you could go to Site Administration > Plugins > Authentication > Manage authentication and set the Gest login button(guestloginbutton) to Show. To enable the debug message for developers you could go to Site Administration > Development and set Debug messages(debug) to DEVELOPER: extra Moodle debug messages for developers and set Display debug messages(debugdisplay) to yes. Test Login as a Guest and go to the course in boost theme. Go to chat activity. Confirm you don't see any warning. Repeat steps 1 and 2 in the classic theme. Confirm you don't see any warning.
    • Moppies Kanban

    Description

      As found when running MDLQA-16736, if you log in as a guest and go to a course with guest access and access a chat activity, an error message is displayed:

      line 1553 of /lib/questionlib.php: call to moodle_page->__get()
      line 4690 of /lib/navigationlib.php: call to question_extend_settings_navigation()
      line 4309 of /lib/navigationlib.php: call to settings_navigation->load_course_settings()
      line 819 of /lib/pagelib.php: call to settings_navigation->initialise()
      line 939 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
      line 135 of /blocks/settings/block_settings.php: call to moodle_page->__get()
      line 341 of /blocks/moodleblock.class.php: call to block_settings->get_content()
      line 235 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 1222 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 1280 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 377 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 4065 of /lib/outputrenderers.php: call to block_manager->region_has_content()
      line 28 of /theme/classic/layout/columns.php: call to core_renderer->blocks()
      line 1472 of /lib/outputrenderers.php: call to include()
      line 1398 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line ? of unknownfile: call to core_renderer->header()
      line 1980 of /lib/setuplib.php: call to call_user_func_array()
      line 64 of /mod/chat/view.php: call to bootstrap_renderer->__call()

      Attachments

        Issue Links

          Activity

            People

              cescobedo Carlos Escobedo
              tsala Helen Foster
              Amaia Anabitarte Amaia Anabitarte
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Angelia Dela Cruz Angelia Dela Cruz
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona), David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/May/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 55 minutes
                  55m