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

When importing Common Cartridge package, link are broken.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Component/s: Backup: IMS-CC
    • Labels:
    • Environment:
      Local. Linux w/mysql.

      Description

      For test MDLQA-1426 (A teacher can import an IMS Common Cartridge package)downloaded this IMS Common Cartrige package: http://openlearn.open.ac.uk/blocks/formats/logrequest.php?url=/file.php/2592/exports/MST209_1_imscc.zip. After importing, found that what should have been links to external link resources were file resources. The links on the page were, therefore, broken.

      The following messages also appeared in the error log:

      [Wed Nov 23 13:52:02 2011] [error] [client 160.94.168.34] PHP Notice:  Trying to get property of non-object in /home/moodle/2.2-core/docs/backup/cc/entities.class.php on line 212, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:02 2011] [error] [client 160.94.168.34] PHP Notice:  Trying to get property of non-object in /home/moodle/2.2-core/docs/backup/cc/entities.class.php on line 213, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/SEARCH_FORUMS, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/NEWS_ITEMS, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/CALENDAR_UPCOMING, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] (moodle1) no handler attached /MOODLE_BACKUP/COURSE/BLOCKS/BLOCK/RECENT_ACTIVITY, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] PHP Warning:  copy() [<a href='function.copy'>function.copy</a>]: The first argument to copy() function cannot be a directory in /home/moodle/2.2-core/docs/backup/converter/moodle1/lib.php on line 1409, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] (moodle1) error migrating the resource main file course_files/, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] PHP Warning:  copy() [<a href='function.copy'>function.copy</a>]: The first argument to copy() function cannot be a directory in /home/moodle/2.2-core/docs/backup/converter/moodle1/lib.php on line 1409, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] (moodle1) error migrating the resource main file course_files/, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] PHP Warning:  copy() [<a href='function.copy'>function.copy</a>]: The first argument to copy() function cannot be a directory in /home/moodle/2.2-core/docs/backup/converter/moodle1/lib.php on line 1409, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] (moodle1) error migrating the resource main file course_files/, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] PHP Warning:  copy() [<a href='function.copy'>function.copy</a>]: The first argument to copy() function cannot be a directory in /home/moodle/2.2-core/docs/backup/converter/moodle1/lib.php on line 1409, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php
      [Wed Nov 23 13:52:05 2011] [error] [client 160.94.168.34] (moodle1) error migrating the resource main file course_files/, referer: https://moodledev.oit.umn.edu/2.2-core/backup/restore.php

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    5/Dec/11