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

When moving a question using an image in a folder from a course to the site, the rename fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Suppose that in course files, you have an image elements/iron2.png in a sub-folder.

      Suppose that there is not an elements folder in the site files area.

      Create a question in the course, and add the elements/iron.png image to the question text using the HTML editor.

      Try moving the question to the site files area. You get an error:

      -----------------------------------------------------------------
      Warning:

      rename(/var/www/html/icmatest/ou-moodle-data/3/elements/iron2.jpg,/var/www/html/icmatest/ou-moodle-data/1/elements/iron2.jpg) [function.rename]: No such file or
      directory in

      /var/www/html/icmatest/ou-moodle/question/contextmoveq.php on line 127

      Notice: Undefined variable: onerrorurl in

      /var/www/html/icmatest/ou-moodle/question/contextmoveq.php on line 128

      Error cannot move file
      /var/www/html/icmatest/ou-moodle-data/3/elements/iron2.jpg.
      -----------------------------------------------------------------

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            timhunt Tim Hunt
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08