Missatges enviats per Chad Parmentier

Below is How our programmer resolved this problem.

Hi! Chad, To answer your question I have narrowed the restore problems down to a couple of issues. First considering all quiz's and questions are in the database and not missing the following code hack seems to afford the restore procedure a better chance of restoring an archived course and it contents. Affects file: ./question/restorelib.php Code Line 649-656 //We have to recode the answer field //It depends of the question type !! //We get the question first if (!$question = get_record("question","id",$state->question)) { echo 'The record for question '.$state->question.' is missing!
'; echo 'Check database table _question for id='.$state->question.'
'; continue; // Don't let this stop us from our course restore. I have also recently been working with another issue which happens only when one attempts to restore a quiz which is actually missing questions in the questions table. With the restore library the main issue is quizzes in general which always seem to break the restore if everything is not just peachy perfect. I have experimented with changes to function question_make_default_categories($contexts) where a condition exists that $context->contextlevel is actually null which will throw the restore error "This is an unknown context () in print_context_name!" which is generated from lib/accesslib.php function print_context_name. The trick is here is to always insure the $context->contextlevel is not null but rather checked and set to a value during the restore process.

I think it will, this was a bit over my head and I turned it over to a programmer, he said the actual error was a table that was corrupted or something that prevented communication between question contexts...hmm I'm not real sure but the code he put in fixed this permanently and the site is working good. I will see if he will email me the code, and I will post it and you guys can compare.

Moodle in English -> General help -> SSL Help Advice -> Re: SSL Help Advice

per Chad Parmentier -
I decided to eliminate the log-in button. I really appreciate the help/advise. One thing that I found a bit odd was my IT staff seem so worried about this when in reality if I wanted to steal a password it seems like it would be easier just to create a site clone and trick the users into filling out an expired password form. My Instructors don't check to see if they are at the site address they think they are at much less whether it is HTTPS or not.
1. Great plugin! It seems as though it always makes courses invisible to students when the xmlimport.xml is run. I made certain to uncheck the two boxes that specified create new hidden courses and categories if not present in moodle. when the script runs in turns off courses it updates and I have to run an sql command to turn them all back on. We are a large institution so there are many courses, is there a way to fix this?

2. I also have a complimentary script that takes a flat file (txt file) output from a database and builds the import.xml file. this allows moodle to sync with our student information system. we are using Datatel (collegue) but the php could be modified for any institutions database sis system. how can i contribute this to moodle or the ims minted plug-in. oh all this executes on cron.