Upon a fresh install of Quiz, I cannot create new quizzes. After completing the quiz creation form (Create content > Quiz) and hitting submit, I get this error:
# user warning: Unknown column 'has_userpoints' in 'field list' query: INSERT INTO quiz_node_properties (vid, nid, aid, number_of_random_questions, shuffle, backwards_navigation, quiz_open, quiz_close, takes, time_limit, pass_rate, summary_pass, summary_default, quiz_always, feedback_time, tid, has_userpoints) VALUES(19, 19, '', 0, 0, 1, 1242277200, 1244869200, 0, 0, 75, '', '', 1, 0, 0, 0) in /Users/mbutcher/Code/DrupalModules/Quiz/DRUPAL-6--3/quiz/quiz.module on line 402.
# user warning: Unknown column 'has_userpoints' in 'field list' query: SELECT property_id, aid, number_of_random_questions, pass_rate, summary_pass, summary_default, shuffle, backwards_navigation, feedback_time, quiz_open, quiz_close, takes, time_limit, quiz_always, tid, has_userpoints FROM quiz_node_properties WHERE vid = 19 AND nid = 19 ORDER BY property_id DESC in /Users/mbutcher/Code/DrupalModules/Quiz/DRUPAL-6--3/quiz/quiz.module on line 497.
Comments
Comment #1
mbutcher commentedFound and fixed the problem.
While the update hook correctly defined the has_userpoints column, the column was not defined in the actual schema.
Comment #3
sivaji_ganesh_jojodae commentedComment #4
sivaji_ganesh_jojodae commented