Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

webservices get_courses

$
0
0

by Derek O Brien.  

Have my webservices user set up with the correct permissions and roles but when i try to call get_courses() it fails the validate_context() every time.


error i get is :

{"exception":"moodle_exception","errorcode":"errorcoursecontextnotvalid","message":"You cannot execute functions in the course context (course id:33). The context error message was: Course or activity not accessible."}


Have done some research into the problem and seen that it pops up alot but any of the solutions mentioned wont work for me.


What ive tried allready is:

-set site policy to agreed for webservices user

-recreate the webservices user and double checked the roles/permissions

-recreate the webservices token


Viewing all articles
Browse latest Browse all 2361

Trending Articles