Course meta link - error: core_grading/invalid_method_name

Course meta link - error: core_grading/invalid_method_name

by Conn Warwicker -
Number of replies: 2
Picture of Core developers Picture of Plugin developers

Hi,

We are getting this error when trying to attach a course meta link:

core_grading/invalid_method_name

More information about this error

Debug info: 
Error code: invalid_method_name
$a contents:
Stack trace:
  • line 505 of /grade/grading/lib.php: moodle_exception thrown
  • line 541 of /grade/grading/lib.php: call to grading_manager->get_controller()
  • line 388 of /mod/assign/feedback/offline/locallib.php: call to grading_manager->get_active_controller()
  • line 7736 of /mod/assign/locallib.php: call to assign_feedback_offline->is_enabled()
  • line 1141 of /mod/assign/lib.php: call to assign->get_user_grades_for_gradebook()
  • line 1158 of /mod/assign/lib.php: call to assign_get_user_grades()
  • line 1368 of /lib/gradelib.php: call to assign_update_grades()
  • line 1338 of /lib/gradelib.php: call to grade_update_mod_grades()
  • line 1093 of /lib/gradelib.php: call to grade_grab_course_grades()
  • line 1352 of /lib/enrollib.php: call to grade_recover_history_grades()
  • line 347 of /enrol/meta/locallib.php: call to enrol_plugin->enrol_user()
  • line 160 of /enrol/meta/lib.php: call to enrol_meta_sync()
  • line 96 of /enrol/editinstance.php: call to enrol_meta_plugin->add_instance()

I've not seen this one before.

Has anyone come across this before? Or have any idea what is causing it/how to resolve it?


Cheers.

Average of ratings: -
In reply to Conn Warwicker

Re: Course meta link - error: core_grading/invalid_method_name

by Carl Boyd -

I too am finding this error with restored backups moved from Moodle 2.4.3 (Build: 20130318) to Moodle 3.0.3 (Build: 20160314). Only seems to be happening with some assignments through.


Debug info: 
Error code: invalid_method_name 
$a contents:
Stack trace:
  • line 505 of \grade\grading\lib.php: moodle_exception thrown
  • line 541 of \grade\grading\lib.php: call to grading_manager->get_controller()
  • line 482 of \grade\grading\lib.php: call to grading_manager->get_active_controller()
  • line 2100 of \lib\navigationlib.php: call to grading_manager->extend_navigation()
  • line 1250 of \lib\navigationlib.php: call to global_navigation->load_activity()
  • line 222 of \blocks\navigation\block_navigation.php: call to global_navigation->initialise()
  • line 178 of \blocks\navigation\block_navigation.php: call to block_navigation->get_navigation()
  • line 288 of \blocks\moodleblock.class.php: call to block_navigation->get_content()
  • line 230 of \blocks\moodleblock.class.php: call to block_base->formatted_contents()
  • line 973 of \lib\blocklib.php: call to block_base->get_content_for_output()
  • line 1025 of \lib\blocklib.php: call to block_manager->create_block_contents()
  • line 476 of \lib\outputrenderers.php: call to block_manager->ensure_content_created()
  • line 37 of \theme\essential\layout\tiles\header.php: call to core_renderer->standard_head_html()
  • line 28 of \theme\essential\layout\columns2.php: call to require_once()
  • line 1018 of \lib\outputrenderers.php: call to include()
  • line 948 of \lib\outputrenderers.php: call to core_renderer->render_page_layout()
  • line 230 of \mod\assign\renderer.php: call to core_renderer->header()
  • line 319 of \lib\outputrenderers.php: call to mod_assign_renderer->render_assign_header()
  • line 4294 of \mod\assign\locallib.php: call to plugin_renderer_base->render()
  • line 574 of \mod\assign\locallib.php: call to assign->view_submission_page()
  • line 52 of \mod\assign\view.php: call to assign->view()

In reply to Conn Warwicker

Re: Course meta link - error: core_grading/invalid_method_name

by Carl Boyd -

The answer seems to have been staring me in the face. "core_grading/invalid_method_name" We were using Marcus Green's BTEC marking method on Moodle 2.4 however when moving to 3.0 we had not installed the grading method. 

Adding the courses and assignments with the method set to "Simple Direct Marking" rectified the problem. 

Now to install the grading method within 3.0 and see if it fixes the error. 

Will update the post after testing.


Carl