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

Error shown to site admins on the app when not enrolled in any courses

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-78443-401
    • MDL-78443-master
    • Hide
      1. As an admin, enable “Web services for mobile devices” on Site administration ► Advanced features
      2. Ensure the admin user is not enrolled in any course
      3. Open the Moodle mobile app and log-in with the admin user account
      4. Go to the My courses page and confirm that:
        • You don't see any errors

      If you are not able to log-in with the admin user account you might need to edit the admin role capabilities and ensure that webservice/rest:use, moodle/webservice:createtoken and moodle/webservice:createmobiletoken capabilities are enabled

      Show
      As an admin, enable “Web services for mobile devices” on Site administration ► Advanced features Ensure the admin user is not enrolled in any course Open the Moodle mobile app and log-in with the admin user account Go to the My courses page and confirm that: You don't see any errors If you are not able to log-in with the admin user account you might need to edit the admin role capabilities and ensure that webservice/rest:use, moodle/webservice:createtoken and moodle/webservice:createmobiletoken capabilities are enabled

      Hi,

      If a site administrator access their Moodle site on the Moodle app and they didn't enrol in any course, they will see an error message on the app. This is minor because it only affects the site administrators and the error message can be dismissed.

       

      Exception - Class "course_request" not found

      Error code: generalexceptionmessage

      • line 3094 of /course/classes/category.php: Error thrown
        * line 502 of /blocks/myoverview/classes/output/main.php: call to core_course_category->can_request_course()
        * line 51 of /blocks/myoverview/classes/output/renderer.php: call to block_myoverview\output\main->export_for_zero_state_template()
        * line 495 of /lib/outputrenderers.php: call to block_myoverview\output\renderer->render_main()
        * line 62 of /blocks/myoverview/block_myoverview.php: call to plugin_renderer_base->render()
        * line 337 of /blocks/moodleblock.class.php: call to block_myoverview->get_content()
        * line 231 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
        * line 1231 of /lib/blocklib.php: call to block_base->get_content_for_output()
        * line 1289 of /lib/blocklib.php: call to block_manager->create_block_contents()
        * line 337 of /lib/blocklib.php: call to block_manager->ensure_content_created()
        * line 112 of /blocks/classes/external.php: call to block_manager->get_content_for_all_regions()
        * line 291 of /blocks/classes/external.php: call to core_block_external::get_all_current_page_blocks()
        * line ? of unknownfile: call to core_block_external::get_dashboard_blocks()
        * line 251 of /lib/external/classes/external_api.php: call to call_user_func_array()
        * line 550 of /admin/tool/mobile/classes/external.php: call to core_external\external_api::call_external_function()
        * line ? of unknownfile: call to tool_mobile\external::call_external_functions()
        * line 1499 of /webservice/lib.php: call to call_user_func_array()
        * line 1345 of /webservice/lib.php: call to webservice_base_server->execute()
        * line 44 of /webservice/rest/server.php: call to webservice_base_server->run()

       

      The same user on LMS/browser see:

       

      Thanks!

      Isabel

        1. after_patch.png
          after_patch.png
          314 kB
        2. before_patch.png
          before_patch.png
          353 kB
        3. IMG_8731.PNG
          IMG_8731.PNG
          179 kB
        4. MDL-78443_app_error.png
          MDL-78443_app_error.png
          213 kB
        5. MDL-78443_LMS.png
          MDL-78443_LMS.png
          156 kB

            jleyva Juan Leyva
            isabelrenedo Isabel Renedo Rouco
            Rodrigo Mady Rodrigo Mady
            Huong Nguyen Huong Nguyen
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 40 minutes
                5h 40m

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