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

Mobile app call to core_block_get_dashboard_blocks causes log warnings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.9.4, 3.10.1
    • 3.9.2
    • Web Services
    • MOODLE_39_STABLE
    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MDL-70141-master
    • Hide
      1. Ensure your Moodle site is configured to allow the mobile app.
      2. Using the mobile app or Moodle Desktop, connect to your site and log in as any user.
      3. View the 'Dashboard' tab, and confirm that you see a 'Calendar' heading (if not, then change your site configuration to enable the calendar block in dashboard).
      4. Look in the PHP error log from your web server (i.e. tail -f /var/log/apache/error.log)
        • EXPECTED: There should be no errors (such as "Debugging: This page did not call $PAGE->set_url(...)") from these recent requests.

       

      Show
      Ensure your Moodle site is configured to allow the mobile app. Using the mobile app or Moodle Desktop, connect to your site and log in as any user. View the 'Dashboard' tab, and confirm that you see a 'Calendar' heading (if not, then change your site configuration to enable the calendar block in dashboard). Look in the PHP error log from your web server (i.e. tail -f /var/log/apache/error.log ) EXPECTED : There should be no errors (such as " Debugging: This page did not call $PAGE->set_url(...) ") from these recent requests.  

      When the mobile app requests dashboard blocks for a user, it calls the core_block_get_dashboard_blocks API. If there is a calendar block then this warning gets logged on the server:

      [05-Nov-2020 09:23:51 Europe/London] Debugging: This page did not call $PAGE->set_url(...). Using https://_example.org_/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_block_get_dashboard_blocks in

      • line 610 of /lib/pagelib.php: call to debugging()
      • line 830 of /lib/pagelib.php: call to moodle_page->magic_get_url()
      • line 1663 of /calendar/lib.php: call to moodle_page->__get()
      • line 275 of /calendar/classes/external/day_exporter.php: call to calendar_top_controls()
      • line 186 of /calendar/classes/external/day_exporter.php: call to core_calendar\external\day_exporter->get_navigation()
      • line 104 of /calendar/classes/external/week_day_exporter.php: call to core_calendar\external\day_exporter->get_other_values()
      • line 125 of /lib/classes/external/exporter.php: call to core_calendar\external\week_day_exporter->get_other_values()
      • line 164 of /calendar/classes/external/week_exporter.php: call to core\external\exporter->export()
      • line 125 of /lib/classes/external/exporter.php: call to core_calendar\external\week_exporter->get_other_values()
      • line 306 of /calendar/classes/external/month_exporter.php: call to core\external\exporter->export()
      • line 215 of /calendar/classes/external/month_exporter.php: call to core_calendar\external\month_exporter->get_weeks()
      • line 125 of /lib/classes/external/exporter.php: call to core_calendar\external\month_exporter->get_other_values()
      • line 3483 of /calendar/lib.php: call to core\external\exporter->export()
      • line 55 of /blocks/calendar_month/block_calendar_month.php: call to calendar_get_view()
      • line 341 of /blocks/moodleblock.class.php: call to block_calendar_month->get_content()
      • line 235 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      • line 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()
      • line 1239 of /lib/blocklib.php: call to block_manager->create_block_contents()
      • line 334 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      • line 100 of /blocks/classes/external.php: call to block_manager->get_content_for_all_regions()
      • line 271 of /blocks/classes/external.php: call to core_block_external::get_all_current_page_blocks()

            quen Sam Marshall
            quen Sam Marshall
            Tim Hunt Tim Hunt
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m

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