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

Undefined constant FILE_INTERNAL when trying to make a submission in the workshop

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Workshop
    • Labels:
      None
    • Testing Instructions:
      Hide

      Preparation

      • Make sure that debugging is set to developer.

      Testing

      1. Create a workshop activity.
      2. Make sure that the activity allows the upload of files.
      3. Change the phase to submission phase and log in as a student.
      4. Start preparing your submission.
      5. Make sure that there are no warnings and that attaching and submitting a file is successful.
      Show
      Preparation Make sure that debugging is set to developer. Testing Create a workshop activity. Make sure that the activity allows the upload of files. Change the phase to submission phase and log in as a student. Start preparing your submission. Make sure that there are no warnings and that attaching and submitting a file is successful.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-41556-master
    • Sprint:
      BACKEND Sprint 4

      Description

      When trying to make a submission as a student in the workshop activity, I get the following error:

      Notice: Use of undefined constant FILE_INTERNAL - assumed 'FILE_INTERNAL' in /home/adrian/moodles/stable_master_postgres/moodle/mod/workshop/submission.php on line 149 Notice: Use of undefined constant FILE_EXTERNAL - assumed 'FILE_EXTERNAL' in /home/adrian/moodles/stable_master_postgres/moodle/mod/workshop/submission.php on line 150 Notice: Use of undefined constant FILE_INTERNAL - assumed 'FILE_INTERNAL' in /home/adrian/moodles/stable_master_postgres/moodle/mod/workshop/submission.php on line 152

      I think that submission.php just needs a reference to the repositories lib.

      This only affects 2.6

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13