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

DnD: It is not allowed to set the property cm_info::$<property>

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      1. Enable some group mode in the course but do not force it
      2. Drag and drop scorm package on the page
      3. Make sure the group mode for activity is displayed properly
      4. Refresh the page
      5. Make sure the group mode for activity is displayed properly
      6. Drag and drop scorm package on page again
      7. Without refreshing the page try to change the group mode, make sure it is being changed properly and remains the same after refreshing the page
      8. Repeat the same with forced group mode (except that you should not be able to change the group mode in this case)
      Show
      Enable some group mode in the course but do not force it Drag and drop scorm package on the page Make sure the group mode for activity is displayed properly Refresh the page Make sure the group mode for activity is displayed properly Drag and drop scorm package on page again Without refreshing the page try to change the group mode, make sure it is being changed properly and remains the same after refreshing the page Repeat the same with forced group mode (except that you should not be able to change the group mode in this case)
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      wip-MDL-42441-master

      Description

      Uploading a SCORM package using drag&drop gives these 2 debugging messages below, visible only in the web server error log file:

      Debugging: It is not allowed to set the property cm_info::$groupmodelink
      line 1249 of /lib/modinfolib.php: call to debugging()
      line 703 of /course/dnduploadlib.php: call to cm_info->__set()
      line 553 of /course/dnduploadlib.php: call to dndupload_ajax_processor->finish_setup_course_module()
      line 515 of /course/dnduploadlib.php: call to dndupload_ajax_processor->handle_file_upload()
      line 41 of /course/dndupload.php: call to dndupload_ajax_processor->process()
      referer: /course/view.php?id=3&notifyeditingon=1
       
      Debugging: It is not allowed to set the property cm_info::$groupmode
      line 1249 of /lib/modinfolib.php: call to debugging()
      line 704 of /course/dnduploadlib.php: call to cm_info->__set()
      line 553 of /course/dnduploadlib.php: call to dndupload_ajax_processor->finish_setup_course_module()
      line 515 of /course/dnduploadlib.php: call to dndupload_ajax_processor->handle_file_upload()
      line 41 of /course/dndupload.php: call to dndupload_ajax_processor->process()
      referer: /course/view.php?id=3&notifyeditingon=1
      

      Regression from MDL-41219?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              matteo Matteo Scaramuccia
              Peer reviewer:
              Andrew Nicols
              Integrator:
              Dan Poltawski
              Tester:
              Petr Skoda
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

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