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

Re: course restore UI fail but cli work

$
0
0
by Ken Task.  

All in this thread ... it makes following an issue difficult when others 'piggy back' thinking that the issue is the same ... or appears to be.
So this response is for Johnny Lo - and not necessarily for all others ....

The file reported .. restore_stepslib.php
Line 4926 (* below) is in this section of the code.

// Here with $newparent empty, problem with contexts or remapping, set it to top cat
*            if (!$newparent && $dbcat->parent) {
                $topcat = question_get_top_category($dbcat->contextid, true);
                if ($dbcat->parent != $topcat->id) {
                    $DB->set_field('question_categories', 'parent', $topcat->id, array('id' => $dbcat->id));
                }
            }
        }

It is related to restoring a quiz.

My suggestion, via the GUI, make a selective backup - excluding all quizzes to begin ... then again adding 1 quiz per backup.   Yes, I know, that could be time consuming and there must be an eaiser way, but ...

The number reported ... 390 ... what is that?

There is a hidden admin tool in your 3.10.x vesrion of moodle (it's been removed in higher versions) called "health".
Access directly using brower url line
https://yoursite/admin/tool/health/
might want to do that during non-prime time as the health check could be intensive.

It tries to ID problems ... many related to quiz.

Run that ... then share back what it reported.

'SoS', Ken


Viewing all articles
Browse latest Browse all 6815

Trending Articles



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