Closed (fixed)
Project:
Quiz
Version:
6.x-4.0-rc9
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2010 at 07:51 UTC
Updated:
14 Nov 2011 at 17:09 UTC
Error on saving admin/quiz/settings/quiz_form
user warning: Field 'nid' doesn't have a default value query: INSERT INTO quiz_user_settings (uid, pass_rate, summary_default, randomization, backwards_navigation, keep_results, repeat_until_correct, feedback_time, display_feedback, takes, show_attempt_stats, time_limit, quiz_always, has_userpoints, allow_skipping) VALUES (13, 75, '', 0, 1, 2, 0, 0, 1, 0, 1, 0, 0, 0, 1) in K:\wamp\www\talpigno\includes\common.inc on line 3528
Drupal: 6.19
PHP version: 5.2.9.2
MySQL: 5.1.36
Comments
Comment #1
rmjiv commentedConfirmed. I'd roll a patch but I don't know which way to go. I think the best answer is to make the column nullable, but maybe I'm missing something.
Comment #2
Hitmrrr commentedup! how to fix it?
user warning: Field 'nid' doesn't have a default value query: INSERT INTO quiz_user_settings (uid, pass_rate, summary_pass, summary_default, randomization, backwards_navigation, keep_results, repeat_until_correct, feedback_time, display_feedback, takes, show_attempt_stats, time_limit, quiz_always, has_userpoints, allow_skipping) VALUES (115, 75, '', '', 0, 1, 2, 0, 2, 0, 0, 1, 0, 1, 0, 1) in C:\www\localhost\htdocs\includes\common.inc on line 3567.
Comment #3
falcon commentedI've commited a fix. I don't get this error myself, so if some of you could update from cvs and see if my fix solves your problem it would be great!
(I just added a quick fix setting the nid and vid to 0 prior to saving the preferences)
Comment #4
falcon commentedNo replies here so I guess this issue is fixed...
Comment #5
jim kirkpatrick commentedRelated to/dupe of #1317244: SQL error on /admin/quiz/settings/quiz_form: 'aid' field doesn't have default value... Is there a patch?