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

druupydog’s picture

Under 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.

natekruser’s picture

Drupal 6.16, Quiz 6.x-3.4, PHP 5.3.0

Encountering the same issue, otherwise everything seems to be running smoothly.

sivaji_ganesh_jojodae’s picture

Category: support » bug
Status: Active » Fixed

The code throwing this warning message $this->node->no_skip_button and $this->node->not_a_question seems to be dead code, not used in any other part of the quiz module.

diff -u -p -r1.1.2.4 quiz_directions.classes.inc
--- question_types/quiz_directions/quiz_directions.classes.inc	24 Aug 2009 13:55:58 -0000	1.1.2.4
+++ question_types/quiz_directions/quiz_directions.classes.inc	20 Mar 2010 18:17:29 -0000
@@ -28,8 +28,8 @@ class QuizDirectionsQuestion implements 
 
   public function __construct($node) {
     $this->node = $node;
-    $this->node->no_skip_button = TRUE; // No skip button
-    $this->node->not_a_question = TRUE;
+    //$this->node->no_skip_button = TRUE; // No skip button
+    //$this->node->not_a_question = TRUE;
   }

Commenting the code prevents warning, let me know if this introduces any other bug.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.