Moodle

Import from other courses creates many links on course page without resources attached

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.8.2
  • Fix Version/s: 1.9.4
  • Component/s: Other
  • Labels:
    None
  • Environment:
    Ours is Open Suse on VmWare, moodle 1.8.2+ php 5.1.2 mysql 5.0.26

Description

A colleague of mine imported some resources from one course to another using the Import link in the adminsitration block.

This was successful but, in addition, some links were created on the course page with icons but no text. When we tried to edit or delete these files, we got the error message

The required instance of this module didn't exist. Module deleted.

It looks like there are database entries for the items in the course sections without corresponding records for the resources themselves.

Others have reported this bug - discussed at http://moodle.org/mod/forum/discuss.php?d=100153#p442384 includes an example screenshot

Issue Links

Activity

Hide
A. T. Wyatt added a comment -
Show
A. T. Wyatt added a comment - I have contributed the screenshot: http://moodle.org/file.php/5/moddata/forum/32/442597/import_icons_no_content.gif atw
Hide
Andy Diament added a comment -

For each item affected:

the item has a record in mdl_module with an instance = 0, so does not point to an activity or resource in the relevant table; the only records with instance =0 in the whole database are those created when the user tried to import items from another course

Show
Andy Diament added a comment - For each item affected: the item has a record in mdl_module with an instance = 0, so does not point to an activity or resource in the relevant table; the only records with instance =0 in the whole database are those created when the user tried to import items from another course
Hide
Daniel Beach added a comment -

I have it happening on 1.9.2+ (build 20080813) as well. It appears that for every item created in the new course, a resource is created that is empty and doesn't link to anything. I can't delete it from the interface. I don't get an error but it disappears from the list. When I reload the page or return to the course, all the items are back again.

Show
Daniel Beach added a comment - I have it happening on 1.9.2+ (build 20080813) as well. It appears that for every item created in the new course, a resource is created that is empty and doesn't link to anything. I can't delete it from the interface. I don't get an error but it disappears from the list. When I reload the page or return to the course, all the items are back again.
Hide
Ann Adamcik added a comment -

This looks like a dup of MDL-10993.

Show
Ann Adamcik added a comment - This looks like a dup of MDL-10993.
Hide
CMSSupport added a comment -

POSSIBLE RESOLUTION: Ive been having the same issue. There is a screen in the process that provides you with a link to continue. I have been clicking on this link to complete the process. This last time I noticed that if you do NOT click on the continue link - the process completes itself. Its appears that clickin onthe continue link creates the empty duplicates.

Show
CMSSupport added a comment - POSSIBLE RESOLUTION: Ive been having the same issue. There is a screen in the process that provides you with a link to continue. I have been clicking on this link to complete the process. This last time I noticed that if you do NOT click on the continue link - the process completes itself. Its appears that clickin onthe continue link creates the empty duplicates.
Hide
Tim Hunt added a comment -

Confirming, it is a duplicate.

Show
Tim Hunt added a comment - Confirming, it is a duplicate.

People

Dates

  • Created:
    Updated:
    Resolved: