Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3475

Certificate : fails to display if email teachers is set to yes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: Module: Certificate
    • Labels:
      None
    • Workaround:
      Hide

      set email teachers to no.

      Show
      set email teachers to no.
    • Affected Branches:
      MOODLE_22_STABLE

      Description

      Certificates won't display if email teachers is set to yes.
      With debugging enabled the error message is :
      Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

      Debug info: Argument 1 passed to get_users_by_capability() must be an instance of context, boolean given, called in /data/apache/htdocs/moodle/mod/certificate/lib.php on line 335 and defined
      Stack trace:
      line 365 of /lib/setuplib.php: coding_exception thrown
      line 3374 of /lib/accesslib.php: call to default_error_handler()
      line 335 of /mod/certificate/lib.php: call to get_users_by_capability()
      line 394 of /mod/certificate/lib.php: call to certificate_get_teachers()
      line 878 of /mod/certificate/lib.php: call to certificate_email_teachers()
      line 121 of /mod/certificate/view.php: call to certificate_issue()

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: