-
Bug
-
Resolution: Fixed
-
Critical
-
3.4, 3.4 regressions, 3.4.1, 3.5
-
MOODLE_34_STABLE, MOODLE_35_STABLE
-
MOODLE_34_STABLE, MOODLE_35_STABLE
-
MDL-60826-master -
As admin on a large site (50k users, 50k courses), if I click an empty day in the calendar, or go to edit and existing event, the modal opens, but I'm shortly greeted with a empty 'undefined' error box. The server respond to the ajax request with a 500 or 503 code.
Looking at the logs, I get:
[15-Nov-2017 17:09:05 America/Detroit] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/moodlemajor/lib/dml/pgsql_native_moodle_database.php on line 794
|
|
[15-Nov-2017 17:09:05 America/Detroit] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 12288 bytes) in /var/www/html/moodlemajor/lib/classes/session/manager.php on line 530
|
I haven't done any digging into the cause yet, but I assume that somewhere in the code is doing too much with the fact that I am an admin with access to 50k courses, when it isn't needed to show the New event dialog box.
For completeness, the ajax request that causes this error is:
https://test.xyz.edu/lib/ajax/service.php?sesskey=ZZZZZZZZZZ&info=core_get_fragment
With a body of:
[{"index":0,"methodname":"core_get_fragment","args":{"component":"calendar","callback":"event_form","contextid":2836,"args":[{"name":"starttime","value":"1510783266"},{"name":"courseid","value":1}]}}]
|
- caused a regression
-
MDL-64214 Group field doesn't show the values when I select a Course and Type of Event Group in Import Calendar
- Closed
-
MDL-63016 Some event types are missing on the edit event modal
- Closed
-
MDL-65958 Creating a Course calendar event only displays enrolled courses for admin
- Closed
-
MDL-81830 Clearing course selection in new calendar event triggers exception
- Closed
- duplicates
-
MDL-61590 Maximum execution time exceeded when trying to create calendar events
- Closed
-
MDL-62697 Calendar: Add event dialog fails to open for admin, managers (on large system)
- Closed
- has a non-specific relationship to
-
MDL-60402 Calendar slow performance loading contexts with large number of courses
- Closed
-
MDL-59713 Clicking the empty section of a day in the calendar should open the new event modal
- Closed
- has been marked as being related by
-
MDL-61409 For users with access to a lot of courses, calendar event creation dialog is intolerably slow.
- Closed
- is a regression caused by
-
MDL-59973 Admin user cannot create course or group events without enrolment in that course
- Closed
-
MDL-59382 Create calendar event quick-add
- Closed
- will be (partly) resolved by
-
MDL-60842 calendar_get_allowed_types should not request all course fields
- Closed