Issue Details (XML | Word | Printable)

Key: MDL-13357
Type: Bug Bug
Status: Resolved Resolved
Resolution: Not a bug
Priority: Major Major
Assignee: Dan Marsden
Reporter: Matthew Davidson
Votes: 0
Watchers: 1
Operations

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

Backup cron errors on some courses / course restore error

Created: 07/Feb/08 03:43 AM   Updated: 21/Aug/08 10:02 PM
Return to search
Component/s: Backup
Affects Version/s: 1.8
Fix Version/s: None

File Attachments: None
Image Attachments:

1. failed_import_resource.png
(2 kB)
Issue Links:
Blockers
 
Relates
 

Participants: Dan Marsden and Matthew Davidson
Security Level: None
Resolved date: 27/Jun/08
Affected Branches: MOODLE_18_STABLE


 Description  « Hide
I have some courses that fail backup. I think it might be because they imported the course from a different version of Moodle or some other user error but I think it should be prevented. I end up with entries in the mdl_course_sections table that don't correspond to existing resources. They show up in the course as a module logo with no title. The resource can't be deleted because it doesn't actually exist. So the only way to get rid of it is manually from the database.

This problem doesn't cause the backup to fail...but another problem in the database does. I search the mdl_course_modules table for instanceid=0 and I get 1 record for that course. I have to delete this record before the backup will work again.

1. What is causing this database issue.

2. Should there be some kind of resource validation before a link is created or a resource is imported?

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Dan Marsden added a comment - 04/Jun/08 09:57 AM
Hi Matthew,

can you please turn debugging on for your site, and post any errors that display during the backup/restore here?

thanks,

Dan


Matthew Davidson added a comment - 27/Jun/08 08:27 PM
Request to close.....

Dan Marsden added a comment - 27/Jun/08 08:30 PM
done. - thanks!