Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-9626

Creation of dynamic property action_link::$primary is deprecated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 4.2.9
    • Module: Scheduler
    • None
    • 2023052400
    • MOODLE_402_STABLE

      With PHP 8.2 or later the warning Creation of dynamic property action_link::$primary is deprecated appears on mod/scheduler/view.php?id=....

      Problem seen with Moodle 4.2.8+ (Build: 20240712) and PHP 8.2.8.

      Steps to reproduce issue

      1. Set up Moodle site with PHP 8.2 or 8.3.
      2. Enable debugging (Debug messages = DEVELOPER, Display debug messages = Yes).
      3. Create a course and enrol a teacher.
      4. Turn on editing, add a mod_scheduler instance, give it a name and click Save and display.

      Expected results

      The page displays with no errors.

      Actual results

      The following warning appears twice:
      Deprecated: Creation of dynamic property action_link::$primary is deprecated in .../mod/scheduler/renderable.php on line 351

            bostelm Henning Bostelmann
            leonstr Leon Stringer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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