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

$CFG->admin not working due to plugins not being installed properly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.10.4
    • Administration
    • MOODLE_310_STABLE

      I was testing out the $CFG->admin setting and couldn't get through the install. It would hit the plugins list and say they were missing from disk.

      I did some investigating and it's because we use the wrong substring in lib/classes/component.php

      It's a simple fix.

      Change fetch_plugintypes()

      $path = $CFG->admin . substr($path, 0, 5);
       

      to

      $path = $CFG->admin . substr($path, 5);
      

      I'm surprised this hasn't been reported. I guess no one uses that config setting.

            Unassigned Unassigned
            abgreeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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