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

Duplicating an activity generates an error entry in the apache error log

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.6, 2.7.1
    • Fix Version/s: 2.7.4
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      1. Tail your web server's error log
      2. Open a course
      3. Turn editing on
      4. Duplicate the activity
        • Confirm that the only messages in the error log relate to the backup itself and not to my original debugging
      Show
      Tail your web server's error log Open a course Turn editing on Duplicate the activity Confirm that the only messages in the error log relate to the backup itself and not to my original debugging
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Sprint:
      FRONTEND Sprint 15

      Description

      In Moodle 2.7.1 whenever you duplicate an activity the following entries are generated in the apache log:

      [:error] [pid 2083] [client ip:52336] Looking at a task, referer: https://domain/elearning/moodle/course/view.php?id=5&notifyeditingon=1
      [:error] [pid 2083] [client ip:52336] Looking at a task, referer: /elearning/moodle/course/view.php?id=5&notifyeditingon=1
      [:error] [pid 2083] [client ip:52336] Looking at a restore_activity_task task, referer: https://domain/elearning/moodle/course/view.php?id=5&notifyeditingon=1
      [:error] [pid 2083] [client ip:52336] Contexts match, referer: https://domain/elearning/moodle/course/view.php?id=5&notifyeditingon=1

      These messages come from course/lib.php

      3476 // restored copy of the module
      3477 $newcmid = null;
      3478 $tasks = $rc->get_plan()->get_tasks();
      3479 foreach ($tasks as $task) {
      3480 error_log("Looking at a task");
      3481 if (is_subclass_of($task, 'restore_activity_task')) {
      3482 error_log("Looking at a restore_activity_task task");
      3483 if ($task->get_old_contextid() == $cmcontext->id)

      { 3484 error_log("Contexts match"); 3485 $newcmid = $task->get_moduleid(); 3486 break; 3487 }

      (Running ubuntu server 14.04 LTS)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Jan/15