Course 0 does not exist, skipping,

Course 0 does not exist, skipping,

by ali minnet -
Number of replies: 0

I am using Extenal enrolment plugin but when I try to enrol somebody to courses with calling setup_enrollments($USER) it does not work and in log file i see this error "Course 0 does not exist, skipping," what can it be?

Average of ratings: -