whenever I cast vote I get two error messages in drupal log file

I have attached copy of my log file as well as debug from user karma module

CommentFileSizeAuthor
log file.txt.txt1.33 KBmrak
debug.txt.txt6.45 KBmrak

Comments

mercmobily’s picture

Hi,

The errors in the queries are caused by something odd going on in your karma configuration, for the module user_karma_insert_node.module.

In that submodule's configuration, what do you have as:

"Node types which will give the creator karma"

...? If you haven't got any ticks, please tick a node type and report back.
However, the module still needs to be fixed, because this part is obviously not true:

// Check that there ARE types defined. For some reason, node_get_types()
// will set var[0] to '0' if no types are defined, which is handy here
// since count() wouldn't work

So, please let me know.

Thank you for the detailed bug report. If every bug report were like this, i'd be able to maintain more modules.

Merc.

mrak’s picture

you were right,

I have not ticked single node type; I have ticked my diaries and now the problem has disappeared

so, misconfiguration error

mercmobily’s picture

Hi,

Actually... well, I either have to force the users to tick at least one box, or have to change the module so that "no tick" = "all ticked"...

This is the only open issue of user_karma.module... it's a remarkably solid module. I am fixing this now as a matter of principle.

Merc.

mercmobily’s picture

Status: Active » Fixed

Hi,

Fixed in CVS.
User_karma has again no issues nor bugs :-D

Merc.

mercmobily’s picture

Status: Fixed » Closed (fixed)