Page 1 of 1

Karma Visitor Tracking Bug?

Posted: Sat Oct 20, 2007 11:29 pm
by chickens
I decided to try and clean up my database (finally) and I think I may have found a bug in the karma plugin visit tracking. Steps I took:

Installed a fresh copy of s9y on my test site.
Imported SQL dump of entries from phpmyadmin
Installed karma and popular entries plugin -- works
Installed the rest of my plugins without thinking. -- list here
Refreshed the page to make sure everything is working, karma visit tracking doesnt work.
Disabled all event plugins besides karma -- nothing.

Does anyone know of what might be causing this issue? The only thing I can think of is another plugin getting in the way. The problem I have with this train of thought is that I've got everything else disabled right now.

Right now all of the installed plugins come from spartacus or s9y itself.

Location: http://zonalnet.com/serendipity/

Thanks.

Re: Karma Visitor Tracking Bug?

Posted: Sun Oct 21, 2007 1:34 am
by garvinhicking
Hi!

Does the serendipity_karma* DB tables exist?

Regards,
Garvin

Posted: Sun Oct 21, 2007 1:49 am
by chickens
Yes, it does exist with one entry in it. Its the one entry that I originally tested the plugin with. There is also nothing in my error_log saying any sort of error.

I would be happy to give you admin and phpmyadmin access if you need it.

If I get time tonight I will make another test site and test plugin by plugin to see if I can figure out exactly what is causing the problem.

Posted: Sun Oct 21, 2007 1:49 am
by garvinhicking
Hi!

Note that click tracking only occurs when you view the "extended entry"?

Regards,
Garvin

Posted: Sun Oct 21, 2007 1:55 am
by chickens
Yeah, I've refreshed the extended body page about 50 times without any results.

Plugin settings:

enable voting: no
tracking: yes
exits: no
voting time after publishing: 1440
voting time: 5
only extended: yes (tried no as well)
voting period: 7
log votes: no

Posted: Mon Oct 22, 2007 9:37 am
by garvinhicking
Hi!

Reading the plugin code, this can only happen if the Entry-ID cannot be matched from your current URL.

Check this serendipity_event_karma.php file:

http://nopaste.php-quake.net/7568

I added some debugging output there, which should create a karma.log file in your templates_c directory. It seems that $entryid is empty in your case...

Regards,
Garvin

Posted: Mon Oct 22, 2007 6:43 pm
by chickens
It looks like the karma plugin is not active; the log does not exist. To verify it was not something I did in my template I've set the theme to Serendipity 3.

I should get time later today to test to see what exactly might be causing the problem.

Posted: Mon Oct 22, 2007 8:03 pm
by chickens
Found it!

If you change the format of your permalinks the karma visitor tracking dies. I changed mine to %year%/%month%/%day%/%title%/ and the tracking pukes out.

It only took me installing every single plugin on a test site and having it still work to figure out the actual root of the issue. :lol:

Posted: Tue Oct 23, 2007 9:32 am
by garvinhicking
Hi!

Ah, it might be that the karma plugin relies on the %id% value to get the ID of an entry properly.

Regards,
Garvin