Problem

When trying to add or edit questions by going to "manage questions", I receive the following error. Note that I only receive it when the quiz is set to "Random Questions" under Taking Options:

( ! ) Fatal error: Call to undefined function taxonomy_form() in sites/all/modules/quiz/quiz.module on line 3428
Call Stack
# Time Memory Function Location
1 0.0003 329596 {main}( ) ../index.php:0
2 0.3007 24493152 menu_execute_active_handler( ) ../index.php:23
3 0.3076 25192948 call_user_func_array ( ) ../menu.inc:503
4 0.3076 25193124 quiz_questions( ) ../menu.inc:0
5 0.3077 25193380 drupal_get_form( ) ../quiz.admin.inc:505
6 0.3077 25193904 drupal_build_form( ) ../form.inc:189
7 0.3077 25195396 drupal_retrieve_form( ) ../form.inc:316
8 0.3078 25196248 call_user_func_array ( ) ../form.inc:772
9 0.3078 25196516 quiz_questions_form( ) ../form.inc:0
10 0.9375 37037296 _quiz_add_fields_for_random_quiz( ) ../quiz.admin.inc:829
11 0.9375 37039448 _quiz_taxonomy_select( ) ../quiz.admin.inc:949

Proposed resolution

The taxonomy_form() appears to no longer exist in D7: http://api.drupal.org/api/drupal/modules--taxonomy--taxonomy.module/func...

However, I'm not sure what would be used in its place, so I don't have a resolution to provide.

Let me know if I can provide any other information.

Thanks!

Comments

sivaji_ganesh_jojodae’s picture

Title: Error managing questions » Fix quiz with random questions from taxonomy
Component: Code - Quiz module » Code - Quiz core
Issue tags: +D7 stable release blocker

Tagging as release blocker.

vivdrupal’s picture

@sivaji Have come here from http://drupal.org/node/1260902

Hope you already have seen that for all the three options 'Random order', 'Random questions' and 'Categorized random questions' there are errors.

And thanks for creating such an amazing module!
My project deadline is round the corner. So please give a solution soon, my whole project depends on this module!

Thanks again.

julianmancera’s picture

@vivdrupal - Did you get it to work? I don't see the Categorized random questions from radio button selection yet. Did you di a custom dev o patch the you are able to submit?

@sivaji - How can I help you to get this to work?

Julian Mancera

falcon’s picture

Status: Active » Fixed

The bugs should be fixed now. The feature "Categorized random questions" haven't been ported from the D6 version yet IIRC.

thechanceg’s picture

Has anyone gotten this to work yet? It seems like it would be a useful feature.

Status: Fixed » Closed (fixed)

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

hanoii’s picture

Title: Fix quiz with random questions from taxonomy » Port "Categorized random questions" questions into D7
Status: Closed (fixed) » Active
Issue tags: -D7 stable release blocker

I also think this is an useful feature, and it's present on D6, I hope it shouldn't be too hard to port. I am re-activating this issue to keep a reference to it, but removed the release blocker. Please re add if you consider it should be a blocker.

I am about to start an internal evaluation site and this module comes very very handy. I mainly need this feature and because of that I am about to do it on D6, however, I'd like to give D7 a chance and maybe work into getting this feature into the D7 release, for that I'd like a little word from the developers if that's possible....

How stable the D7 version is? Is there any real issue that you had when porting it that you decide to leave this feature out in order to prepare me if I take in this task? Would you consider reviewing such a patch?

falcon’s picture

Category: bug » task
hanoii’s picture

Status: Active » Closed (duplicate)

  • Commit 3e13406 on 7.x-4.x, 7.x-5.x by sivaji:
    #1222860 Disable Categorized random questions option momentarily.
    
    

  • Commit 3e13406 on 7.x-4.x, 7.x-5.x, quiz-pages by sivaji:
    #1222860 Disable Categorized random questions option momentarily.
    
    

  • Commit 3e13406 on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 by sivaji:
    #1222860 Disable Categorized random questions option momentarily.
    
    

  • Commit 3e13406 on 7.x-4.x, 7.x-5.x, 2269219 by sivaji:
    #1222860 Disable Categorized random questions option momentarily.