3ilogiclms / moodle-block_learning_plan

This plugin serves as a database and plan for all learning activities in the organziation, where such activities are organized for a more structured learning program.
8 stars 12 forks source link

Need to define myaddinstance capability for 2.7 #7

Open usernamenumber opened 10 years ago

usernamenumber commented 10 years ago

In Moodle 2.7.2+, I used the admin interface to install the learning plan plugin (currently v 2014082002). When I went to add the block to my home page, the following warning was displayed:

Notice: Undefined property: stdClass::$text in /Users/brsmith/Moodle/moodle-2.7/moodle/blocks/learning_plan/block_learning_plan.php on line 51
The block learning_plan does not define the standard capability block/learning_plan:myaddinstance
line 615 of /blocks/moodleblock.class.php: call to debugging()
line 588 of /blocks/moodleblock.class.php: call to block_base->has_add_block_capability()
line 1155 of /lib/blocklib.php: call to block_base->user_can_addto()
line 1135 of /lib/blocklib.php: call to block_manager->user_can_delete_block()
line 254 of /blocks/moodleblock.class.php: call to block_manager->edit_controls()
line 993 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1045 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 361 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
line 45 of /theme/clean/layout/columns3.php: call to core_renderer->standard_head_html()
line 877 of /lib/outputrenderers.php: call to include()
line 807 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 167 of /my/index.php: call to core_renderer->header()

This happens on pretty much every page that involves the learning_path block. However, below the error text the page still renders as expected, and so far I seem to be able to create paths and use the block as expected.