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

Creating a course with Format "Single activity format" and Activity Type "External Tool" leads to error 500

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Test 1:

      1. Create course in "Single activity" format with "LTI" as the module type.
      2. Check that both course and module can be created without errors.

      Test 2 (testing the activities with subtypes):

      1. Copy source files of mod_assignment from version 2.6, replace the version.php file and type/ALLTYPES/version.php file with the current ones
      2. Purge caches to get rid of string warnings
      3. Enable "Assignment 2.2" activity module
      4. Create a course in single activity format with "Assignment 2.2" as the activity type
      5. Open the course, turn editing mode on, make sure there are no error
      6. Add activity in assignment 2.2 format
      7. Make sure the activity view page is displayed on course view page
      Show
      Test 1: Create course in "Single activity" format with "LTI" as the module type. Check that both course and module can be created without errors. Test 2 (testing the activities with subtypes): Copy source files of mod_assignment from version 2.6, replace the version.php file and type/ALLTYPES/version.php file with the current ones Purge caches to get rid of string warnings Enable "Assignment 2.2" activity module Create a course in single activity format with "Assignment 2.2" as the activity type Open the course, turn editing mode on, make sure there are no error Add activity in assignment 2.2 format Make sure the activity view page is displayed on course view page
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-50391-master

      Description

      As a Site Admin, create a new course, set:
      -Course format to "Single activity format"
      -Activity Type to "External Tool"

      Save Changes.

      Optionally enrol users onto the course.

      Proceed to visit the course page.

      [Expected result] Edit Settings screen for a new External Tool activity

      [Actual result] Blank course page.

      From there trying to "Turn Editing On" and add an Activity "External Tool" leads an error 500.

      With Debugging on, here is the full trace:

      QuickForm Error: nonexistent html element Element 'showdescription' does not exist in HTML_QuickForm::getElement()
       
      .... (backtrace removed)
       
      Fatal error: Call to undefined method HTML_QuickForm_Error::setText() in /path/to/moodle/mod/lti/mod_form.php on line 80
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Sep/15

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h