I did a fresh install with the new 4.7 release of Drupal and the only module I have added is Quiz. I followed the instructions in the install text for Quiz and everything seems to have installed properly but, I am having a problem when I create a question in multichoice. When I submit the question the following error occurs:

Fatal error: Cannot use string offset as an array in C:\web\xampp\htdocs\drupal\modules\filter.module on line 842

In searching the Drupal site for an answer a number of people seemed to get similar errors but in other modules i.e.: event, I believe contrib and some other modules.

Is this a bug in the filter.module? Or in Quiz?

On another note, when creating a multichoice question what is the Title text box for, and why would you need a title for a question.

Thanks for all the work on this module
Rob

Comments

webchick’s picture

Status: Active » Needs review
StatusFileSize
new669 bytes

I don't have time to test right now, but see if the following fixes the problem. It did in event module.

The title is a standard field in a node form. It could probably be removed.

olderguy’s picture

Title: Fatal error: Cannot use string offset as an array in » Patch worked but

I applied the patch and can now create the question. But after that different errors occur. I can't add another question, can't take a quiz and so on.

I appreciate your hard work on this module, but since I have virtually no coding experience and all the different errors are just to much for me to hunt down on this site, I think I'll just have to wait until its a little more stable before I can continue testing it.

webchick’s picture

Title: Patch worked but » Fatal error: Cannot use string offset as an array
Status: Needs review » Fixed

Ok thanks. Committed this fix to the module.

And yes, I'm aware of the various other problems. If you'd like to commit development effort or funding I would love to hear from you.. else, it's just going to have to continue to get picked away at in between other things as I can get to it. ;(

matt westgate’s picture

Status: Fixed » Reviewed & tested by the community
StatusFileSize
new1.67 KB

This should fix the error and get you a little further.

seanbfuller’s picture

I think this was either committed a while back or handled by http://drupal.org/node/77792. Either way, I think it can be closed. I let someone a bit higher on the quiz module totem pole do it just in case I'm wrong.

webchick’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Yep, I concur.

  • Commit 7b377cc on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x by webchick:
    #61557 - Fixing fatal error in PHP 5.1
    
    

  • Commit 7b377cc on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages by webchick:
    #61557 - Fixing fatal error in PHP 5.1
    
    

  • Commit 7b377cc on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages, 2269219 by webchick:
    #61557 - Fixing fatal error in PHP 5.1
    
    

  • Commit 7b377cc on 4.7.x-1.x, 5.x-1.x, 5.x-2.x, 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, 2269219 by webchick:
    #61557 - Fixing fatal error in PHP 5.1