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

XML-RPC lib.php depends on filelib but it is not included

XMLWordPrintable

    • Any
    • MOODLE_34_STABLE
    • MOODLE_33_STABLE, MOODLE_34_STABLE
    • MDL-60809-master
    • Hide
      1. Expose your local Moodle instance over the internet using ngrok.
        1. Download and run ngrok

          ./ngrok http 80 --region=au
          

        2. Edit config.php and set "$CFG->wwwroot" using the "Forwarding" HTTP URL shown by ngrok.
      2. Create a fresh install
      3. Log in as admin and register the site with moodle.net when prompted. (Or navigate to Site administration / Notifications and click "Register your site")
      4. Create a script named "testunregister.php" in the root of your moodle install with the following:

        <?php
         
        require_once('config.php');
        core\hub\registration::unregister(true, true);
        

      5. Run the test script

        php testunregister.php
        

      6. Verify there are no errors
      7. Navigate to the site administration page
      8. Verify you see a notification informing you that your site is not registered
      Show
      Expose your local Moodle instance over the internet using ngrok. Download and run ngrok ./ngrok http 80 --region=au Edit config.php and set " $CFG->wwwroot " using the " Forwarding " HTTP URL shown by ngrok. Create a fresh install Log in as admin and register the site with moodle.net when prompted. (Or navigate to Site administration / Notifications and click " Register your site ") Create a script named " testunregister.php " in the root of your moodle install with the following: <?php   require_once('config.php'); core\hub\registration::unregister(true, true); Run the test script php testunregister.php Verify there are no errors Navigate to the site administration page Verify you see a notification informing you that your site is not registered

      Discovered while attempting to call the function core\hub\registration::unregister from a CLI script:

      


Default exception handler: Exception - Call to undefined function download_file_content() Debug: 
      Error code: generalexceptionmessage
      * line 86 of /webservice/xmlrpc/lib.php: Error thrown
      * line 95 of /lib/classes/hub/api.php: call to webservice_xmlrpc_client->call()
      * line 72 of /lib/classes/hub/api.php: call to core\hub\api::call_xmlrpc()
      * line 308 of /lib/classes/hub/api.php: call to core\hub\api::call()
      * line 418 of /lib/classes/hub/registration.php: call to core\hub\api::unregister_site()
      * line 13 of /local/moodlecloud/cli/pre-removal.php: call to core\hub\registration::unregister()
       
      !!! Exception - Call to undefined function download_file_content() !!!
      

      /webservice/xmlrpc/lib.php is missing require_once($CFG->libdir . '/filelib.php')

            cameron1729 cameron1729
            cameron1729 cameron1729
            Mark Nelson Mark Nelson
            Damyon Wiese Damyon Wiese
            Rayna Mae Jayco Rayna Mae Jayco
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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