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

Review tool & block behavior in a site without courses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.11, 4.0
    • Fix Version/s: 3.11
    • Component/s: Accessibility toolkit
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_311_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull from Repository:
    • Pull 3.11 Branch:
      MDL-71569_Summarydata
    • Pull Master Branch:
      MDL-71569-master_Summarydata

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wuzi1999 Karen Holland
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Peer reviewer:
              Ilya Tregubov Ilya Tregubov
              Integrator:
              Víctor Déniz Falcón Víctor Déniz Falcón
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Mike Churchward, Karen Holland
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/21

                  Time Tracking

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