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

E_ERROR in course_check_updates web service

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.6, 3.3.3
    • 3.2.5, 3.3.2, 3.4
    • Web Services
    • MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • MOODLE_32_STABLE, MOODLE_33_STABLE
    • 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  

       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.

            nmagill Neill Magill
            nmagill Neill Magill
            Juan Leyva Juan Leyva
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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