davidherney / moodle-format_onetopic

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

The callback get_shortcuts has been deprecated #90

Closed rschrenk closed 2 years ago

rschrenk commented 3 years ago

When moving modules between tabs I get the following error:

The callback get_shortcuts has been deprecated. Please use get_course_content_items and get_all_content_items instead. Some features of the activity chooser, such as favourites and recommendations are not supported when providing content items via the deprecated callback.

    line 302 of /course/classes/local/repository/content_item_readonly_repository.php: call to debugging()
    line 75 of /course/classes/local/repository/caching_content_item_readonly_repository.php: call to core_course\local\repository\content_item_readonly_repository->find_all_for_course()
    line 236 of /course/classes/local/service/content_item_service.php: call to core_course\local\repository\caching_content_item_readonly_repository->find_all_for_course()
    line 311 of /course/renderer.php: call to core_course\local\service\content_item_service->get_content_items_for_user_in_course()
    line 441 of /course/format/onetopic/renderer.php: call to core_course_renderer->course_section_add_cm_control()
    line 75 of /course/format/onetopic/format.php: call to format_onetopic_renderer->print_single_section_page()
    line 290 of /course/view.php: call to require()
davidherney commented 3 years ago

Hi @rschrenk ...

I think that the error is not by the course format. Maybe it is by an old implementation from the get_shortcuts method into some module. You can read about it on https://tracker.moodle.org/browse/MDL-68011 What type of module you move when you get the error?

Saludos

rschrenk commented 3 years ago

Hello, this happens as soon as I disable the synchronous mode, and before I choose a certain course module. Kind regards onetopic-error

davidherney commented 2 years ago

Nop... I can't reproduce it... probably is by other component.

Saludos