Can someone explain this error to me?
To get more info i edited the externallib.php to dump the contex object which gave me the following
context_course Object ( [_id:protected] => 481 [_contextlevel:protected] => 50 [_instanceid:protected] => 2 [_path:protected] => /1/3/481 [_depth:protected] => 3 )
on inspection of the mdl_context table in the database the path resolves to :
1 -> CONTEXT_SYSTEM -> 10
3 -> CONTEXT_COURSECAT -> 40 (Courses)
481 -> CONTEXT_COURSE -> 50 (Course "test")