Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-53154

Maximum execution time error when deleting a large course

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.9.5, 3.0.3
    • 2.9.4, 3.0.2, 3.1
    • Course
    • MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MDL-53154-master
    • Hide

      Note: You might want to start testing from 29 so that you can just backup and download the generated large course before deleting it and then just restore when testing on 30 and master.

      1. Make sure the server's maximum execution time (php.ini, max_execution_time) is set to 30 seconds or lower.
      2. Create a medium (or large) course in Site administration ► Development ► Make test course.
      3. Navigate to the course.
      4. Under Grade administration, select Grades.
      5. Select Single view.
      6. Select a grade item (i.e. an assignment) on the Select grade item... select box.
      7. Near the bottom of the page, check Perform bulk insert.
      8. Select For All grades.
      9. Insert value 100.
      10. Click Save.
      11. Repeat the bulk insert process above with a different grade at least twice. (This may take a while)
      12. Navigate to Dashboard ► Courses then click Manage courses.
      13. Under the Miscellaneous course category, delete the course by clicking on the x icon.
      14. On the delete confirmation page, click Delete.
        • Confirm that the course is successfully deleted and that the fatal error does not show up even if the maximum execution time limit has been reached.
      Show
      Note: You might want to start testing from 29 so that you can just backup and download the generated large course before deleting it and then just restore when testing on 30 and master. 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 . Confirm that the course is successfully deleted and that the fatal error does not show up even if the maximum execution time limit has been reached.

      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:
      1. Make sure the server's maximum execution time (php.ini, max_execution_time) is set to 30 seconds or lower.
      2. Create a medium (or large) course in Site administration ► Development ► Make test course.
      3. Navigate to the course.
      4. Under Grade administration, select Grades.
      5. Select Single view.
      6. Select a grade item (i.e. an assignment) on the Select grade item... select box.
      7. Near the bottom of the page, check Perform bulk insert.
      8. Select For All grades.
      9. Insert value 100.
      10. Click Save.
      11. Repeat the bulk insert process above with a different grade at least twice. (This may take a while)
      12. Navigate to Dashboard ► Courses then click Manage courses.
      13. Under the Miscellaneous course category, delete the course by clicking on the x icon.
      14. On the delete confirmation page, click Delete.
        • The above fatal error will be displayed after the maximum execution time has been reached..

            jpataleta Jun Pataleta
            jpataleta Jun Pataleta
            Adrian Greeve Adrian Greeve
            Dan Poltawski Dan Poltawski
            David Monllaó David Monllaó
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.