Datasets get lost ion calculated questions

Datasets get lost ion calculated questions

by Stefan Eberhard -
Number of replies: 12
I still have the problem (newest 1.8.1 11th June), that I have to build new datasets when I open a saved calculated question for minor corrections.

I usually work with an absolute tolerance of 0.02 If I reopen a saved question for minor corrections, all datasets are lost. Even the tolerance is reset to relative. Only the formula and the text is saved.

I had some "handwoven" datasets - Lost in space!

This bug causes a big amount of work!
Average of ratings: -
In reply to Stefan Eberhard

Re: Datasets get lost ion calculated questions

by Pierre Pichet -
I will look closer to see if I can reproduce on my last updates and to trace back to 1.8.1...
Pierre
P.S. could you try on
http://132.208.141.198/moodle_18/ user:moodle pw:moodle.
Effectively the tolerance type is not set correctly and I just corrected it and will CVS soon.
On which version your old questions has been created ?
There is no dataset losts on new question that you update again.



In reply to Pierre Pichet

Re: Datasets get lost in calculated questions

by Stefan Eberhard -
Hello Pierre,
I think it affects all calculated questions, created in 1.6 ; 1.7 ; 1.8 and 1.8.1
I update all 10 -14 days to get rid of the bugs.

Its a really annoying problem.

I tested your site. It is OK there!

Stefan
In reply to Stefan Eberhard

Re: Datasets get lost in calculated questions

by Pierre Pichet -
So the best precaution will be to backup your questions first.
Doing an export in the Moodle XML will be a good supplementary precaution.
I will try to simulate the problem .
Pierre
P.S. coul you export Moodle XML some of them and attach the file on the forum
P.S. I think that the only problem is with the datasets, all other parameters seems OK?
P.S. I will CVS 181 to see the diffs.
In reply to Pierre Pichet

Re: Datasets get lost in calculated questions

by Stefan Eberhard -
The atached test worked in an test.

> I saved it 5 minutes ago.
> Then I opened it to make some changes in the text and:
> the datasets were lost.
> I deleted the corrupt question and imorted the xml
> OK! Working again.

Hope you can find the problem.

I use "socrates" as theme

Stefan
In reply to Stefan Eberhard

Re: Datasets get lost in calculated questions

by Pierre Pichet -
I think I found part of the the problem.
Something like form->dataset and form->datasets elsewhere. I will correct it tonight
but there is more...Could it be that you are in german language? Dmitry a russian reported the same problem today...?MDL-10087
So wait and see (perhaps tomorrrow)
Pierre
In reply to Stefan Eberhard

Re: Datasets get lost in calculated questions

by Pierre Pichet -
The problem exits with Moodle 1.8 but not with Moodle 1.6 although the abstractype and questiontype files are similar.
I will explore how the HTML Quick Form could be implied...
Everything work correct on
http://132.208.141.198/moodle_16/ user:moodle pw:moodle
In reply to Stefan Eberhard

Re: Datasets get lost in calculated questions

by Pierre Pichet -
I just CVS 1.8.1 that you can find at
http://132.208.141.198/moodle_18_exp user:moodle pw:moodle.
I use an old question created when this site was 1.8 BETA and everything works correctly (even the datasets) but not the tolerancetype as this was corrected on 1.8 STABLE and not already put in 1.8.1.

Pierre
A hint:are you PHP4 or PHP5 ?
Mine is PHP5 ?
In reply to Pierre Pichet

Re: Datasets get lost in calculated questions

by juan gilberto gutierrez vazquez -

hi everybody!!

i am new in all these context of  moodle, and  i have a doubt :

I create a calculated question, later when i try to edit my question ,in the part  of propieties of the dataset moodle show me  a box with 2 option : "will use the same existing private dataset as before" and  "will usea new shared dataset..."

and my doubt is the follow: what happen with my others items if  i choose the option "will use a new shared dataset"

thanks to everybody!!

In reply to juan gilberto gutierrez vazquez

Re: Datasets get lost in calculated questions

by Pierre Pichet -
shared datasets that can be used by other questions.
But as a beginner stay away from this just use private datasets.
new means new so you will loose your actual dataset.
Pierre
P.S. documenting shared datasets is on my to-do list
In reply to Pierre Pichet

Re: Datasets get lost in calculated questions

by Stefan Eberhard -
Its really a php problem!

Solution:

Create a .htaccess with
AddHandler af_php5 .php

Place the .htaccess in the moodle directory

The server will the use PHP5 instead of PHP 4 (when PHP5 and PHP4 are installed)

Works!

Thanks




In reply to Stefan Eberhard

Re: Datasets get lost in calculated questions

by Pierre Pichet -
Effectively I had to explicitely use &$form so that PHP4 recognize it as an address and do not work on a copy of $form.
Could you do an update of the new code to see it my solution works correctly on PHP 4 as it should ?
Pierre