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

Command line installer does not work under Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.2.1
    • Administration
    • Windows 7
    • MOODLE_22_STABLE
    • Hide

      File: admin/cli/install.php, Line: 330

      $dataroot = clean_param($options['dataroot'], PARAM_PATH);
      if ($dataroot !== $options['dataroot']) {
          $a = (object)array('option' => 'dataroot', 'value' => $options['dataroot']);
          cli_error(get_string('cliincorrectvalueerror', 'admin', $a));
      }

      Function clean_param removes colon from $options['dataroot'] and replaces slash with backslash.
      As a result $dataroot will not be equal to $options['dataroot'] and installation will stop with error.

      Show
      File: admin/cli/install.php, Line: 330 $dataroot = clean_param($options['dataroot'], PARAM_PATH); if ($dataroot !== $options['dataroot']) { $a = (object)array('option' => 'dataroot', 'value' => $options['dataroot']); cli_error(get_string('cliincorrectvalueerror', 'admin', $a)); } Function clean_param removes colon from $options ['dataroot'] and replaces slash with backslash. As a result $dataroot will not be equal to $options ['dataroot'] and installation will stop with error.

      Installation via command line under Windows fails with error:

      C:\Projects\Moodle\htdocs\www\admin\cli>php install.php
      Moodle 2.2.1 (Build: 20120109) command line installation program
      -------------------------------------------------------------------------------
      == List of available languages ==
      ...
      ...
      type value, press Enter to use default value (en)
      :
      -------------------------------------------------------------------------------
      == Data directories permission ==
      type value, press Enter to use default value (2777)
      :
      -------------------------------------------------------------------------------
      == Web address ==
      type value
      : http://moodle.local/
      Error, incorrect value "C:/Projects/Moodle/htdocs/moodledata" for "dataroot"

            skodak Petr Skoda
            covex Andrey F. Mindubaev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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