Add-ons
  1. Add-ons
  2. CONTRIB-3148

Fatal error with Moodle Flavours plugin and imsenterprise/settings.php

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: Local: Flavours
    • Labels:
      None
    • Environment:
      Running Moodle 2.1.1 build 20110803
      on Linux running Apache/2.2.16 (Debian)
      PHP Version 5.3.5-0
      Suhosin Extension 0.9.32.1
    • Database:
      MySQL
    • Workaround:
      Hide

      If you're not using the IMS enterprise enrolment method, you can comment out lines 58-66 in enrol/imsenterprise/settings.php

      Show
      If you're not using the IMS enterprise enrolment method, you can comment out lines 58-66 in enrol/imsenterprise/settings.php
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Rank:
      23333

      Description

      Really impressed with this plugin, well done.

      It installed ok, but when I go to 'package' a flavour, I get a blank screen. With debugging on, the error message is Fatal error: Class 'imsenterprise_roles' not found in /webroot/enrol/imsenterprise/settings.php on line 62.

      I've commented out lines 58-66 in enrol/imsenterprise/settings.php and it works.

      (The IMS Enterprise Enrolment method is not in use on the site and is disabled)

        Issue Links

          Activity

          Hide
          David Monllaó added a comment -

          Hi Jon,

          Thanks for the bug report and the environment description, I've the same problem with the latest build, I'll create an issue on the core IMS component, the require_once('locallib.php') can be changed for a require_once($CFG->dirroot . '/enrol/imsenterprise/locallib.php') in order to solve the problem.

          Show
          David Monllaó added a comment - Hi Jon, Thanks for the bug report and the environment description, I've the same problem with the latest build, I'll create an issue on the core IMS component, the require_once('locallib.php') can be changed for a require_once($CFG->dirroot . '/enrol/imsenterprise/locallib.php') in order to solve the problem.
          Show
          David Monllaó added a comment - https://github.com/dmonllao/moodle-local_flavours/commit/e05815d78df06d081b4491ea7f12c045cc5d7527

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development