-
Bug
-
Resolution: Fixed
-
Major
-
2.9.4, 3.0.2, 3.1
-
MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MDL-53154-master -
I'm getting the following fatal error when deleting a large course:
Fatal error: Maximum execution time of 30 seconds exceeded in /home/jun/moodles/integration_master/moodle/lib/grade/grade_object.php on line 313
|
Steps to reproduce:
- Make sure the server's maximum execution time (php.ini, max_execution_time) is set to 30 seconds or lower.
- Create a medium (or large) course in Site administration ► Development ► Make test course.
- Navigate to the course.
- Under Grade administration, select Grades.
- Select Single view.
- Select a grade item (i.e. an assignment) on the Select grade item... select box.
- Near the bottom of the page, check Perform bulk insert.
- Select For All grades.
- Insert value 100.
- Click Save.
- Repeat the bulk insert process above with a different grade at least twice. (This may take a while)
- Navigate to Dashboard ► Courses then click Manage courses.
- Under the Miscellaneous course category, delete the course by clicking on the x icon.
- On the delete confirmation page, click Delete.
- The above fatal error will be displayed after the maximum execution time has been reached..
- has been marked as being related by
-
MDL-53278 Add a progress bar when deleting a course
- Closed