xAPI-vle / moodle-logstore_xapi

A Moodle plugin to send xAPI statements to an LRS using events in the Moodle logstore.
GNU General Public License v3.0
74 stars 85 forks source link

Deprecation warnings running latest version 2020032801 release v4.6.0 on Moodle 3.11.5 #812

Closed logan-reynolds closed 1 year ago

logan-reynolds commented 2 years ago

Description When running latest plugin version 2020032801 release v4.6.0 on Moodle 3.11.5 with PHP 7.4.18 it does install successfully, however the following deprecation warnings are shown on the /admin/plugins.php page. Can you confirm whether this latest 3.8 version can be expected to work normally on Moodle 3.11, or if there are any plans to release a future version that is specifically compatible with Moodle 3.11?

Version version 2020032801 release v4.6.0 downloaded from Moodle.org

Steps to reproduce the bug

  1. Install the plugin normally in a Moodle 3.11.5 site
  2. Visit the Plugin Administration page at /admin/plugins.php

Expected behaviour Page should load normally with no deprecation warnings

Actual behaviour Page loads with deprecation warnings related to core events and mod_lesson

Server information PHP 7.4.18

Page debug output

core\event\content_viewed has been deprecated. Please extend base event or other relevant abstract class.
    line 32 of /lib/classes/event/content_viewed.php: call to debugging()
    line 136 of /lib/classes/component.php: call to include_once()
    line ? of unknownfile: call to core_component::classloader()
    line ? of unknownfile: call to spl_autoload_call()
    line 908 of /lib/classes/component.php: call to class_exists()
    line 62 of /report/eventlist/classes/list_generator.php: call to core_component::get_component_classes_in_namespace()
    line 91 of /admin/tool/log/store/xapi/src/transformer/get_event_function_map.php: call to report_eventlist_list_generator::get_all_events_list()
    line 79 of /admin/tool/log/store/xapi/settings.php: call to src\transformer\get_event_function_map()
    line 63 of /admin/tool/log/classes/plugininfo/logstore.php: call to include()
    line 46 of /admin/tool/log/settings.php: call to tool_log\plugininfo\logstore->load_settings()
    line 81 of /lib/classes/plugininfo/tool.php: call to include()
    line 669 of /admin/settings/plugins.php: call to core\plugininfo\tool->load_settings()
    line 8857 of /lib/adminlib.php: call to require()
    line 8744 of /lib/adminlib.php: call to admin_get_root()
    line 202 of /admin/plugins.php: call to admin_externalpage_setup()

core\event\course_module_instances_list_viewed has been deperecated. Please use core\event\course_module_instance_list_viewed instead
    line 31 of /lib/classes/event/course_module_instances_list_viewed.php: call to debugging()
    line 136 of /lib/classes/component.php: call to include_once()
    line ? of unknownfile: call to core_component::classloader()
    line ? of unknownfile: call to spl_autoload_call()
    line 908 of /lib/classes/component.php: call to class_exists()
    line 62 of /report/eventlist/classes/list_generator.php: call to core_component::get_component_classes_in_namespace()
    line 91 of /admin/tool/log/store/xapi/src/transformer/get_event_function_map.php: call to report_eventlist_list_generator::get_all_events_list()
    line 79 of /admin/tool/log/store/xapi/settings.php: call to src\transformer\get_event_function_map()
    line 63 of /admin/tool/log/classes/plugininfo/logstore.php: call to include()
    line 46 of /admin/tool/log/settings.php: call to tool_log\plugininfo\logstore->load_settings()
    line 81 of /lib/classes/plugininfo/tool.php: call to include()
    line 669 of /admin/settings/plugins.php: call to core\plugininfo\tool->load_settings()
    line 8857 of /lib/adminlib.php: call to require()
    line 8744 of /lib/adminlib.php: call to admin_get_root()
    line 202 of /admin/plugins.php: call to admin_externalpage_setup()

