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

Fresh install fails if there are dependencies on format plugins

XMLWordPrintable

    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-83163-m403
    • MDL-83163-m404
    • MDL-83163-main
    • Hide
      1. Edit mod/assign/version.php and add the following line to the end: $plugin->dependencies = ['format_weeks' => ANY_VERSION];
      2. Edit config.php, find the line that sets your database prefix ($CFG->prefix='value';) and change it to a temporary value, e.g. $CFG->prefix = 'x';
      3. Visit the root URL / of your Moodle install in a web browser.
        • (no change) The first Installation screen, with a copyright notice, should appear.
      4. Click Continue.
        • (no change) The Server checks page should appear.
      5. Click Continue.
        • EXPECTED: The Moodle database tables should install successfully (this may take a few minutes to complete); the screen showing installation progress should finish with another Continue button.
      6. This is the end of the test, so you can change back the prefix in config.php and delete the added line from mod/assign/version.php. You may want to use your preferred database tools to delete the unnecessary database tables that have been created (the ones beginning with your temporary prefix name).

      Before this fix, at step 5 the Plugin checks page displayed and showed the following error, even though format_weeks is available.

      Show
      Edit mod/assign/version.php and add the following line to the end: $plugin->dependencies = ['format_weeks' => ANY_VERSION] ; Edit config.php , find the line that sets your database prefix ( $CFG->prefix='value'; ) and change it to a temporary value, e.g. $CFG->prefix = 'x'; Visit the root URL / of your Moodle install in a web browser. (no change) The first Installation screen, with a copyright notice, should appear. Click Continue . (no change) The Server checks page should appear. Click Continue . EXPECTED: The Moodle database tables should install successfully (this may take a few minutes to complete); the screen showing installation progress should finish with another Continue button. This is the end of the test, so you can change back the prefix in config.php and delete the added line from mod/assign/version.php . You may want to use your preferred database tools to delete the unnecessary database tables that have been created (the ones beginning with your temporary prefix name). Before this fix, at step 5 the Plugin checks page displayed and showed the following error, even though format_weeks is available.

      The changes in MDL-58287 mean that the function get_sorted_course_formats will only include course formats that are installed.

      This function is used by \core\plugininfo\format::get_plugins which is the function used to get the list of course formats that exist, on installation, when checking dependencies. (I.e. this should not only return plugins that are already installed.)

      As a result, if any plugin has a dependency on any course format, it is impossible to do a fresh Moodle install.

            quen Sam Marshall
            quen Sam Marshall
            Katie Ransom Katie Ransom
            Jun Pataleta Jun Pataleta
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 51 minutes
                1h 51m

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