Support Forums
ATutor Bug Reports
Create/Import Course List
You must be signed-in to post.
| Author | Subject | |
|---|---|---|
| Page: 1 | ||
| _Enrique | Subject: Create/Import Course List | |
| Hi. I can't create or import a course list. It works fine when I insert or import de First name, Last name and email. I click over "Add to course list" and can see the data inserted in first step but when I click over the "Add to enrolled list" button it shows me the next page with only the buttons for Add more students or not, but don't show me nothing about the students added in previous step. When I click "Done" I can see that no new students are enrolled. The problem is in the ATutor/tools/enrollment/verify_list.php file but I can't see why in the second step it works fine with the list of students passed but in the third step it doesn't. Any solution? Posted: 2009-09-24 12:42:44 | ||
greg![]() | Subject: Re: Create/Import Course List | |
| It seems you have uploaded ATutor to your server file-by-file instead of uploading the archive file, then unpacking on the server. The chances of something going wrong when you upload individual files is very high. Given you are experiencing many problems, I would suggest the way you uploaded is the problem. Posted: 2009-09-24 12:58:40 | ||
| _Enrique | Subject: Re: Create/Import Course List | |
| I think so. I have only acces via FTP, that's why I copied all the extracted ATutor folder. Do you know how can I extract it directly at the server? Posted: 2009-09-24 13:09:03 | ||
greg![]() | Subject: Re: Create/Import Course List | |
| Most providers have a way to unzip files on the server through a control panel of some kind. You'll need to ask your provider how its done. Posted: 2009-09-24 13:13:25 | ||
| _Enrique | Subject: Re: Create/Import Course List | |
| I've found the bug in the code. First, in atutor_schema.sql line 555, create the table members whith --------------------------------------- `address` TEXT NOT NULL , --------------------------------------- Second, in include\lib\enroll.inc.php line 133, it tries to insert a record at the table members without data for the address field. So I append this information to the sql code --------------------------------------- $sql = "INSERT INTO ".TABLE_PREFIX."members (login, ... gender, address, status, ... private_email) VALUES ('$student[uname]', ... 'n', '', $status, ... 1)"; --------------------------------------- And it works! Posted: 2009-09-25 04:31:39 | ||
| _Enrique | Subject: Re: Create/Import Course List | |
| I'm not a DB expert but I think that is better solution to modify the file atutor_schema.sql in the field address creation: --------------------------------------- `address` TEXT, --------------------------------------- What do you think about?
Posted: 2009-09-25 07:14:50 | ||
greg![]() | Subject: Re: Create/Import Course List | |
| We've made a note in the bug tracker. www.atutor.ca/atutor/mantis/view.php?id=3946 Will fix for the next release. Posted: 2009-09-29 14:15:01 | ||
| Page: 1 | ||
You must be signed-in to post.


