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

Review tool & block behavior in a site without courses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.11
    • 3.11, 4.0
    • Accessibility toolkit
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • MDL-71569-master_Summarydata
    • Hide

      Important:

      • Use a Moodle instance that has not been registered previously on the Brickfield portal.
      • Do not run any tool_brickfield task except the one mentioned below before or during the test.

      Test

      1. Log in as an administrator and go to Site administration > Plugins > Admin tools > Accessibility > Brickfield registration.
      2. Log in to the Brickfield Portal and obtain an API and secret key for your Moodle site.
      3. Return to Site administration > Plugins > Admin tools > Accessibility > Brickfield registration and enter the API and secret key, then click on "Activate" to complete your registration.
      4. Verify that a notification is now displayed stating 'Your accessibility toolkit is functional while being validated.'.
      5. Go to Site administration > Server > System path.
      6. Fill the "Path to PHP CLI" setting if empty (usually /usr/bin/php or /usr/local/bin/php).
      7. Go to Site administration > Server > Tasks > Scheduled tasks.
      8. Run the task called "Update site summarydata" ( \tool_brickfield\task\update_summarydata).
      9. Confirm the task completes successfully with no further error.
      Show
      Important: Use a Moodle instance that has not been registered previously on the Brickfield portal. Do not run any tool_brickfield task except the one mentioned below before or during the test. Test Log in as an administrator and go to Site administration > Plugins > Admin tools > Accessibility > Brickfield registration . Log in to the  Brickfield Portal  and obtain an API and secret key for your Moodle site. Return to Site administration > Plugins > Admin tools > Accessibility > Brickfield registration and enter the API and secret key, then click on "Activate" to complete your registration. Verify that a notification is now displayed stating 'Your accessibility toolkit is functional while being validated.'. Go to  Site administration > Server > System path . Fill the "Path to PHP CLI" setting if empty (usually /usr/bin/php or /usr/local/bin/php ). Go to Site administration > Server > Tasks > Scheduled tasks . Run the task called "Update site summarydata" ( \tool_brickfield\task\update_summarydata). Confirm  the task completes successfully with no further error.

      In MDL-71546 it was detected that the update_summarydata scheduled task was failing in a site without courses:

      Scheduled task failed: Update site summarydata (tool_brickfield\task\update_summarydata),Argument 1 passed to tool_brickfield\accessibility::get_summary_data() must be of the type int, null given, called in /home/ferran/moodles/MDL-integration/moodle/admin/tool/brickfield/classes/brickfieldconnect.php on line 89
      Backtrace:
      * line 89 of /admin/tool/brickfield/classes/brickfieldconnect.php: call to tool_brickfield\accessibility::get_summary_data()
      * line 48 of /admin/tool/brickfield/classes/task/update_summarydata.php: call to tool_brickfield\brickfieldconnect->send_summary()
      * line 253 of /lib/cronlib.php: call to tool_brickfield\task\update_summarydata->execute()
      * line 167 of /admin/cli/scheduled_task.php: call to cron_run_inner_scheduled_task()
      

      This issue is about to review, in a site without courses, that both the scheduled task above (and others), plus the block, the tool in general... are all working ok without sites.

            wuzi1999 Karen Holland
            stronk7 Eloy Lafuente (stronk7)
            Ilya Tregubov Ilya Tregubov
            Victor Déniz Falcón Victor Déniz Falcón
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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