(Using 1.5dev late night version 111104) I noticed that I can't insert pupils into courses. Inserting teacher works ok. What's changed ????
Is my database structure corrupted somewhere in upgrade-tree???
..lasse..
1.5dev: Oops....I can't insert pupils into course ????
Number of replies: 7Re: 1.5dev: Oops....I can't insert pupils into course ????
The highly unstable development version is highly unstable and recommended for developers only ... please file bugs in the bug tracker (preferably with solutions!
)
Vast: Re: 1.5dev: Oops....I can't insert pupils into course ????
Ok.
I try to downgrade to 1.42+ version.... but 1.5dev is NOT SO unstable as you say
. In september everything was working well...
I've studied the code hole evening and noticed that mdl_user table is changed, also there is new mdl_session table.
The problem is mdl_course because 1.5dev does not have blockinfo field.
I tried to figure out how blocks is working and where information about blocks is hiding. Was there important data before field dropped out in 1.5dev? Can I insert missing field back?
..lasse..
I try to downgrade to 1.42+ version.... but 1.5dev is NOT SO unstable as you say
I've studied the code hole evening and noticed that mdl_user table is changed, also there is new mdl_session table.
The problem is mdl_course because 1.5dev does not have blockinfo field.
I tried to figure out how blocks is working and where information about blocks is hiding. Was there important data before field dropped out in 1.5dev? Can I insert missing field back?
..lasse..
Vast: Re: 1.5dev: Oops....I can't insert pupils into course ????
Some ideas about the problem...
First student.html works well: I can see students and all possible students for my course. When pressing <- button html-page send correct students id to student.php.
There happens functioncall enrol_student ( return value ok while no error message )
Moodlelib ... no error in enrol_student ... uses get_record and update_record.
Datalib ... many functions uses these db-functions and they works ( example add_teacher ).
"No error-messages" should say that every returnvalues are ok and html-page should update itself .... but ..page is empty !!!!
Disapear session information somewhere?
When I look mdl_user_students nothing is inserted there ( I think that this is the place where student/course information is ).
Any ideas ..... or is it again my php/apache system (PHP4.3.8 Ap 1.3.7)...
or is it miki$ofts updated java-engine
..lasse..
First student.html works well: I can see students and all possible students for my course. When pressing <- button html-page send correct students id to student.php.
There happens functioncall enrol_student ( return value ok while no error message )
Moodlelib ... no error in enrol_student ... uses get_record and update_record.
Datalib ... many functions uses these db-functions and they works ( example add_teacher ).
"No error-messages" should say that every returnvalues are ok and html-page should update itself .... but ..page is empty !!!!
Disapear session information somewhere?
When I look mdl_user_students nothing is inserted there ( I think that this is the place where student/course information is ).
Any ideas ..... or is it again my php/apache system (PHP4.3.8 Ap 1.3.7)...
or is it miki$ofts updated java-engine
..lasse..
Vast: 1.5dev: Oops....The Answer !!!!!
I found it !!!!!!!!!!!! 
Version: 1.5dev latest
File: moodlelib.php
Row: about 1490
Do: Comment out these lines:
require_once("../mod/forum/lib.php");
forum_add_user($userid, $courseid);
Perhaps somebody forgot start-part of forum handling there ....
..lasse..
ps. I hope that nothing else is now broken.
Version: 1.5dev latest
File: moodlelib.php
Row: about 1490
Do: Comment out these lines:
require_once("../mod/forum/lib.php");
forum_add_user($userid, $courseid);
Perhaps somebody forgot start-part of forum handling there ....
..lasse..
ps. I hope that nothing else is now broken.
Re: Vast: 1.5dev: Oops....The Answer !!!!!
Actually, those lines need to be there, but they were inserted incorrectly. This bug is now fixed in CVS (anonymous CVS may take a few hours to show the changes).
Thanks for the pointer (but please use the bug tracker next time!
)
Thanks for the pointer (but please use the bug tracker next time!
Vast: Re: Vast: 1.5dev: Oops....The Answer !!!!!
OK.
I'll try .... but it looks SO dificulty.
For an older person every new system is .......
..lasse..
I'll try .... but it looks SO dificulty.
For an older person every new system is .......
..lasse..