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

Error when attempting to access a glossary as a guest

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-74162-master
    • Hide
      1. Login as Admin
      2. Create a Course
      3. Go to the Course
      4. Create a Glossary in the course
      5. Go to the course Participants page
      6. Navigate to Enrolment methods using the tertiary navigation selector
      7. Enable Guest access in the course
      8. Log out.
      9. Log in as a Guest user.
      10. Go to the Course.
      11. Go to the Glossary.
        1. confirm that you are able to view the glossary activity
        2. confirm that there aren't any errors displayed on the glossary page.
      Show
      Login as Admin Create a Course Go to the Course Create a Glossary in the course Go to the course Participants page Navigate to Enrolment methods using the tertiary navigation selector Enable Guest access in the course Log out. Log in as a Guest user. Go to the Course. Go to the Glossary. confirm that you are able to view the glossary activity confirm that there aren't any errors displayed on the glossary page.

      As found by dag in MDLQA-16250:

      Steps to reproduce:

      1. Enable the log in as a guest button and guest access in a course.
      2. Create a glossary activity in the course.
      3. Log out then log in as a guest and go to the glossary.

      Expected result: The guest can view the glossary activity.

      Actual result: An error message is displayed.

      Exception - mod_glossary\output\standard_action_bar::create_add_button(): Return value must be of type stdClass, string returned

      More information about this error
      Debug info:
      Error code: generalexceptionmessage
      Stack trace:

      line 160 of /mod/glossary/classes/output/standard_action_bar.php: TypeError thrown
      line 107 of /mod/glossary/classes/output/standard_action_bar.php: call to mod_glossary\output\standard_action_bar->create_add_button()
      line 37 of /mod/glossary/classes/output/renderer.php: call to mod_glossary\output\standard_action_bar->export_for_template()
      line 315 of /mod/glossary/view.php: call to mod_glossary\output\renderer->main_action_bar()

            Geshoski Mihail Geshoski
            tsala Helen Foster
            Amaia Anabitarte Amaia Anabitarte
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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