davidherney / moodle-format_onetopic

Course format Onetopic to LMS Moodle
GNU General Public License v3.0
19 stars 42 forks source link

onetopic is currently not working with Moodle 4.0 and 4.1 #137

Closed ralf-krause closed 1 year ago

ralf-krause commented 1 year ago

Please help!

We like the format_onetopic very much for our Moodle courses bit there are a lot of error messages with Moodle 4.0 and 4.1. The reason is that you are using format_base in your code. The format_base is now deprecated since Moodle 4.0. Use core_courseformat\base instead.

Please look into the file moodle/course/upgrade.txt

=== 4.0 ===
* The format_base is now deprecated. Use core_courseformat\base instead.

Please look also into the file and moodle/course/format/upgrade.txt

=== 4.0 ===
* New core_courseformat\base::uses_course_index() to define whether the course format uses course index or not.
* New core_courseformat\base::supports_components() to specify if the format is compatible with reactive components.
* New core_courseformat\base::uses_indentation() to specify if the format is compatible with activity indentation.
* New core_courseformat\base::get_course_display() if the course uses COURSE_DISPLAY_SINGLEPAGE or COURSE_DISPLAY_MULTIPAGE layout.

I got the following debit messages

Class 'format_base' has been renamed for the autoloader and is now deprecated. Please use 'core_courseformat\base' instead.
line 143 of /lib/classes/component.php: call to debugging()
line ? of unknownfile: call to core_component::classloader()
line 37 of /course/format/onetopic/lib.php: call to spl_autoload_call()
line 159 of /course/format/classes/base.php: call to require_once()
line 200 of /course/format/classes/base.php: call to core_courseformat\base::get_class_name()
line 38 of /course/format/lib.php: call to core_courseformat\base::instance()
line 1165 of /lib/pagelib.php: call to course_get_format()
line 2878 of /lib/moodlelib.php: call to moodle_page->set_course()
line 60 of /course/view.php: call to require_login()
Class 'format_section_renderer_base' has been renamed for the autoloader and is now deprecated. Please use 'core_courseformat\output\section_renderer' instead.
line 143 of /lib/classes/component.php: call to debugging()
line ? of unknownfile: call to core_component::classloader()
line 36 of /course/format/onetopic/renderer.php: call to spl_autoload_call()
line 201 of /lib/outputfactories.php: call to include_once()
line 389 of /lib/outputfactories.php: call to renderer_factory_base->standard_renderer_classnames()
line 2421 of /lib/outputlib.php: call to theme_overridden_renderer_factory->get_renderer()
line 1006 of /lib/pagelib.php: call to theme_config->get_renderer()
line 1252 of /course/format/classes/base.php: call to moodle_page->get_renderer()
line 140 of /course/view.php: call to core_courseformat\base->get_renderer()

and on another page

