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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7.4
    • 2.6.6, 2.7.1
    • Course
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_27_STABLE
    • 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
    • FRONTEND Sprint 15

      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)

            dobedobedoh Andrew Lyons
            watersevenub Rui Az. (Inactive)
            Zachary Durber Zachary Durber
            Sam Hemelryk Sam Hemelryk
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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