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

Notice in pluginlib.php (undefined index target)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3.1
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide

      Check for available updates at both 2.3 and 2.4dev branches. Make sure no PHP notice is thrown.

      Show
      Check for available updates at both 2.3 and 2.4dev branches. Make sure no PHP notice is thrown.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull from Repository:

      Description

      While updating via the command line, this notice appeared a thousand (ish) times.

      PHP Notice:  Undefined index: target in /home/fred/www/repositories/testing_master/moodle/lib/pluginlib.php on line 814

      This is the context of the line 814

      if (empty($response['forbranch']) or $response['forbranch'] !== moodle_major_version(true)) {
          throw new available_update_checker_exception('err_response_target_version', $response['target']);
      }

      (Happened on stable master and master integration)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jul/12