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

Check CLI fails when mnet is enabled in Moodle 4.0 and older

    XMLWordPrintable

Details

    • MOODLE_400_STABLE

    Description

      In Moodle 4.0 and older php admin/cli/checks.php throws an exception:

      root@5437eb2fbd64:/var/www/moodle40# php admin/cli/checks.php         
      !!! Exception - Call to undefined function mnet_get_hosts() !!!
      !! 
      Error code: generalexceptionmessage !!
      !! Stack trace: * line 2778 of /lib/upgradelib.php: Error thrown
      * line ? of unknownfile: call to check_xmlrpc_usage()
      * line 736 of /lib/environmentlib.php: call to call_user_func()
      * line 482 of /lib/environmentlib.php: call to environment_custom_checks()
      * line 106 of /lib/environmentlib.php: call to environment_check()
      * line 70 of /lib/classes/check/environment/environment.php: call to check_moodle_environment()
      * line 113 of /admin/cli/checks.php: call to core\check\environment\environment->get_result()
       !!
      

      This doesn't seem to be an issue in 4.1 and master as lots of mnet checks were removed as part of MDL-76053

      Attachments

        Activity

          People

            Unassigned Unassigned
            mikhailgolenkov Misha Golenkov
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: