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

Deprecation messages in the new course format API do not provide details

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0
    • Course
    • MOODLE_400_STABLE

      I tried my course format on Moodle 4.0dev and received two pages of deprecation messages. The messages are very not helpful and it is completely unclear from them HOW I can upgrade my course format.

      All I want to do is to change how one or another part of the course page looks, in the past I was able to override individual methods in the renderer, now I seem to need to override 7 templates in order to make changes only to one of them.

      Related to MDL-73679

      This is how my course format looks after upgrade. Neither of these deprecation messages explain how to upgrade:

      Non ajax course edition using course_activity_clipboard is not supported anymore.
       
          line 635 of /course/format/classes/output/section_renderer.php: call to debugging()
          line 221 of /course/format/wplist/renderer.php: call to core_courseformat\output\section_renderer->course_activity_clipboard()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      section_availability_message() is deprecated. Please use core_courseformat\output\local\content\section to render sections. If you need to modify this element, extend core_courseformat\output\local\content\section\availability in your format plugin.
       
          line 591 of /course/format/classes/output/section_renderer.php: call to debugging()
          line 307 of /course/format/wplist/renderer.php: call to core_courseformat\output\section_renderer->section_availability_message()
          line 261 of /course/format/wplist/renderer.php: call to format_wplist_renderer->section_availability()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      Method format_summary_text is deprecated, please usecore_courseformat\output\local\content\section\summary::format_summary_text instead
       
          line 1110 of /course/format/classes/output/section_renderer.php: call to debugging()
          line 265 of /course/format/wplist/renderer.php: call to core_courseformat\output\section_renderer->format_summary_text()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      course_section_cm_name is deprecated. Use core_courseformat\output\local\content\cm\cmname class instead.
       
          line 599 of /course/renderer.php: call to debugging()
          line 387 of /course/format/wplist/renderer.php: call to core_course_renderer->course_section_cm_name()
          line 357 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist_item()
          line 286 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      course_section_cm_classes is deprecated. Now it is part of core_courseformat\output\local\content\cm
       
          line 645 of /course/renderer.php: call to debugging()
          line 607 of /course/renderer.php: call to core_course_renderer->course_section_cm_classes()
          line 387 of /course/format/wplist/renderer.php: call to core_course_renderer->course_section_cm_name()
          line 357 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist_item()
          line 286 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      course_section_cm_availability is deprecated. Use core_courseformat\output\local\content\cm\availability instead
       
          line 817 of /course/renderer.php: call to debugging()
          line 389 of /course/format/wplist/renderer.php: call to core_course_renderer->course_section_cm_availability()
          line 357 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist_item()
          line 286 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      section_availability_message() is deprecated. Please use core_courseformat\output\local\content\section to render sections. If you need to modify this element, extend core_courseformat\output\local\content\section\availability in your format plugin.
       
          line 591 of /course/format/classes/output/section_renderer.php: call to debugging()
          line 307 of /course/format/wplist/renderer.php: call to core_courseformat\output\section_renderer->section_availability_message()
          line 261 of /course/format/wplist/renderer.php: call to format_wplist_renderer->section_availability()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      Method format_summary_text is deprecated, please usecore_courseformat\output\local\content\section\summary::format_summary_text instead
       
          line 1110 of /course/format/classes/output/section_renderer.php: call to debugging()
          line 265 of /course/format/wplist/renderer.php: call to core_courseformat\output\section_renderer->format_summary_text()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      course_section_cm_name is deprecated. Use core_courseformat\output\local\content\cm\cmname class instead.
       
          line 599 of /course/renderer.php: call to debugging()
          line 387 of /course/format/wplist/renderer.php: call to core_course_renderer->course_section_cm_name()
          line 357 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist_item()
          line 286 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      course_section_cm_classes is deprecated. Now it is part of core_courseformat\output\local\content\cm
       
          line 645 of /course/renderer.php: call to debugging()
          line 607 of /course/renderer.php: call to core_course_renderer->course_section_cm_classes()
          line 387 of /course/format/wplist/renderer.php: call to core_course_renderer->course_section_cm_name()
          line 357 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist_item()
          line 286 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      course_section_cm_availability is deprecated. Use core_courseformat\output\local\content\cm\availability instead
       
          line 817 of /course/renderer.php: call to debugging()
          line 389 of /course/format/wplist/renderer.php: call to core_course_renderer->course_section_cm_availability()
          line 357 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist_item()
          line 286 of /course/format/wplist/renderer.php: call to format_wplist_renderer->course_section_cm_wplist()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      section_availability_message() is deprecated. Please use core_courseformat\output\local\content\section to render sections. If you need to modify this element, extend core_courseformat\output\local\content\section\availability in your format plugin.
       
          line 591 of /course/format/classes/output/section_renderer.php: call to debugging()
          line 307 of /course/format/wplist/renderer.php: call to core_courseformat\output\section_renderer->section_availability_message()
          line 261 of /course/format/wplist/renderer.php: call to format_wplist_renderer->section_availability()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      Method format_summary_text is deprecated, please usecore_courseformat\output\local\content\section\summary::format_summary_text instead
       
          line 1110 of /course/format/classes/output/section_renderer.php: call to debugging()
          line 265 of /course/format/wplist/renderer.php: call to core_courseformat\output\section_renderer->format_summary_text()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      section_availability_message() is deprecated. Please use core_courseformat\output\local\content\section to render sections. If you need to modify this element, extend core_courseformat\output\local\content\section\availability in your format plugin.
       
          line 591 of /course/format/classes/output/section_renderer.php: call to debugging()
          line 307 of /course/format/wplist/renderer.php: call to core_courseformat\output\section_renderer->section_availability_message()
          line 261 of /course/format/wplist/renderer.php: call to format_wplist_renderer->section_availability()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      Method format_summary_text is deprecated, please usecore_courseformat\output\local\content\section\summary::format_summary_text instead
       
          line 1110 of /course/format/classes/output/section_renderer.php: call to debugging()
          line 265 of /course/format/wplist/renderer.php: call to core_courseformat\output\section_renderer->format_summary_text()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      section_availability_message() is deprecated. Please use core_courseformat\output\local\content\section to render sections. If you need to modify this element, extend core_courseformat\output\local\content\section\availability in your format plugin.
       
          line 591 of /course/format/classes/output/section_renderer.php: call to debugging()
          line 307 of /course/format/wplist/renderer.php: call to core_courseformat\output\section_renderer->section_availability_message()
          line 261 of /course/format/wplist/renderer.php: call to format_wplist_renderer->section_availability()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
       
      Method format_summary_text is deprecated, please usecore_courseformat\output\local\content\section\summary::format_summary_text instead
       
          line 1110 of /course/format/classes/output/section_renderer.php: call to debugging()
          line 265 of /course/format/wplist/renderer.php: call to core_courseformat\output\section_renderer->format_summary_text()
          line 65 of /course/format/wplist/format.php: call to format_wplist_renderer->print_multiple_section_page()
          line 276 of /course/view.php: call to require()
      

            Unassigned Unassigned
            marina Marina Glancy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

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