Issue Details (XML | Word | Printable)

Key: MDL-15444
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Petr Skoda
Reporter: Andy Diament
Votes: 7
Watchers: 8
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

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

Created: 27/Jun/08 04:13 PM   Updated: 07/Jan/09 12:04 AM
Return to search
Component/s: Other
Affects Version/s: 1.8.2
Fix Version/s: 1.9.4

Environment: Ours is Open Suse on VmWare, moodle 1.8.2+ php 5.1.2 mysql 5.0.26
Issue Links:
Duplicate
 

Database: MySQL
URL: http://moodle.org/mod/forum/discuss.php?d=100153#p442384
Participants: A. T. Wyatt, Andy Diament, Ann Adamcik, CMSSupport, Daniel Beach, Petr Skoda and Tim Hunt
Security Level: None
QA Assignee: Tim Hunt
Resolved date: 02/Jan/09
Affected Branches: MOODLE_18_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
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

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
A. T. Wyatt added a comment - 27/Jun/08 07:49 PM

Andy Diament added a comment - 27/Jun/08 11:14 PM
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


Daniel Beach added a comment - 20/Aug/08 01:27 AM
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.

Ann Adamcik added a comment - 09/Sep/08 02:51 AM
This looks like a dup of MDL-10993.

CMSSupport added a comment - 31/Dec/08 05:59 AM
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.

Tim Hunt added a comment - 06/Jan/09 11:27 AM
Confirming, it is a duplicate.