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

PHP fatal error: Class completion_criteria not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.8.2
    • Course completion
    • MOODLE_38_STABLE

      In unittests we were trying to add a completion criteria to a course and hit this

      PHP Fatal error:  Class 'completion_criteria' not found in /.../completion/criteria/completion_criteria_self.php on line 38
      

      the require_once() is missing in core but this file is probably included somewhere else so normally this error does not happen

      This is how to reproduce it in core (note that php init is essential because after that the cache is built and completion library is loaded):

      php admin/tool/phpunit/cli/init.php
      ./vendor/bin/phpunit completion/tests/externallib_test.php --filter test_mark_course_self_completed
      

            Unassigned Unassigned
            marina Marina Glancy
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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