Closed (fixed)
Project:
Quiz
Version:
6.x-3.4
Component:
Code - Quiz module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2010 at 10:00 UTC
Updated:
3 Apr 2010 at 18:30 UTC
Using Drupal 6.16 and Quiz 3.4
I have set up a 10 questions multiple choice quiz. It appears to work fine. I went and created Quiz directions. Then when I went to 'Quiz Directions Management" and I received this error on the page:
* warning: Attempt to assign property of non-object in /home/vvv/public_html/vvv.com/sites/all/modules/quiz/question_types/quiz_directions/quiz_directions.classes.inc on line 31.
* warning: Attempt to assign property of non-object in /home/vvv/public_html/vvv.com/sites/all/modules/quiz/question_types/quiz_directions/quiz_directions.classes.inc on line 32.
Any thoughts?
Comments
Comment #1
druupydog commentedUnder the error box the page does display "There are no settings for this question type." Perhaps the error message is a result of the no settings for the question type? Or the error is preventing the settings from loading.
---
Quiz directions administration
* warning: Attempt to assign property of non-object in /home/vvv/public_html/vvv.com/sites/all/modules/quiz/question_types/quiz_directions/quiz_directions.classes.inc on line 31.
* warning: Attempt to assign property of non-object in /home/vvv/public_html/vvv.com/sites/all/modules/quiz/question_types/quiz_directions/quiz_directions.classes.inc on line 32.
There are no settings for this question type.
Comment #2
natekruser commentedDrupal 6.16, Quiz 6.x-3.4, PHP 5.3.0
Encountering the same issue, otherwise everything seems to be running smoothly.
Comment #3
sivaji_ganesh_jojodae commentedThe code throwing this warning message
$this->node->no_skip_buttonand$this->node->not_a_questionseems to be dead code, not used in any other part of the quiz module.Commenting the code prevents warning, let me know if this introduces any other bug.