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

Fatal error if no custom languages present

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2
    • Component/s: Local: Flavours
    • Labels:
      None
    • Workaround:
      Hide

      Create an empty lang folder under dataroot - however,language customisations then probably won't be included in flavour packages?

      Show
      Create an empty lang folder under dataroot - however,language customisations then probably won't be included in flavour packages?
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE

      Description

      I use $CFG->langlocalroot and $CFG->langotherroot to point my Moodle install at an alternative location for language packs than $CFG->dataroot/lang so the lang folder does not exist at $CFG->dataroot.

      When I try to load the 'package a flavour' link in my browser, it eventually gives a time-out.

      By digging in the code a bit, I can see that the loop is being entered in get_system_customlangs() even though the opendir() on $this->langpath returned false.

        Attachments

          Activity

            People

            Assignee:
            dmonllao David Monllaó
            Reporter:
            jenny-gray Jenny Gray
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              5/Dec/11