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

Warnings shown while viewing list of users and adding a new MNET host

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-81476-main
    • Hide

      Pre-requisites

      This test needs to be executed on the maximum PHP supported versions for the master branch (for example, for Moodle 4.3dev, PHP 8.2).
      Setup

      Please note: it's possible that you see some notices during the setup part depending of the debugging levels in your site. You can ignore them as far as the configuration works as expected.

      Setup a couple of Moodle sites:

      1. Site1 running older version, for example: Moodle 4.3.x (MOODLE_403_STABLE).
      2. Site2 running the version to be released (master - Moodle 4.4).
      3. Ensure that they have different $CFG->sessioncookiepath setting either on config.php or in Administration > Server > Session handling
      4. In both sites, enable and configure configure MNet as explained in the doc page.
      5. In both sites, go to Site admin > Security > HTTP security then delete everything in "cURL blocked hosts list"
      6. Please note: You don't need to configure the "remote enrolments" steps, only the "get users roaming" ones.
      7. Create user1 in site1 and user2 in site2.

      Testing - Please test it using both PHP 8.1 and 8.2

      1. Log in as user1 in site1 and go to "Site home".
      2. In the "Network servers" block (that has been added as per the configuration instructions, click on site2.
      3. Verify that now you are welcome to site2 as user1.
      4. Log in as user2 in site2 and go to "Site home".
      5. In the "Network servers" block (that has been added as per the configuration instructions, click on site1.
      6. Verify that now you are welcome to site1 as user2.
      7. Verify that now user1 and user2 do exist in both Site admin > Users > Accounts > Browse list of users.
      8. Verify that you did not see any PHP warning
      Show
      Pre-requisites This test needs to be executed on the maximum PHP supported versions for the master branch (for example, for Moodle 4.3dev, PHP 8.2). Setup Please note: it's possible that you see some notices during the setup part depending of the debugging levels in your site. You can ignore them as far as the configuration works as expected. Setup a couple of Moodle sites: Site1 running older version, for example: Moodle 4.3.x (MOODLE_403_STABLE). Site2 running the version to be released (master - Moodle 4.4). Ensure that they have different $CFG->sessioncookiepath setting either on config.php or in Administration > Server > Session handling In both sites, enable and configure configure MNet as explained in the doc page. In both sites, go to Site admin > Security > HTTP security then delete everything in "cURL blocked hosts list" Please note: You don't need to configure the "remote enrolments" steps, only the "get users roaming" ones. Create user1 in site1 and user2 in site2. Testing - Please test it using both PHP 8.1 and 8.2 Log in as user1 in site1 and go to "Site home". In the "Network servers" block (that has been added as per the configuration instructions, click on site2. Verify that now you are welcome to site2 as user1. Log in as user2 in site2 and go to "Site home". In the "Network servers" block (that has been added as per the configuration instructions, click on site1. Verify that now you are welcome to site1 as user2. Verify that now user1 and user2 do exist in both Site admin > Users > Accounts > Browse list of users. Verify that you did not see any PHP warning
    • 2
    • Team Hedgehog 2024 Sprint 1.4

      Discovered by stevani.andolo@moodle.com while testing MDLQA-18902.

      There are a couple of issues reported:

      1. There's a warning when viewing the list of users page, apparently caused by trying to access a read only "accessctrl" property on bool value:
      2. And the other warning is shown when adding a host on PHP 8.2, because of trying to access array offset in a bool value:

            stevani.andolo@moodle.com Stevani Andolo
            lameze Simey Lameze
            Paul Holden Paul Holden
            Huong Nguyen Huong Nguyen
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 32 minutes
                6h 32m

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