When I upgraded from 6.1 to 6.2, nodecomment treated multichoice as comment to quiz and tried to convert them to normal comment. There was no option available for me to exclude multichoice node type in the user interface. So I proceeded, then all quiz module broke, its multichoice questions lost the relation to its quiz. Besides, when I created a new quiz and attached a new multichoice to it, it didn't work either.

--

A quiz is a container for many questions, multichoice is one type of questions. Quiz modlue stores relationship among quiz and its questions.

http://drupal.org/project/quiz

I couldn't upgrade to 6.2 because most of my websites because they all have quiz module enabled.

Comments

crea’s picture

Priority: Critical » Normal

Sorry I don't use quiz module so I doubt I could help. Anyway, this is compatibility issue, which are not critical.

brycesenz’s picture

I am also experiencing this issue. I understand that it is not a critical issue from your perspective, but I would like for this to get solved.

I'm willing to put in some work digging into what exactly the is going on if any of the maintainers can help me generate intelligent hypotheses and give me at least a few wild gooses to chase down :).

Here's what I know at this point:

- The quiz module creates a few different content types: Quiz (essentially a parent node), Multiple Choice Question, Quiz Directions, etc.
- There are no issues when an admin adds content through the normal path (http://site.com/node/add/multichoice)
- From an existing quiz, one can create questions (content) which is where the issues start to arise.
- If you create content from within a quiz node, the url is (http://site.com/node/add/multichoice/1823/1823?destination=node/1823/que...)
- This results in the error "warning: array_search() [function.array-search]: Wrong datatype for second argument in C:\xampp\htdocs\site.com\sites\all\modules\nodecomment\nodecomment.module on line 424."

This error indicates something wrong in the Node Comments module. It is occuring in the function "nodecomment_form_alter" at line 424.

Can someone give me some more insight into the circumstances in which this line of the code should be reached?

evanbarter’s picture

I can't reproduce this error with Quiz 6.x-4.0-beta4, for what it's worth. Are you running the 3.x branch of Quiz?

crea’s picture

Status: Active » Postponed (maintainer needs more info)

I think this could be related to #824308: nodecomments (with advanced forum) - wrong taxonomy call. Could you please try dev version ?

brycesenz’s picture

Status: Postponed (maintainer needs more info) » Fixed

For context, I was using Drupal 6.17, Node Comments 6.x-2.0-beta5, and Quiz 6.x-4.0-beta8.

I upgraded to the dev version of Node Comments, which resolved this issue.

I appreciate you guys taking the time to try to look over this issue; I imagine that module compatibility issues can be quite frustrating . Thanks again!

Status: Fixed » Closed (fixed)

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