user karma creates error log

mrak - August 17, 2008 - 08:34
Project:User Karma
Version:5.x-1.10
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

AttachmentSize
debug.txt.txt6.45 KB
log file.txt.txt1.33 KB

#1

mercmobily - August 17, 2008 - 08:56

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.

#2

mrak - August 17, 2008 - 10:11

you were right,

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

so, misconfiguration error

#3

mercmobily - August 17, 2008 - 10:29

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.

#4

mercmobily - August 17, 2008 - 10:58
Status:active» fixed

Hi,

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

Merc.

#5

mercmobily - August 25, 2008 - 16:52
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.