Closed supton-overtsoftware closed 8 years ago
We don't support backup/restore of subpage individually (i.e. in any way other than restoring the whole course), except for using the new 'copy subpage to another website' button that was added recently. Probably best to use that feature if possible...
(For info: when doing a full course restore the temp IDs are put back, i.e. it subtracts 10 million again, in the after_restore function in restore_subpage_activity_task.php.)
When you get the temp IDs stuck in the database you can clear them by visiting mod/subpage/deletebaddata.php (see code comments for usage information).
Hope this helps? I don't think it's possible to make the individual backup/restore work properly because of the way it depends on other sections etc.
Thanks for the speedy response and apologies for the delay. It looks like it was a symptom from a previous partial restore.
When importing a subpage more than once it returns an error (at the bottom) and it's exhibited it on 2014092900. When debugging the following line in 'restore_subpage_activity_task_class.php' (line 128) doesn't return a value and never replaces the temp IDs.