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

E_ERROR in course_check_updates web service

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.5, 3.3.2, 3.4
    • Fix Version/s: 3.2.6, 3.3.3
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      Hide

      Run just the phpunit test for the method using the following command:

       

      PHP Unit command

      vendor/bin/phpunit --filter test_check_updates core_course_externallib_testcase course/tests/externallib_test.php

       

      Show
      Run just the phpunit test for the method using the following command:   PHP Unit command vendor/bin/phpunit --filter test_check_updates core_course_externallib_testcase course/tests/externallib_test.php  
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

       We seem to be getting the following error occasionally showing up in our service monitoring for Moodle:

      E_ERROR
      /webservice/rest/server.php

      E_ERROR: Call to undefined function course_check_updates()
      in core_course_external::check_updates called at /var/www/html/course/externallib.php (3089)
      in core_course_external::check_updates called at ? (?)
      in call_user_func_array called at /var/www/html/webservice/lib.php (1355)
      in webservice_base_server::execute called at /var/www/html/webservice/lib.php (1219)
      in webservice_base_server::run called at /var/www/html/webservice/rest/server.php (44)

      The core_course_external::check_updates() method does not explicitly require the course lib file, many of the other web services methods in the file do.

        Attachments

          Activity

            People

            • Assignee:
              nmagill Neill Magill
              Reporter:
              nmagill Neill Magill
              Peer reviewer:
              Juan Leyva
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Juan Leyva, Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17