This is a puzzler

This is a puzzler

Thomas Bray -
Кількість відповідей: 10
The exact language I'm getting on this problem is
"Could not insert the new quiz category __"
whenever I try and add a new quiz category. I've searched the forums and can't seem to find an answer. The default Quiz category setting works fine. I've installed the latest language mod and I'm running 1.2dev.

I'm stumped on this one.

сумую

Thom
У відповідь на Thomas Bray

Re: This is a puzzler

Martin Dougiamas -
Фото Core developers Фото Documentation writers Фото Moodle HQ Фото Particularly helpful Moodlers Фото Plugin developers Фото Testers
Are you using today's CVS version?
У відповідь на Martin Dougiamas

Re: This is a puzzler

Thomas Bray -
Now, see, this is why you don't put a cannon (Moodle1.2dev) in the hands of a child(me)! усміхаюсь

I downloaded the zipped CVS package a few nites ago. The true CVS with Unix and all that I avoided because you don't want me wandering into a Unix shell--I could accidently launch thermo nuclear warheads towards Oz. Or wipe out your university grades. Trust me on this.

If I download the new CVS package, is it likely to solve the problem (probably yes, right?--and then create a new one--which is why it's called DEVELOPMENT усміхаюсь

One other question; now that databasses have been updated to 1.2, if I took a step backwards to my old 1.1.1 happy, friendly moodle, would it work?

Serves me right for being adventurous!

TB
У відповідь на Thomas Bray

Re: This is a puzzler

John Gone -
Backwards is indeed not a good direction. I've tried and I've failed. I've learned that I'm not the only one that's tried. Don't do it unless you're bored and are looking for a learning adventure. I may be wrong.
У відповідь на John Gone

Re: This is a puzzler

Gustav W Delius -
Backwards is fine: just install the old code and restore the backup of the database that you made right before the upgrade smile.
У відповідь на Thomas Bray

Re: This is a puzzler

Thomas Bray -
BTW, I just downloaded the new CVS package, unzipped it nd installed it.I get the same error message. I can work around this by just using the default setting, but thought i'd mention that it still doesn't work.

сумую

TB
У відповідь на Thomas Bray

Re: This is a puzzler

César Porto Vence -

i have the same problem. black eye

table -> mdl_quiz_categories can't add a new id

I correct this in file moodle/mod/quiz/category.php

line 100+-

$consulta= mysql_query("SELECT max(id) FROM mdl_quiz_categories");

$result_cons = mysql_result($consulta,0)+1;// Parche para solucionar que no incrementa el id

$cat->id =$result_cons;

then the problem solve.

big grin waiting for the final release ...