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

Problems while installing plugins and Moodle when $CFG->preventexecpath = true;

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      0/ run phpunit tests
      1/ add $CFG->preventexecpath = 1; to your config.php
      2/ try installing moodle
      3/ try uninstalling and reinstalling assignfeedback_editpdf

      On master you will need to test a new install.

      Show
      0/ run phpunit tests 1/ add $CFG->preventexecpath = 1; to your config.php 2/ try installing moodle 3/ try uninstalling and reinstalling assignfeedback_editpdf On master you will need to test a new install.
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip_MDL-41593_m28_preventexecdefault

      Description

      In our Moodle installation we have set: $CFG->preventexecpath = true;

      When I try to install a plugin that needs global configuration (admin_setting_configfile) to specify a config file location, it is not possible to save this plugin's global settings. Moodle asks me again and again.

      As mentioned in MDL-40949, the user can not see that they cannot set a path to a file. so it's not possible to save this config and it's confusing for the user.

      Installing Plugins with such an option is only possible if I temporarily disable $CFG->preventexecpath

      Is there any less complicated solution to allow installing Plugins with prevented config options?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              beni_x91 Benjamin Droemer
              Peer reviewer:
              David Mudrák (@mudrd8mz)
              Integrator:
              Damyon Wiese
              Tester:
              Damyon Wiese
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14