Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Duplicate
-
2.3.7, 2.4.4, 2.5, 2.6
-
None
-
Any
-
MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
mdl26_
MDL-40094_allow_download_of_large_log_report -
Description
To reproduce this issue:
0. Configure your Moodle's PHP so that memory_limit <= 128M.
1. Configure $CFG->debug to DEVELOPER, and $CFG->debugdisplay to yes.
2. Generate a lot of log entries. To do this, find the id of an existing user and an existing course on your Moodle. Replace the '<insert ... here>' parts in the script below with these ids. Run the script to generate SQL statements and feed these SQL statements into your Moodle's database.
<?php
|
|
$courseid = <insert course id here>;
|
$userid = <insert user id here>;
|
$time = time();
|
for ($i = 0; $i < 150000; $i++) {
|
echo "insert into mdl_log (time, userid, ip, course, module, cmid, action, url, info) values ($time, $userid, '192.168.192.168', $courseid, 'course', 0, 'view', 'something/anything/view.php?id=$courseid', $courseid);\n";
|
}
|
3. go to "Site administration -> Reports -> Logs" .
4. Select All Participants, All Days, All Activties, All Actions and "Download in Text Format" or "Download in Excel Format".
5. click on 'Get these Logs' button.
out of memory error occurs
Attachments
Issue Links
- duplicates
-
MDL-34867 Improve course log export resource consumption and reliability
-
- Closed
-