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

Mobile app call to core_block_get_dashboard_blocks causes log warnings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.9.2
    • Fix Version/s: 3.9.4, 3.10.1
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      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.  
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE
    • Pull 3.9 Branch:
      MDL-70141-m39
    • Pull 3.10 Branch:
      MDL-70141-m310
    • Pull Master Branch:
      MDL-70141-master

      Description

      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()

        Attachments

          Activity

            People

            Assignee:
            quen Sam Marshall
            Reporter:
            quen Sam Marshall
            Peer reviewer:
            Tim Hunt
            Integrator:
            Sara Arjona (@sarjona)
            Tester:
            Anna Carissa Sadia
            Participants:
            Component watchers:
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              18/Jan/21

                Time Tracking

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