External Database Enrollment plugin

External Database Enrollment plugin

by Jeremy Schambaugh -
Number of replies: 6

I've just installed Moodle 2.3.1+ on my test server and configured the external enrollment plugin as it is configured on my production site (1.9.8+).  When trying to run the plugin with the verbose switch I'm getting the following error:

 error: invalid category id, can not create course: course

 

No courses are getting created whatsoever and I'm stumped as to what the problem could be.  If I leave the category field blank within the plugin then courses are created fine but I need to have the categories created as well.

Anyone else having a similar issue that would be able to help me out?

- Jeremy Schambaugh

Average of ratings: -
In reply to Jeremy Schambaugh

Re: External Database Enrollment plugin

by Jeremy Schambaugh -

Well I guess I'm on my own for this....

In reply to Jeremy Schambaugh

Re: External Database Enrollment plugin

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Jeremy,

Sorry you didn't receive a reply before now. The Moodle community is pretty big though, so it's unlikely you're on your own.

I just tried searching moodle.org for "invalid category id" and found a Moodle Tracker issue about it: MDL-33967. Hope it helps you to figure things out.

In reply to Helen Foster

Re: External Database Enrollment plugin

by Jeremy Schambaugh -

Thanks for the reply, unfortunately I've found that already and it's been no help.  Either entry I try for the category ("id", "idnumber") I get the same exact error.  Depending on which is chose the error just adjusts itself.  So it would look like this:

error: invalid category id, can not create course: course

or

error: invalid category idnumber, can not create course: course

In reply to Jeremy Schambaugh

Re: External Database Enrollment plugin

by Chad Bergeron -

I've seen the same problem.  Do you have slashes in your category names?

 

We had to put all new courses into an empty category and then manually move them to the correct categories.

In reply to Chad Bergeron

Re: External Database Enrollment plugin

by Jeremy Schambaugh -

No there are no slashes in our category names.  We do have a space though, but I've tried taking the space out with no resolve.  Here is what our category format looks like:

SP 2012
SU 2012
FA 2012

And so forth for each of our semesters.

In reply to Jeremy Schambaugh

Re: External Database Enrollment plugin

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Jeremy, if you've tried searching moodle.org and the Moodle tracker, but have not found a report of the exact problem you are experiencing, please feel free to report it in the tracker (as explained in the tracker introduction docs) making sure you provide clear steps of how to reproduce the problem so that developers can investigate it.