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

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.6
    • 2.6
    • Workshop
    • None
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • wip-MDL-41556-master
    • 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.
    • 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

              abgreeve Adrian Greeve
              abgreeve Adrian Greeve
              Frédéric Massart Frédéric Massart
              Sam Hemelryk Sam Hemelryk
              Michael de Raadt Michael de Raadt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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