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

Creating a group causes a PHP error.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.2.6, 2.3.3
    • 2.2.5, 2.3, 2.4
    • Groups
    • MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_22_STABLE, MOODLE_23_STABLE
    • MDL-35637_master
    • Hide

      1. Visit the url <yoursite>/admin/settings.php?section=systempaths
      2. Set GD Version to 'GD is not installed' and save
      2. Visit a course page
      2. Click on Users -> Groups
      3. Click to create a group
      4. When submitting the form ensure there is no error

      Show
      1. Visit the url <yoursite>/admin/settings.php?section=systempaths 2. Set GD Version to 'GD is not installed' and save 2. Visit a course page 2. Click on Users -> Groups 3. Click to create a group 4. When submitting the form ensure there is no error

      When creating a group I receive the issue - "QuickForm Error: nonexistent html element Element 'imagefile' does not exist in HTML_QuickForm::getElement()"

      This error is because $CFG->gdversion is set to 0, so the 'imagefile' element is not being added to the form in group/group_form.php. However, after submission the function groups_update_group_icon is called in group/lib.php which attempts to save this image, regardless of the gdversion.

            markn Mark Nelson
            markn Mark Nelson
            Rajesh Taneja Rajesh Taneja
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            David Monllaó David Monllaó
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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