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

Notice: undefined constant CLI_SCRIPT in installer

    XMLWordPrintable

    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.

        Attachments

          Activity

            People

            • Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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