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

Undefined constants when submitting an online text assignment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6.1
    • Component/s: Assignment (2.2)
    • Labels:

      Description

      1. Enable mod_assignment (Assignment 2.2)
      2. Create a new Online text assignment
      3. Login as a student and click "Add submission"

      Expected

      • You can submit any submission without error or notice

      Actually

      • The following notices appear when viewing the form and when submitting the assignment.

        Notice: Use of undefined constant FILE_INTERNAL - assumed 'FILE_INTERNAL' in /Users/fmc/code/php/repositories/im/moodle/mod/assignment/type/online/assignment.class.php on line 46
         
        Notice: Use of undefined constant FILE_EXTERNAL - assumed 'FILE_EXTERNAL' in /Users/fmc/code/php/repositories/im/moodle/mod/assignment/type/online/assignment.class.php on line 47
        

      This does not occur on 2.5 and previous because it follows some recent changes in 2.6 which removed some automatic file inclusion

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Dan Poltawski
              Integrator:
              Damyon Wiese
              Tester:
              Michael de Raadt
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jan/14