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

Manual enrollment plugin instance doesn't exist or is disabled for the course

$
0
0
by Dave Arnold.  

I'm working on an application that will use the api in Moodle 2.6.2 to create a course, create a user, then enroll that new user in the new course.

I've gotten all the pieces working except the enroll user bit.  When I run these functions in sequence it fails to enroll the user and displays returns this message.

Manual enrollment plugin instance doesn't exist or is disabled for the course

Indeed when I log into Moodle I see the Manual enrollment method has not been added to the course.

In the manual enrollment plugin it is set to be added to new courses.  This works when manually added a course through moodle but not through the api.  

When I discovered this I looked for an api function to add enrollment methods to a course and did not find one.  

Does anyone know of a way to to make this work? I need the new course to have the manual enrollment method so the api can enrol the new user. 


Viewing all articles
Browse latest Browse all 2361

Trending Articles