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

Deprecated functions changed signature causing fatal exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 5.0
    • 5.0
    • Course

      Several methods were deprecated in MDL-80116 and their arguments were changed. This causes fatal exceptions in the plugins that have these methods:

      PHP Fatal error: Declaration of format_flexsections\\courseformat\\stateactions::section_move(core_courseformat
      stateupdates $updates, stdClass $course, array $ids, ?int $targetsectionid = null, ?int $targetcmid = null): void must be compatible with core_courseformat
      stateactions::section_move(): void

      Deprecation is not supposed to completely break plugins. Also, I still need to define the methods because my plugins support multiple Moodle versions.

            marina Marina Glancy
            marina Marina Glancy
            Ferran Recio Ferran Recio
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

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