General add-ons

 
 
Picture of Jim Angel
Batch Enrollment RedHat (bulk Upload CLI)
 

I'm using Piers Harding's bulk upload course (https://github.com/piersharding/moodle-tool_uploadcourse)  which works fine with the GUI, but when I tried it with the command line, it seems to not like my input.

He provides this example:

sudo -u www-data /usr/bin/php admin/tool/uploadcourse/cli/uploadcourse.php --action=addupdate \
                 --mode=delete --file=./courses.csv --delimiter=comma
 
But since it's a redhat box, I do not use sudo. Although, I do su root prior to running the script. The error I get is:
 
Moodle course uploader running ...
Invalid category
Execute Course Upload.

But the category uploads fine in the GUI. Any help would be appreciated. Thanks!
 
Average of ratings: -
Picture of Jim Angel
Re: Batch Enrollment RedHat (bulk Upload CLI)
 

Update: I worked with Piers Harding to resolve this issue. It turns out it was a minor bug with the default Category. The updated code has been committed to GitHub thanks to Piers. Piers was incredibly helpful and is a huge asset to the Moodle Community.

 
Average of ratings: -
C'est moi :-)
Re: Batch Enrollment RedHat (bulk Upload CLI)
Group Documentation writersGroup Particularly helpful MoodlersGroup TestersGroup Translators

Talking about bulk course upload made by Piers Harding, i had talked (some weeks ago) about some information that could be more useful and a bug i've seen here in this thread.

Séverin

 
Average of ratings: -