Project:Quiz
Version:6.x-3.x-dev
Component:Code - Quiz module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I don't know what's up with this error, but i keep seeing it in my error log. It happened on 3.3 stable, then i uploaded 3.dev to see if it was somethign that was fixed but i still get the errors. Anyone know what is causing this?

array_pop() [function.array-pop]: The argument should be an array in /home/drupal/public_html/sites/all/modules/quiz/quiz.module on line 1061.

Comments

#1

I'm still getting this error in my logs...any one have any input on this?

Message array_pop() [function.array-pop]: The argument should be an array in /home/drupal/public_html/sites/all/modules/quiz/quiz.module on line 1061.

Thanks

#2

Status:active» postponed (maintainer needs more info)

I am unable to reproduce the same here. Will be good if you could provide more information regarding this. In which instance you see this error message, when you go along the quiz by hitting next button or when you go backward by hitting back button ? Do you allow the anonymous user to takeup the quiz ?

Add the below line in quiz.module file, line no ~1039 around Initialize session variables block.

$_SESSION['quiz_'. $quiz->nid]['previous_quiz_questions'] = array();

Let me know whether this statement fix the bug.

#3

Status:postponed (maintainer needs more info)» closed (won't fix)

Without further information this issue can only be marked as won't fix.

#4

I havent applied the fix you suggested yet, as soon as I get my dev server back up and running i'll test it out.

Thanks!

#5

sivaji-

I've been running my quiz without any array pop errors with your statement. Bug looks to be fixed.

Thanks!

#6

Status:closed (won't fix)» fixed

Thanks.

#7

Status:fixed» closed (fixed)

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

nobody click here