Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
Hello, everyone.
I am creating a system with Codeigniter that will allow us to distribute a module from one of our development courses to several courses in different sub-accounts.
After some trials everything seemed to work fine but suddenly I started getting duplicate (triplicate or even more) instances of the module in the new course. I have checked my code thoroughly and there is no explanation of what could be causing this behavior.
Does anyone know what could be happening? Or maybe I am using a bad approach to this. What I am doing, step by step is:
Everything is working fine and the final result is exactly what I expect. The problem comes when instead of one fully functional module I get two, three or more copies of the new module in the target course.
Now, the weirdest thing is that it doesn't happen systematically. Not all the modules present the same behavior, some are not duplicated and the number of times they are created is completely random.
Now, I guess the obvious question would be "Why don't you use Commons to do that for you?" but I haven't found a way to download a module to 15 or more courses in a simple and rapid way and each time I need to get into the front page to update the links in each one of the target courses.
Any insight on what I am doing wrong will be greatly appreciated.
I'm not sure how much we'll be able to help without seeing the code, but the first thing that came to mind is maybe you have a counter for a loop that isn't being reset in the correct spot of the code?
Right now I'm not using a counter but I'll try adding one to avoid the code from repeating itself. I'll try that and if it doesn't work I'll post the relevant code. Thanks a lot, Matt.
Also, you might try to export the module from a course and use the Content Migration API to copy that export package over. I think it changes all of the links for you too.
To participate in the Instructure Community, you need to sign up or log in:
Sign In