Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6587

Re: Orphan course module problem in backup with Moodle 2.9.2

$
0
0
by Susana L..  

Hi,

We are having the same issue on Moodle 2.7.
I get: Orphan course module (id: 20453) found. This module will not be backed up.

I think we don't have an answer for this problem yet... not even why it is happening...

As explained here:

 https://tracker.moodle.org/browse/MDL-31571

"Some situations that those tools (fix_course_sequence.php) do not cover:
course_module links to non-existing course
entry in course_module exists and in the corresponding module table not (forum, assign, etc.)"

I ran the following query:

MariaDB [moodle]> select id, course, module, instance from mdl_course_modules where instance=0;
 And I got the 20453:

+-------+--------+--------+----------+
| id    | course | module | instance |
+-------+--------+--------+----------+
| 20453 |   1400 |     17 |        0 |
+-------+--------+--------+----------+

So, this resource (module=17) has instance=0, which means it has an entry in course_module but no corresponding entry in resource table (instance=0).

Your problem must be similar.

Best,
susana   


Viewing all articles
Browse latest Browse all 6587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>