I have Drupal 7.4 installed.
When I try to take the quiz via ajax I get the following error
http://quiz.dev/node/2/ajax-quiz
Fatal error: Only variables can be passed by reference in /home/quickstart/websites/quiz.dev/sites/all/modules/quiz/includes/ajax_quiz/ajax_quiz.admin.inc on line 55 Call Stack: 0.0001 329020 1. {main}() /home/quickstart/websites/quiz.dev/index.php:0 0.1067 3472252 2. menu_execute_active_handler() /home/quickstart/websites/quiz.dev/index.php:21
FYI: I also get this error when I run cron:
Notice: Undefined variable: node in QuizQuestion->viewCanRevealCorrect() (line 611 of /home/quickstart/websites/quiz.dev/sites/all/modules/quiz/question_types/quiz_question/quiz_question.core.inc).
---------
Question 1 of 1
HYPOactivity of the layer of cells within the bracket would most likely result in:WebScope
salt wasting due to insufficient production of mineralocorticoids (e.g. aldosterone).
Addison's disease due to insufficient production of glucocorticoids (e.g. cortisol).
HIGH blood calcium levels (hypercalcemia).
low basal metabolic rate due to insufficient production of thyroxin (T4) and triiodothyronine (T3).
Comment | File | Size | Author |
---|---|---|---|
#28 | ajax-quiz-1224448-18.patch | 4.56 KB | joneldesouza |
Comments
Comment #1
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedI haven't started working on ajax_quiz yet. I will take this issue as a reminder. If you are willing to develop this module, I would be happy to review and commit your patches.
Comment #2
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedTagging as release blocker.
Comment #3
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedIt looks like the ajax quiz module never worked since 6.x and it is not supported see #1241256: quiz module. I'm not going to treat this as release blocker.
Comment #4
rajeshrjsh CreditAttribution: rajeshrjsh commentedFatal error: Only variables can be passed by reference in C:\xampp\htdocs\WLF\sites\all\modules\quiz\includes\ajax_quiz\ajax_quiz.admin.inc on line 55
Comment #5
falcon CreditAttribution: falcon commentedComment #6
rohitjalmi CreditAttribution: rohitjalmi commentedwhn ajax quiz module will be released for drupal 7 ???
Comment #7
scotwith1twhy is this even included in the D7 version if it's non-functional? probably should remove and repackage with version 5.x if it's not going to functional in the current version...we absolutely have to have this and could possibly come up with a bounty if you could make this happen sooner than later...thanks!
Comment #7.0
scotwith1tfixed typo
Comment #8
lokapujyaComment #9
lokapujyaGot ajax-quiz working. Here is a patch.
Comment #10
lokapujyaminor update: this patch doesn't touch the .info file
Comment #11
lokapujyaComment #12
stredz CreditAttribution: stredz commentedThis particular patch at #10 just gives the output of question in ajax form but it doesn't give the option to chose the answer (eg: Multiple choice) and there is no next button to pass on to next question.
Comment #13
attheshow CreditAttribution: attheshow commentedComment #14
lokapujyado we still need this? or is it fixed already in 7.x-5.x?
Comment #15
djdevinYeah we still need this in 5.x
However it should be easier to do than 4.x.
Comment #16
lokapujyaComment #17
lokapujyaRerolled for 7.x-5.x. The code applies to the quiz branch; You get the "Take by Ajax" button, and the instructions take you to the first question via Ajax. I temporarily put the "Take by Ajax" into the quiz menu, because I couldn't remember how I got it to show up when the code is in ajax_quiz.
Still needs a lot of work, but at least this is a better starting point to work from. It's kind of a mess right now. I think _ajax_quiz_get_questions() needs some work.
Comment #18
lokapujyaShould change drupal_add_js to used #attached.
Comment #19
kamranafzal CreditAttribution: kamranafzal commentedi use quiz 3.0 module in drupal 7 all is well but when i take quiz by ajax find the Fatal error: Only variables can be passed by reference
please give me solution
Comment #20
lokapujyaKami786. Please change the parameters to variables. I don't get the error. But since your version of PHP shows the error, maybe you can fix it.
Comment #25
lokapujyaComment #26
djdevinComment #27
joneldesouza CreditAttribution: joneldesouza commentedI used the patch on comment #10 and changed in quiz.module file on line 4036, the code below and it worked for me. In version 7.x-4.0-beta4
quiz.module line 4036
Comment #28
joneldesouza CreditAttribution: joneldesouza commentedI created a patch. Tested in version 7.x-4.x
Comment #29
djdevinClosed in favor of #2464087: Updating AJAX quiz to utilize ajax framework and changing the use of args() which is now in 7.x-5.x and works pretty well.