I get the following errors after adding a new quiz (create content -> quiz):

warning: Invalid argument supplied for foreach() in /var/www/html/drupal/modules/node.module on line 358.
warning: implode(): Bad arguments. in /var/www/html/drupal/modules/node.module on line 363.
user error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
query: SELECT n.*, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid WHERE in /var/www/html/drupal/includes/database.mysql.inc on line 66.

Best regards.

Frank

Comments

webchick’s picture

Hi, Frank. Thanks for testing the module! Is there anyway you couple supply some more details, though?

a) Which version of Drupal are you using? The quiz module is set to only work with the CVS version of Drupal (Drupal HEAD, which will turn into 4.7 eventually), so other versions such as 4.6.x are not supported and may exhibit some problems.

b) While on the subject of versions, do you know which version of PHP and MySQL you're using? Probably not that important, but it never hurts to know. :)

c) Could you outline the exact steps you performed to receive this error? Did you follow the instructions listed under administer >> help >> quiz to first setup a vocabulary, create at least one multichoice question, and *then* create the quiz?

d) Is it only the Quiz module that exhibits this error? Can you add other node types (stories, blogs, etc.) ok? It's throwing me off a little that all the errors are around the node.module.

Thanks in advance!

naudefj’s picture

Priority: Normal » Minor
Status: Active » Closed (fixed)

My mistake then. I was running CVS code with Drupal 4.6.3.

robertdouglass’s picture

It's worth noting what code breaks 4.6 as we will want to backport this when it is finished.