Non ajax course edition using course_activity_clipboard is not supported anymore.
line 650 of /course/format/classes/output/section_renderer.php: call to debugging()
line 199 of /course/format/onetopic/renderer.php: call to core_courseformat\output\section_renderer->course_activity_clipboard()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
section_left_content() can not be used anymore. Please use core_courseformat\output\local\content\section to render a section.
line 304 of /course/format/classes/output/section_renderer.php: call to debugging()
line 650 of /course/format/onetopic/renderer.php: call to core_courseformat\output\section_renderer->section_left_content()
line 214 of /course/format/onetopic/renderer.php: call to format_onetopic_renderer->section_header()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
section_right_content() can not be used anymore. Please use core_courseformat\output\local\content\section to render a section.
line 276 of /course/format/classes/output/section_renderer.php: call to debugging()
line 653 of /course/format/onetopic/renderer.php: call to core_courseformat\output\section_renderer->section_right_content()
line 214 of /course/format/onetopic/renderer.php: call to format_onetopic_renderer->section_header()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
section_edit_control_menu() can not be used anymore. Please use core_courseformat\output\local\content\section to render a section. In case you need to modify those controls override core_courseformat\output\local\content\section\controlmenu in your format plugin.
line 226 of /course/format/classes/output/section_renderer.php: call to debugging()
line 281 of /course/format/classes/output/section_renderer.php: call to core_courseformat\output\section_renderer->section_edit_control_menu()
line 653 of /course/format/onetopic/renderer.php: call to core_courseformat\output\section_renderer->section_right_content()
line 214 of /course/format/onetopic/renderer.php: call to format_onetopic_renderer->section_header()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
section_availability() 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 629 of /course/format/classes/output/section_renderer.php: call to debugging()
line 667 of /course/format/onetopic/renderer.php: call to core_courseformat\output\section_renderer->section_availability()
line 214 of /course/format/onetopic/renderer.php: call to format_onetopic_renderer->section_header()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 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 606 of /course/format/classes/output/section_renderer.php: call to debugging()
line 633 of /course/format/classes/output/section_renderer.php: call to core_courseformat\output\section_renderer->section_availability_message()
line 667 of /course/format/onetopic/renderer.php: call to core_courseformat\output\section_renderer->section_availability()
line 214 of /course/format/onetopic/renderer.php: call to format_onetopic_renderer->section_header()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 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 1120 of /course/format/classes/output/section_renderer.php: call to debugging()
line 771 of /course/format/onetopic/renderer.php: call to core_courseformat\output\section_renderer->format_summary_text()
line 674 of /course/format/onetopic/renderer.php: call to format_onetopic_renderer->format_summary_text()
line 214 of /course/format/onetopic/renderer.php: call to format_onetopic_renderer->section_header()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
Allgemeines
course_section_cm_list is deprecated. Use core_courseformat\output\local\content\section\cmlist classes instead.
line 939 of /course/renderer.php: call to debugging()
line 217 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_cm_list()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
course_section_cm_list_item is deprecated. Use renderer course_section_updated_cm_item instead
line 840 of /course/renderer.php: call to debugging()
line 971 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
line 217 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_cm_list()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
course_section_cm is deprecated. Use core_courseformat\output\content\cm output class instead.
line 870 of /course/renderer.php: call to debugging()
line 844 of /course/renderer.php: call to core_course_renderer->course_section_cm()
line 971 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
line 217 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_cm_list()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
course_section_cm_list_item is deprecated. Use renderer course_section_updated_cm_item instead
line 840 of /course/renderer.php: call to debugging()
line 971 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
line 217 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_cm_list()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
course_section_cm is deprecated. Use core_courseformat\output\content\cm output class instead.
line 870 of /course/renderer.php: call to debugging()
line 844 of /course/renderer.php: call to core_course_renderer->course_section_cm()
line 971 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
line 217 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_cm_list()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
course_section_cm_list_item is deprecated. Use renderer course_section_updated_cm_item instead
line 840 of /course/renderer.php: call to debugging()
line 971 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
line 217 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_cm_list()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
course_section_cm is deprecated. Use core_courseformat\output\content\cm output class instead.
line 870 of /course/renderer.php: call to debugging()
line 844 of /course/renderer.php: call to core_course_renderer->course_section_cm()
line 971 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
line 217 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_cm_list()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
course_section_cm_list_item is deprecated. Use renderer course_section_updated_cm_item instead
line 840 of /course/renderer.php: call to debugging()
line 971 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
line 217 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_cm_list()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
course_section_cm is deprecated. Use core_courseformat\output\content\cm output class instead.
line 870 of /course/renderer.php: call to debugging()
line 844 of /course/renderer.php: call to core_course_renderer->course_section_cm()
line 971 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
line 217 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_cm_list()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
course_section_cm_list_item is deprecated. Use renderer course_section_updated_cm_item instead
line 840 of /course/renderer.php: call to debugging()
line 971 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
line 217 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_cm_list()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
course_section_cm is deprecated. Use core_courseformat\output\content\cm output class instead.
line 870 of /course/renderer.php: call to debugging()
line 844 of /course/renderer.php: call to core_course_renderer->course_section_cm()
line 971 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
line 217 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_cm_list()
line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
line 272 of /course/view.php: call to require()
ralf-krause commented 1 year ago

As a first aid I deleted the course format onetopic and I no longer get any error messages. Please correct your code as soon as possible so that the Moodle community can continue to use the great looking course format onetopic.

davidherney commented 1 year ago

What version are you using? The component was actualized some months ago for Moodle 4+ compatibility. Please, check.

Saludos

ralf-krause commented 1 year ago

Great! I like the format_onetopic. :-)

It seems so that I downloaded the wrong version. I thought I was the master version.