Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.8.10, 1.8.11, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.7
-
Fix Version/s: None
-
Component/s: Course
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE, MOODLE_19_STABLE
Description
When you have large number of courses on your server, an instructor login and clicks on Administration block > Import, it would take a LONG time for the Import page to load. A lot of times it will eventually time out.
We found a fix already and hope this could be checked into core. Comment out line 35 - 40 in /course/import/activities/mod.php
// if (empty($creator)) { // $cat_courses = get_courses($course->category); // } else { // $cat_courses = array(); // }
No need to show other courses in category since instructors should not be able to import any courses that are not their own and admin can search for other courses. Hope this helps. ![]()
Attachments
Issue Links
| This issue has a non-specific relationship to: | ||||
| MDL-14379 | Import does not work well when loaded with a lot of courses (60,000+) |
|
|
|
oops, typo, I mean long loading time. By the way, when you load the server with 40000+ courses, it won't even finish loading the import page sometimes.