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

Notice: undefined constant CLI_SCRIPT in installer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Enrolments
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      When installing Moodle from scratch it's showing some notices like:

      Notice: Use of undefined constant CLI_SCRIPT - assumed 'CLI_SCRIPT' in C:\Documents and Settings\stronk7\Escritorio\server\moodle\lib\weblib.php on line 3831??
      Notice: Use of undefined constant CLI_SCRIPT - assumed 'CLI_SCRIPT' in C:\Documents and Settings\stronk7\Escritorio\server\moodle\lib\weblib.php on line 3845

      CLI_SCRIPT is defined in lib/setup.php , but web installers doesn't use that file at all. Going to define it to false (because they are web installers). Both in core and windows installers.

        Gliffy Diagrams

          Attachments

            Activity

            stronk7 Eloy Lafuente (stronk7) created issue -
            Hide
            stronk7 Eloy Lafuente (stronk7) added a comment -

            Done. Resolving as fixed.

            Show
            stronk7 Eloy Lafuente (stronk7) added a comment - Done. Resolving as fixed.
            stronk7 Eloy Lafuente (stronk7) made changes -
            Field Original Value New Value
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            dougiamas Martin Dougiamas made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            dougiamas Martin Dougiamas made changes -
            Workflow jira [ 30466 ] MDL Workflow [ 61873 ]
            dougiamas Martin Dougiamas made changes -
            Workflow MDL Workflow [ 61873 ] MDL Full Workflow [ 91070 ]

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10