core\event\role_capabilities_updated has been deprecated. Please use core\event\capability_assigned instead
    line 31 of /lib/classes/event/role_capabilities_updated.php: call to debugging()
    line 136 of /lib/classes/component.php: call to include_once()
    line ? of unknownfile: call to core_component::classloader()
    line ? of unknownfile: call to spl_autoload_call()
    line 908 of /lib/classes/component.php: call to class_exists()
    line 62 of /report/eventlist/classes/list_generator.php: call to core_component::get_component_classes_in_namespace()
    line 91 of /admin/tool/log/store/xapi/src/transformer/get_event_function_map.php: call to report_eventlist_list_generator::get_all_events_list()
    line 79 of /admin/tool/log/store/xapi/settings.php: call to src\transformer\get_event_function_map()
    line 63 of /admin/tool/log/classes/plugininfo/logstore.php: call to include()
    line 46 of /admin/tool/log/settings.php: call to tool_log\plugininfo\logstore->load_settings()
    line 81 of /lib/classes/plugininfo/tool.php: call to include()
    line 669 of /admin/settings/plugins.php: call to core\plugininfo\tool->load_settings()
    line 8857 of /lib/adminlib.php: call to require()
    line 8744 of /lib/adminlib.php: call to admin_get_root()
    line 202 of /admin/plugins.php: call to admin_externalpage_setup()

mod_lesson\event\highscore_added has been deprecated. Since the functionality no longer resides in the lesson module.
    line 31 of /mod/lesson/classes/event/highscore_added.php: call to debugging()
    line 136 of /lib/classes/component.php: call to include_once()
    line ? of unknownfile: call to core_component::classloader()
    line ? of unknownfile: call to spl_autoload_call()
    line 908 of /lib/classes/component.php: call to class_exists()
    line 62 of /report/eventlist/classes/list_generator.php: call to core_component::get_component_classes_in_namespace()
    line 91 of /admin/tool/log/store/xapi/src/transformer/get_event_function_map.php: call to report_eventlist_list_generator::get_all_events_list()
    line 79 of /admin/tool/log/store/xapi/settings.php: call to src\transformer\get_event_function_map()
    line 63 of /admin/tool/log/classes/plugininfo/logstore.php: call to include()
    line 46 of /admin/tool/log/settings.php: call to tool_log\plugininfo\logstore->load_settings()
    line 81 of /lib/classes/plugininfo/tool.php: call to include()
    line 669 of /admin/settings/plugins.php: call to core\plugininfo\tool->load_settings()
    line 8857 of /lib/adminlib.php: call to require()
    line 8744 of /lib/adminlib.php: call to admin_get_root()
    line 202 of /admin/plugins.php: call to admin_externalpage_setup()

mod_lesson\event\highscores_viewed has been deprecated. Since the functionality no longer resides in the lesson module.
    line 31 of /mod/lesson/classes/event/highscores_viewed.php: call to debugging()
    line 136 of /lib/classes/component.php: call to include_once()
    line ? of unknownfile: call to core_component::classloader()
    line ? of unknownfile: call to spl_autoload_call()
    line 908 of /lib/classes/component.php: call to class_exists()
    line 62 of /report/eventlist/classes/list_generator.php: call to core_component::get_component_classes_in_namespace()
    line 91 of /admin/tool/log/store/xapi/src/transformer/get_event_function_map.php: call to report_eventlist_list_generator::get_all_events_list()
    line 79 of /admin/tool/log/store/xapi/settings.php: call to src\transformer\get_event_function_map()
    line 63 of /admin/tool/log/classes/plugininfo/logstore.php: call to include()
    line 46 of /admin/tool/log/settings.php: call to tool_log\plugininfo\logstore->load_settings()
    line 81 of /lib/classes/plugininfo/tool.php: call to include()
    line 669 of /admin/settings/plugins.php: call to core\plugininfo\tool->load_settings()
    line 8857 of /lib/adminlib.php: call to require()
    line 8744 of /lib/adminlib.php: call to admin_get_root()
    line 202 of /admin/plugins.php: call to admin_externalpage_setup()
davidpesce commented 1 year ago

Confirming that this has been resolved in the v4.7.0 release. We currently support 3.9, 3.11, and 4.0